|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.collection.AbstractCollectionPersister
net.sf.hibernate.collection.OneToManyPersister
Collection persister for one-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 | |
OneToManyPersister(Collection collection,
Configuration cfg,
SessionFactoryImplementor factory)
|
|
| Method Summary | |
boolean |
consumesAlias()
Ugly, very ugly.... |
protected CollectionInitializer |
createCollectionInitializer(SessionFactoryImplementor factory)
Create the OneToManyLoader |
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 UPDATE that updates a particular row's foreign key to null |
protected String |
generateDeleteString()
Generate the SQL UPDATE that updates all the foreign keys to null |
protected String |
generateInsertRowString()
Generate the SQL UPDATE that updates a foreign key to a value |
protected String |
generateUpdateRowString()
Not needed for one-to-many association |
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 OneToManyPersister(Collection collection, Configuration cfg, SessionFactoryImplementor factory) throws MappingException, CacheException
| Method Detail |
protected String generateDeleteString()
generateDeleteString in class AbstractCollectionPersisterprotected String generateInsertRowString()
generateInsertRowString in class AbstractCollectionPersisterprotected String generateUpdateRowString()
generateUpdateRowString in class AbstractCollectionPersisterprotected String generateDeleteRowString()
generateDeleteRowString in class AbstractCollectionPersisterpublic 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 AbstractCollectionPersisterHibernateExceptionpublic String selectFragment(String alias, String suffix, boolean includeCollectionColumns)
Joinable
protected CollectionInitializer createCollectionInitializer(SessionFactoryImplementor factory) throws MappingException
createCollectionInitializer in class AbstractCollectionPersisterMappingExceptionOneToManyLoaderpublic String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Joinable
public String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Joinable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||