Codota Logo
PersistentIdentifierBag.beforeInitialize
Code IndexAdd Codota to your IDE (free)

How to use
beforeInitialize
method
in
org.hibernate.collection.internal.PersistentIdentifierBag

Best Java code snippets using org.hibernate.collection.internal.PersistentIdentifierBag.beforeInitialize (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

@Override
public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
    throws HibernateException {
  final Serializable[] array = (Serializable[]) disassembled;
  final int size = array.length;
  beforeInitialize( persister, size );
  for ( int i = 0; i < size; i+=2 ) {
    identifiers.put(
      (i/2),
      persister.getIdentifierType().assemble( array[i], getSession(), owner )
    );
    values.add( persister.getElementType().assemble( array[i+1], getSession(), owner ) );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
throws HibernateException {
  Serializable[] array = (Serializable[]) disassembled;
  int size = array.length;
  beforeInitialize( persister, size );
  for ( int i = 0; i < size; i+=2 ) {
    identifiers.put(
      (i/2),
      persister.getIdentifierType().assemble( array[i], getSession(), owner )
    );
    values.add( persister.getElementType().assemble( array[i+1], getSession(), owner ) );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
throws HibernateException {
  Serializable[] array = (Serializable[]) disassembled;
  int size = array.length;
  beforeInitialize( persister, size );
  for ( int i = 0; i < size; i+=2 ) {
    identifiers.put(
      (i/2),
      persister.getIdentifierType().assemble( array[i], getSession(), owner )
    );
    values.add( persister.getElementType().assemble( array[i+1], getSession(), owner ) );
  }
}
origin: org.hibernate.orm/hibernate-core

@Override
public void initializeFromCache(
    Serializable disassembled,
    Object owner,
    PersistentCollectionDescriptor<?,?,E> collectionDescriptor) {
  final Serializable[] array = (Serializable[]) disassembled;
  final int size = array.length;
  beforeInitialize( size, collectionDescriptor );
  for ( int i = 0; i < size; i+=2 ) {
    identifiers.put(
        (i/2),
        getCollectionDescriptor().getIdDescriptor()
          .getJavaTypeDescriptor()
          .getMutabilityPlan()
          .assemble( array[i] )
    );
    values.add(
        getCollectionDescriptor().getElementDescriptor()
            .getJavaTypeDescriptor()
            .getMutabilityPlan()
            .assemble( array[i+1] )
    );
  }
}
org.hibernate.collection.internalPersistentIdentifierBagbeforeInitialize

Popular methods of PersistentIdentifierBag

  • remove
  • <init>
    Constructs a PersistentIdentifierBag.
  • add
  • beforeAdd
  • beforeRemove
  • dirty
  • getCachedSize
  • getOrphans
  • getSession
  • getSnapshot
  • initialize
  • read
  • initialize,
  • read,
  • readSize,
  • setDirectlyAccessible,
  • setInitialized,
  • write,
  • clear,
  • getCollectionDescriptor,
  • isDirty

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getSystemService (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JFileChooser (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now