Tabnine Logo
AbstractPreDatabaseOperationEvent.getSession
Code IndexAdd Tabnine to your IDE (free)

How to use
getSession
method
in
org.hibernate.event.spi.AbstractPreDatabaseOperationEvent

Best Java code snippets using org.hibernate.event.spi.AbstractPreDatabaseOperationEvent.getSession (Showing top 7 results out of 315)

origin: hibernate/hibernate-orm

/**
 * Getter for property 'source'.  This is the session from which the event
 * originated.
 * <p/>
 * Some of the pre-* events had previous exposed the event source using
 * getSource() because they had not originally extended from
 * {@link AbstractEvent}.
 *
 * @return Value for property 'source'.
 *
 * @deprecated Use {@link #getSession} instead
 */
@Deprecated
public EventSource getSource() {
  return getSession();
}
origin: hibernate/hibernate-orm

  protected void performSecurityCheck(
      SessionImplementor session,
      PermissionCheckEntityInformation entityInformation,
      PermissibleAction action) {
    if ( jaccService == null ) {
      jaccService = session.getFactory().getServiceRegistry().getService( JaccService.class );
    }
    jaccService.checkPermission( entityInformation, action );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

  /**
   * Getter for property 'source'.  This is the session from which the event
   * originated.
   * <p/>
   * Some of the pre-* events had previous exposed the event source using
   * getSource() because they had not originally extended from
   * {@link AbstractEvent}.
   *
   * @return Value for property 'source'.
   * @deprecated Use {@link #getSession} instead
   */
  public EventSource getSource() {
    return getSession();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

  /**
   * Getter for property 'source'.  This is the session from which the event
   * originated.
   * <p/>
   * Some of the pre-* events had previous exposed the event source using
   * getSource() because they had not originally extended from
   * {@link AbstractEvent}.
   *
   * @return Value for property 'source'.
   * @deprecated Use {@link #getSession} instead
   */
  public EventSource getSource() {
    return getSession();
  }
}
origin: org.hibernate.orm/hibernate-core

/**
 * Getter for property 'source'.  This is the session from which the event
 * originated.
 * <p/>
 * Some of the pre-* events had previous exposed the event source using
 * getContainer() because they had not originally extended from
 * {@link AbstractEvent}.
 *
 * @return Value for property 'source'.
 *
 * @deprecated Use {@link #getSession} instead
 */
@Deprecated
public EventSource getSource() {
  return getSession();
}
origin: org.grails/grails-datastore-gorm-hibernate-core

private void synchronizeEntityUpdateActionState(AbstractPreDatabaseOperationEvent event, Object entity,
                        HashMap<Integer, Object> changedState) {
  if(actionQueueUpdatesField != null && event instanceof PreInsertEvent && changedState.size() > 0) {
    try {
      ExecutableList<EntityUpdateAction> updates = (ExecutableList<EntityUpdateAction>)actionQueueUpdatesField.get(event.getSession().getActionQueue());
      if(updates != null) {
        for (EntityUpdateAction updateAction : updates) {
          if(updateAction.getInstance() == entity) {
            Object[] updateState = (Object[])entityUpdateActionStateField.get(updateAction);
            if (updateState != null) {
              for(Map.Entry<Integer, Object> entry : changedState.entrySet()) {
                updateState[entry.getKey()] = entry.getValue();
              }
            }
          }
        }
      }
    }
    catch (Exception e) {
      LOG.warn("Error synchronizing object state with Hibernate: " + e.getMessage(), e);
    }
  }
}
origin: org.hibernate.orm/hibernate-core

  protected void performSecurityCheck(
      SessionImplementor session,
      PermissionCheckEntityInformation entityInformation,
      PermissibleAction action) {
    if ( jaccService == null ) {
      jaccService = session.getFactory().getServiceRegistry().getService( JaccService.class );
    }
    jaccService.checkPermission( entityInformation, action );
  }
}
org.hibernate.event.spiAbstractPreDatabaseOperationEventgetSession

Popular methods of AbstractPreDatabaseOperationEvent

  • getEntity
    Retrieves the entity involved in the database operation.
  • getPersister
    The persister for the #getEntity.

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now