Tabnine Logo
SessionImplementor.initializeCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
initializeCollection
method
in
org.hibernate.engine.spi.SessionImplementor

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.initializeCollection (Showing top 16 results out of 315)

origin: hibernate/hibernate-orm

@Override
public void initializeCollection(PersistentCollection collection, boolean writing) throws HibernateException {
  delegate.initializeCollection( collection, writing );
}
origin: org.jboss.seam/jboss-seam

public void initializeCollection(PersistentCollection paramPersistentCollection, boolean paramBoolean) throws HibernateException
{
 ((SessionImplementor) delegate).initializeCollection(paramPersistentCollection, paramBoolean);
}
origin: riotfamily/riot

public void initializeCollection(PersistentCollection collection,
    boolean writing) throws HibernateException {
  session.initializeCollection(collection, writing);
}
origin: org.hibernate.orm/hibernate-core

@Override
public void initializeCollection(PersistentCollection collection, boolean writing) throws HibernateException {
  delegate.initializeCollection( collection, writing );
}
origin: com.atlassian.hibernate/hibernate.adapter

@Override
public void initializeCollection(final PersistentCollection collection, final boolean writing) throws HibernateException {
  getSessionImplementor().initializeCollection(collection, writing);
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Initialize the collection, if possible, wrapping any exceptions
 * in a runtime exception
 * @param writing currently obsolete
 * @throws LazyInitializationException if we cannot initialize
 */
protected final void initialize(boolean writing) {
  if (!initialized) {
    if (initializing) {
      throw new LazyInitializationException("illegal access to loading collection");
    }
    throwLazyInitializationExceptionIfNotConnected();
    session.initializeCollection(this, writing);
  }
}

origin: org.hibernate/com.springsource.org.hibernate

/**
 * Initialize the collection, if possible, wrapping any exceptions
 * in a runtime exception
 * @param writing currently obsolete
 * @throws LazyInitializationException if we cannot initialize
 */
protected final void initialize(boolean writing) {
  if (!initialized) {
    if (initializing) {
      throw new LazyInitializationException("illegal access to loading collection");
    }
    throwLazyInitializationExceptionIfNotConnected();
    session.initializeCollection(this, writing);
  }
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMAOrderedSet<E>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMANavigableMap<K, V>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMAOrderedMap<K, V>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMANavigableSet<E>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

  @Override
  protected void onLoad() {
    SessionImplementor session = this.session;
    if (session==null) {
      throw new LazyInitializationException(
          CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
      );
    }
    if (!session.isConnected()) {
      throw new LazyInitializationException(
          CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
      );
    }
    session.initializeCollection(this.<PersistentMAList<E>>getRootWrapper(), false);
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * To be called internally by the session, forcing
 * immediate initialization.
 */
public final void forceInitialization() throws HibernateException {
  if (!initialized) {
    if (initializing) {
      throw new AssertionFailure("force initialize loading collection");
    }
    if (session==null) {
      throw new HibernateException("collection is not associated with any session");
    }
    if ( !session.isConnected() ) {
      throw new HibernateException("disconnected session");
    }
    session.initializeCollection(this, false);
  }
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * To be called internally by the session, forcing
 * immediate initialization.
 */
public final void forceInitialization() throws HibernateException {
  if (!initialized) {
    if (initializing) {
      throw new AssertionFailure("force initialize loading collection");
    }
    if (session==null) {
      throw new HibernateException("collection is not associated with any session");
    }
    if ( !session.isConnected() ) {
      throw new HibernateException("disconnected session");
    }
    session.initializeCollection(this, false);
  }
}
origin: org.hibernate/com.springsource.org.hibernate

session.initializeCollection( collection, false );
origin: org.hibernate/com.springsource.org.hibernate.core

session.initializeCollection( collection, false );
org.hibernate.engine.spiSessionImplementorinitializeCollection

Javadoc

Initialize the collection (if not already initialized)

Popular methods of SessionImplementor

  • getFactory
    Get the creating SessionFactoryImplementor
  • getTransactionCoordinator
  • connection
  • getPersistenceContext
    Get the persistence context for this session
  • getLoadQueryInfluencers
    Get the load query influencers associated with this session.
  • isTransactionInProgress
    Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
  • getEntityPersister
    Get the EntityPersister for any instance
  • getJdbcCoordinator
  • isClosed
    Determine whether the session is closed. Provided separately from #isOpen() as this method does not
  • flush
  • getTenantIdentifier
    Match te method on org.hibernate.Session and org.hibernate.StatelessSession
  • generateEntityKey
  • getTenantIdentifier,
  • generateEntityKey,
  • getContextEntityIdentifier,
  • isOpen,
  • bestGuessEntityName,
  • getFlushMode,
  • getSessionFactory,
  • guessEntityName,
  • immediateLoad

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 12 Jupyter Notebook extensions
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