|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hibernate.persister.collection.AbstractCollectionPersister
org.hibernate.persister.collection.BasicCollectionPersister
Collection persister for collections of values and many-to-many associations.
| Field Summary |
| Fields inherited from class org.hibernate.persister.collection.AbstractCollectionPersister |
batchSize, elementColumnAliases, elementColumnIsSettable, elementColumnNames, elementFormulaTemplates, elementIsFormula, elementType, hasIdentifier, hasIndex, hasWhere, identifierColumnName, indexColumnAliases, indexColumnIsSettable, indexColumnNames, indexFormulaTemplates, indexIsFormula, keyColumnAliases, keyColumnNames, qualifiedTableName, sqlWhereString |
| Constructor Summary | |
BasicCollectionPersister(Collection collection,
CacheConcurrencyStrategy cache,
Configuration cfg,
SessionFactoryImplementor factory)
|
|
| Method Summary | |
boolean |
consumesAlias()
Ugly, very ugly.... |
protected CollectionInitializer |
createCollectionInitializer(Map enabledFilters)
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 |
isCascadeDeleteEnabled()
Is cascade delete handled by the database-level foreign key constraint definition? |
boolean |
isManyToMany()
Is this a many-to-many association? Note that this is mainly a convenience feature as the single persister does not conatin all the information needed to handle a many-to-many itself, as internally it is looked at as two many-to-ones. |
boolean |
isOneToMany()
Is this a one-to-many association? |
String |
manyToManySelectFragment(Joinable joinable,
String associationAlias,
String entityAlias,
String suffix,
boolean includeCollectionColumns)
|
String |
selectFragment(Joinable rhs,
String rhsAlias,
String lhsAlias,
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,
CacheConcurrencyStrategy cache,
Configuration cfg,
SessionFactoryImplementor factory)
throws MappingException,
CacheException
| Method Detail |
public boolean isCascadeDeleteEnabled()
CollectionPersister
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()
CollectionPersister
isManyToMany in interface CollectionPersisterisManyToMany in class AbstractCollectionPersister
protected int doUpdateRows(Serializable id,
PersistentCollection collection,
SessionImplementor session)
throws HibernateException
doUpdateRows in class AbstractCollectionPersisterHibernateException
public String selectFragment(Joinable rhs,
String rhsAlias,
String lhsAlias,
String suffix,
boolean includeCollectionColumns)
Joinable
public String manyToManySelectFragment(Joinable joinable,
String associationAlias,
String entityAlias,
String suffix,
boolean includeCollectionColumns)
protected CollectionInitializer createCollectionInitializer(Map enabledFilters)
throws MappingException
createCollectionInitializer in class AbstractCollectionPersisterMappingExceptionCollectionLoader
public 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 | ||||||||||