|
||||||||||
| 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
public class BasicCollectionPersister
Collection persister for collections of values and many-to-many associations.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
BasicCollectionPersister(Collection collection,
CollectionRegionAccessStrategy cacheAccessStrategy,
Configuration cfg,
SessionFactoryImplementor factory)
|
|
| Method Summary | |
|---|---|
boolean |
consumesCollectionAlias()
Very, very, very ugly... |
boolean |
consumesEntityAlias()
Very, very, very ugly... |
protected CollectionInitializer |
createCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers)
Create the CollectionLoader |
protected CollectionInitializer |
createSubselectInitializer(SubselectFetch subselect,
SessionImplementor session)
|
protected void |
doProcessQueuedOps(PersistentCollection collection,
Serializable id,
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 |
FilterAliasGenerator |
getFilterAliasGenerator(String rootAlias)
|
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,
CollectionRegionAccessStrategy cacheAccessStrategy,
Configuration cfg,
SessionFactoryImplementor factory)
throws MappingException,
CacheException
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 AbstractCollectionPersister
protected void doProcessQueuedOps(PersistentCollection collection,
Serializable id,
SessionImplementor session)
throws HibernateException
doProcessQueuedOps in class AbstractCollectionPersisterHibernateExceptionprotected String generateDeleteRowString()
generateDeleteRowString in class AbstractCollectionPersisterpublic boolean consumesEntityAlias()
Joinable
public boolean consumesCollectionAlias()
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 entitySuffix,
String collectionSuffix,
boolean includeCollectionColumns)
Joinable
protected CollectionInitializer createCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers)
throws MappingException
createCollectionInitializer in class AbstractCollectionPersisterMappingExceptionBasicCollectionLoader
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 AbstractCollectionPersisterpublic FilterAliasGenerator getFilterAliasGenerator(String rootAlias)
getFilterAliasGenerator in class AbstractCollectionPersister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||