|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.collection.AbstractCollectionPersister net.sf.hibernate.collection.BasicCollectionPersister
Collection persister for collections of values and many-to-many associations.
Field Summary |
Fields inherited from class net.sf.hibernate.collection.AbstractCollectionPersister |
batchSize, elementColumnAliases, elementColumnNames, elementPersister, elementType, hasIdentifier, hasIndex, hasWhere, identifierColumnName, indexColumnAliases, indexColumnNames, keyColumnAliases, keyColumnNames, qualifiedTableName, rowSelectColumnNames, sqlWhereString |
Constructor Summary | |
BasicCollectionPersister(Collection collection,
Configuration cfg,
SessionFactoryImplementor factory)
|
Method Summary | |
boolean |
consumesAlias()
Ugly, very ugly.... |
protected CollectionInitializer |
createCollectionInitializer(SessionFactoryImplementor factory)
Create the CollectionLoader |
protected int |
doUpdateRows(Serializable id,
PersistentCollection collection,
SessionImplementor session)
|
String |
fromJoinFragment(String alias,
boolean innerJoin,
boolean includeSubclasses)
Get the from clause part of any joins (optional operation) |
protected String |
generateDeleteRowString()
Generate the SQL DELETE that deletes a particular row |
protected String |
generateDeleteString()
Generate the SQL DELETE that deletes all rows |
protected String |
generateInsertRowString()
Generate the SQL INSERT that creates a new row |
protected String |
generateUpdateRowString()
Generate the SQL UPDATE that updates a row |
boolean |
isManyToMany()
Is this instance actually a many-to-many association? |
boolean |
isOneToMany()
Is this a one-to-many association? |
String |
selectFragment(String alias,
String suffix,
boolean includeCollectionColumns)
All columns to select, when loading. |
String |
whereJoinFragment(String alias,
boolean innerJoin,
boolean includeSubclasses)
Get the where clause part of any joins (optional operation) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BasicCollectionPersister(Collection collection, Configuration cfg, SessionFactoryImplementor factory) throws MappingException, CacheException
Method Detail |
protected String generateDeleteString()
generateDeleteString
in class AbstractCollectionPersister
protected String generateInsertRowString()
generateInsertRowString
in class AbstractCollectionPersister
protected String generateUpdateRowString()
generateUpdateRowString
in class AbstractCollectionPersister
protected String generateDeleteRowString()
generateDeleteRowString
in class AbstractCollectionPersister
public boolean consumesAlias()
Joinable
public boolean isOneToMany()
CollectionPersister
public boolean isManyToMany()
Joinable
protected int doUpdateRows(Serializable id, PersistentCollection collection, SessionImplementor session) throws HibernateException
doUpdateRows
in class AbstractCollectionPersister
HibernateException
protected CollectionInitializer createCollectionInitializer(SessionFactoryImplementor factory) throws MappingException
createCollectionInitializer
in class AbstractCollectionPersister
MappingException
CollectionLoader
public String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Joinable
public String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Joinable
public String selectFragment(String alias, String suffix, boolean includeCollectionColumns)
Joinable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |