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

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

Best Java code snippets using org.hibernate.loader.CollectionAliases.getSuffixedElementAliases (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 {
  // note that if we load this collection from a cartesian product
  // the multiplicity would be broken ... so use an idbag instead
  final Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  if ( element != null ) {
    bag.add( 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 ) {
    tempList.add( 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() );
  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
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 Object old = identifiers.put(
    values.size(),
    persister.readIdentifier( rs, descriptor.getSuffixedIdentifierAlias(), getSession() )
  );
  if ( old == null ) {
    //maintain correct duplication if loaded in a cartesian product
    values.add( 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() );
  if (element!=null) tempList.add(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() );
  if (element!=null) tempList.add(element);
  return element;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  // note that if we load this collection from a cartesian product
  // the multiplicity would be broken ... so use an idbag instead
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  if (element!=null) bag.add(element);
  return element;
}
origin: org.hibernate/com.springsource.org.hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  // note that if we load this collection from a cartesian product
  // the multiplicity would be broken ... so use an idbag instead
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  if (element!=null) bag.add(element);
  return element;
}
origin: hibernate/hibernate

public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
throws HibernateException, SQLException {
  // note that if we load this collection from a cartesian product
  // the multiplicity would be broken ... so use an idbag instead
  Object element = persister.readElement( rs, owner, descriptor.getSuffixedElementAliases(), getSession() ) ;
  if (element!=null) bag.add(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: 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: 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: 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();
  Element subelement = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( subelement, object, persister.getFactory() ); 
  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();
  Element subelement = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( subelement, object, persister.getFactory() );
  return object;
}
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();
  Element subelement = element.addElement( persister.getElementNodeName() );
  elementType.setToXMLNode( subelement, object, persister.getFactory() ); 
  return object;
}
org.hibernate.loaderCollectionAliasesgetSuffixedElementAliases

Javadoc

Returns the suffixed result-set column-aliases for the columns making up the collection's elements.

Popular methods of CollectionAliases

  • getSuffixedIndexAliases
    Returns the suffixed result-set column-aliases for the collumns making up the collection's index (ma
  • 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

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JFrame (javax.swing)
  • PhpStorm for WordPress
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