Tabnine Logo
CollectionAliases.getSuffixedIndexAliases
Code IndexAdd Tabnine to your IDE (free)

How to use
getSuffixedIndexAliases
method
in
org.hibernate.loader.CollectionAliases

Best Java code snippets using org.hibernate.loader.CollectionAliases.getSuffixedIndexAliases (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  final Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  final int index = (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  for ( int i = tempList.size(); i<=index; i++) {
    tempList.add( i, null );
  }
  tempList.set( index, element );
  return element;
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
    throws HibernateException, SQLException {
  final Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  final int index = (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  //pad with nulls from the current last element up to the new index
  for ( int i = list.size(); i<=index; i++) {
    list.add( i, null );
  }
  list.set( index, element );
  return element;
}
origin: hibernate/hibernate-orm

@Override
@SuppressWarnings("unchecked")
public Object readFrom(
    ResultSet rs,
    CollectionPersister persister,
    CollectionAliases descriptor,
    Object owner) throws HibernateException, SQLException {
  final Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  if ( element != null ) {
    final Object index = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
    if ( loadingEntries == null ) {
      loadingEntries = new ArrayList<>();
    }
    loadingEntries.add( new Object[] { index, element } );
  }
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  //pad with nulls from the current last element up to the new index
  for ( int i = list.size(); i<=index; i++) {
    list.add(i, null);
  }
  list.set(index, element);
  return element;
}
origin: hibernate/hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  for ( int i = tempList.size(); i<=index; i++) {
    tempList.add(i, null);
  }
  tempList.set(index, element);
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  //pad with nulls from the current last element up to the new index
  for ( int i = list.size(); i<=index; i++) {
    list.add(i, null);
  }
  list.set(index, element);
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  for ( int i = tempList.size(); i<=index; i++) {
    tempList.add(i, null);
  }
  tempList.set(index, element);
  return element;
}
origin: hibernate/hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner) throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  
  //pad with nulls from the current last element up to the new index
  for ( int i = list.size(); i<=index; i++) {
    list.add(i, null);
  }
  
  list.set(index, element);
  return element;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  for ( int i = tempList.size(); i<=index; i++) {
    tempList.add(i, null);
  }
  tempList.set(index, element);
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  for ( int i = tempList.size(); i<=index; i++) {
    tempList.add(i, null);
  }
  tempList.set(index, element);
  return element;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner) 
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  int index = ( (Integer) persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() ) ).intValue();
  
  //pad with nulls from the current last element up to the new index
  for ( int i = list.size(); i<=index; i++) {
    list.add(i, null);
  }
  
  list.set(index, element);
  return element;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  Object index = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  if ( element!=null ) map.put(index, element);
  return element;
}
origin: hibernate/hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  Object index = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  map.put(index, element);
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  Object index = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  if ( element!=null ) map.put(index, element);
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  Object index = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  if ( element!=null ) map.put(index, element);
  return element;
}
origin: babyfish-ct/babyfish

@SuppressWarnings("unchecked")
@Override
public V readFrom(
    ResultSet rs, 
    CollectionPersister persister,
    CollectionAliases descriptor, 
    Object owner) throws HibernateException, SQLException {
  V value = (V)persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  K key = (K)persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  if ( value != null ) {
    this.getBase().put(key, value);
  }
  return value;
}
origin: hibernate/hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object object = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  final Type elementType = persister.getElementType();
  final SessionFactoryImplementor factory = persister.getFactory();
  String indexNode = getIndexAttributeName(persister);
  Element elem = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( elem, object, factory ); 
  
  final Type indexType = persister.getIndexType();
  final Object indexValue = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  final String index = ( (NullableType) indexType ).toXMLString( indexValue, factory );
  setIndex(elem, indexNode, index);
  return object;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object object = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  final Type elementType = persister.getElementType();
  final SessionFactoryImplementor factory = persister.getFactory();
  String indexNode = getIndexAttributeName(persister);
  Element elem = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( elem, object, factory ); 
  
  final Type indexType = persister.getIndexType();
  final Object indexValue = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  final String index = ( (XmlRepresentableType) indexType ).toXMLString( indexValue, factory );
  setIndex(elem, indexNode, index);
  return object;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object object = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  final Type elementType = persister.getElementType();
  final SessionFactoryImplementor factory = persister.getFactory();
  String indexNode = getIndexAttributeName(persister);
  Element elem = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( elem, object, factory ); 
  
  final Type indexType = persister.getIndexType();
  final Object indexValue = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  final String index = ( (NullableType) indexType ).toXMLString( indexValue, factory );
  setIndex(elem, indexNode, index);
  return object;
}
origin: org.hibernate/com.springsource.org.hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  Object object = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() );
  final Type elementType = persister.getElementType();
  final SessionFactoryImplementor factory = persister.getFactory();
  String indexNode = getIndexAttributeName(persister);
  Element elem = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( elem, object, factory ); 
  
  final Type indexType = persister.getIndexType();
  final Object indexValue = persister.readIndex( rs, descriptor.getSuffixedIndexAliases(), getSession() );
  final String index = ( (XmlRepresentableType) indexType ).toXMLString( indexValue, factory );
  setIndex(elem, indexNode, index);
  return object;
}
org.hibernate.loaderCollectionAliasesgetSuffixedIndexAliases

Javadoc

Returns the suffixed result-set column-aliases for the collumns making up the collection's index (map or list).

Popular methods of CollectionAliases

  • getSuffixedElementAliases
    Returns the suffixed result-set column-aliases for the columns making up the collection's elements.
  • getSuffixedKeyAliases
    Returns the suffixed result-set column-aliases for columns making up the key for this collection (i.
  • getSuffixedIdentifierAlias
    Returns the suffixed result-set column-aliases for the column defining the collection's identifier (
  • getSuffix
    Returns the suffix used to unique the column aliases for this particular alias set.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JList (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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