Methods Summary |
---|
public boolean | contains(java.lang.Object collection, java.lang.Object entity)
return ( (IMyList) collection ).contains(entity);
|
public java.util.Iterator | getElementsIterator(java.lang.Object collection)
return ( (IMyList) collection ).iterator();
|
public java.lang.Object | indexOf(java.lang.Object collection, java.lang.Object entity)
int l = ( (IMyList) collection ).indexOf(entity);
if(l<0) {
return null;
} else {
return new Integer(l);
}
|
public org.hibernate.collection.PersistentCollection | instantiate(org.hibernate.engine.SessionImplementor session, org.hibernate.persister.collection.CollectionPersister persister)
return new PersistentMyList(session);
|
public java.lang.Object | instantiate(int anticipatedSize)
lastInstantiationRequest = anticipatedSize;
return new MyList();
|
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)
IMyList result = (IMyList) target;
result.clear();
result.addAll((MyList)original);
return result;
|
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 PersistentMyList( session, (IMyList) collection );
}
|