|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, elementColumnIsInPrimaryKey, elementColumnIsSettable, elementColumnNames, elementFormulas, elementFormulaTemplates, elementIsPureFormula, elementType, hasIdentifier, hasIndex, hasWhere, identifierColumnName, indexColumnAliases, indexColumnIsSettable, indexColumnNames, indexContainsFormula, indexFormulas, indexFormulaTemplates, keyColumnAliases, keyColumnNames, qualifiedTableName, sqlWhereString |
Constructor Summary | |
BasicCollectionPersister(Collection collection,
CacheConcurrencyStrategy cache,
Configuration cfg,
SessionFactoryImplementor factory)
|
Method Summary | |
boolean |
consumesCollectionAlias()
Very, very, very ugly... |
boolean |
consumesEntityAlias()
Very, very, very ugly... |
protected CollectionInitializer |
createCollectionInitializer(Map enabledFilters)
Create the CollectionLoader |
protected CollectionInitializer |
createSubselectInitializer(SubselectFetch subselect,
SessionImplementor session)
|
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 |
selectFragment(Joinable rhs,
String rhsAlias,
String lhsAlias,
String entitySuffix,
String collectionSuffix,
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 AbstractCollectionPersister
protected String generateInsertRowString()
generateInsertRowString
in class AbstractCollectionPersister
protected String generateUpdateRowString()
generateUpdateRowString
in class AbstractCollectionPersister
protected String generateDeleteRowString()
generateDeleteRowString
in class AbstractCollectionPersister
public boolean consumesEntityAlias()
Joinable
public boolean consumesCollectionAlias()
Joinable
public boolean isOneToMany()
CollectionPersister
public boolean isManyToMany()
CollectionPersister
isManyToMany
in interface CollectionPersister
isManyToMany
in class AbstractCollectionPersister
protected int doUpdateRows(Serializable id, PersistentCollection collection, SessionImplementor session) throws HibernateException
doUpdateRows
in class AbstractCollectionPersister
HibernateException
public String selectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String entitySuffix, String collectionSuffix, boolean includeCollectionColumns)
Joinable
protected CollectionInitializer createCollectionInitializer(Map enabledFilters) throws MappingException
createCollectionInitializer
in class AbstractCollectionPersister
MappingException
BasicCollectionLoader
public String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Joinable
public String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Joinable
protected CollectionInitializer createSubselectInitializer(SubselectFetch subselect, SessionImplementor session)
createSubselectInitializer
in class AbstractCollectionPersister
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |