Methods Summary |
---|
public boolean | contains(java.lang.Object collection, java.lang.Object entity)
return ( ( DefaultableList ) collection ).contains( entity );
|
public java.util.Iterator | getElementsIterator(java.lang.Object collection)
return ( ( DefaultableList ) collection ).iterator();
|
public java.lang.Object | indexOf(java.lang.Object collection, java.lang.Object entity)
int index = ( ( DefaultableList ) collection ).indexOf( entity );
return index >= 0 ? new Integer( index ) : null;
|
public java.lang.Object | instantiate(int anticipatedSize)
DefaultableListImpl list = anticipatedSize < 0 ? new DefaultableListImpl() : new DefaultableListImpl( anticipatedSize );
list.setDefaultValue( defaultValue );
return list;
|
public org.hibernate.collection.PersistentCollection | instantiate(org.hibernate.engine.SessionImplementor session, org.hibernate.persister.collection.CollectionPersister persister)
return new PersistentDefaultableList( session );
|
public java.lang.Object | replaceElements(java.lang.Object original, java.lang.Object target, org.hibernate.persister.collection.CollectionPersister persister, java.lang.Object owner, java.util.Map copyCache, org.hibernate.engine.SessionImplementor session)
DefaultableList result = ( DefaultableList ) target;
result.clear();
result.addAll( ( DefaultableList ) original );
return result;
|
public void | setParameterValues(java.util.Properties parameters)
defaultValue = parameters.getProperty( "default" );
|
public org.hibernate.collection.PersistentCollection | wrap(org.hibernate.engine.SessionImplementor session, java.lang.Object collection)
if ( session.getEntityMode() == EntityMode.DOM4J ) {
throw new IllegalStateException( "dom4j not supported" );
}
else {
return new PersistentDefaultableList( session, ( List ) collection );
}
|