congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SessionImpl.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
org.hibernate.impl.SessionImpl

Best Java code snippets using org.hibernate.impl.SessionImpl.get (Showing top 4 results out of 315)

origin: hibernate/hibernate

public Object get(Class entityClass, Serializable id, LockMode lockMode) throws HibernateException {
  return get( entityClass.getName(), id, lockMode );
}
origin: hibernate/hibernate

public Object get(Class entityClass, Serializable id) throws HibernateException {
  return get( entityClass.getName(), id );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object get(String entityName, Serializable id, LockMode lockMode) throws HibernateException {
  LoadEvent event = new LoadEvent(id, entityName, lockMode, this);
    fireLoad(event, LoadEventListener.GET);
  return event.getResult();
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object get(String entityName, Serializable id) throws HibernateException {
  LoadEvent event = new LoadEvent(id, entityName, false, this);
  boolean success = false;
  try {
    fireLoad(event, LoadEventListener.GET);
    success = true;
    return event.getResult();
  }
  finally {
    afterOperation(success);
  }
}
org.hibernate.implSessionImplget

Javadoc

Get the id value for an object that is actually associated with the session. This is a bit stricter than getEntityIdentifierIfNotUnsaved().

Popular methods of SessionImpl

  • getFactory
  • <init>
    Constructor used in building "child sessions".
  • afterOperation
    Check if there is a Hibernate or JTA transaction in progress and, if there is not, flush if necessar
  • autoFlushIfRequired
    detect in-memory changes, determine if the changes are to tables named in the query and, if so, comp
  • cleanup
    clear all the internal collections, just to help the garbage collector, does not clear anything that
  • clear
  • close
  • delete
  • find
    Retrieve a list of persistent objects using a hibernate query
  • flush
  • getConnectionReleaseMode
  • getEnabledFilters
  • getConnectionReleaseMode,
  • getEnabledFilters,
  • getFlushMode,
  • getOuterJoinLoadable,
  • getProxyIdentifier,
  • guessEntityName,
  • isAutoCloseSessionEnabled,
  • iterate,
  • list

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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