public class

BasicCollectionPersister

extends AbstractCollectionPersister
java.lang.Object
   ↳ org.hibernate.persister.collection.AbstractCollectionPersister
     ↳ org.hibernate.persister.collection.BasicCollectionPersister

Class Overview

Collection persister for collections of values and many-to-many associations.

Summary

[Expand]
Inherited Fields
From class org.hibernate.persister.collection.AbstractCollectionPersister
Public Constructors
BasicCollectionPersister(Collection collection, CollectionRegionAccessStrategy cacheAccessStrategy, Configuration cfg, SessionFactoryImplementor factory)
Public Methods
boolean consumesCollectionAlias()
boolean consumesEntityAlias()
String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
boolean isCascadeDeleteEnabled()
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()
String selectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String entitySuffix, String collectionSuffix, boolean includeCollectionColumns)
String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Protected Methods
CollectionInitializer createCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers)
Create the CollectionLoader
CollectionInitializer createSubselectInitializer(SubselectFetch subselect, SessionImplementor session)
int doUpdateRows(Serializable id, PersistentCollection collection, SessionImplementor session)
String generateDeleteRowString()
Generate the SQL DELETE that deletes a particular row
String generateDeleteString()
Generate the SQL DELETE that deletes all rows
String generateInsertRowString()
Generate the SQL INSERT that creates a new row
String generateUpdateRowString()
Generate the SQL UPDATE that updates a row
[Expand]
Inherited Methods
From class org.hibernate.persister.collection.AbstractCollectionPersister
From class java.lang.Object
From interface org.hibernate.metadata.CollectionMetadata
From interface org.hibernate.persister.collection.CollectionPersister
From interface org.hibernate.persister.collection.QueryableCollection
From interface org.hibernate.persister.collection.SQLLoadableCollection
From interface org.hibernate.persister.entity.Joinable
From interface org.hibernate.persister.entity.PropertyMapping

Public Constructors

public BasicCollectionPersister (Collection collection, CollectionRegionAccessStrategy cacheAccessStrategy, Configuration cfg, SessionFactoryImplementor factory)

Public Methods

public boolean consumesCollectionAlias ()

public boolean consumesEntityAlias ()

public String fromJoinFragment (String alias, boolean innerJoin, boolean includeSubclasses)

public boolean isCascadeDeleteEnabled ()

public 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.

public boolean isOneToMany ()

public String selectFragment (Joinable rhs, String rhsAlias, String lhsAlias, String entitySuffix, String collectionSuffix, boolean includeCollectionColumns)

public String whereJoinFragment (String alias, boolean innerJoin, boolean includeSubclasses)

Protected Methods

protected CollectionInitializer createCollectionInitializer (LoadQueryInfluencers loadQueryInfluencers)

Create the CollectionLoader

protected CollectionInitializer createSubselectInitializer (SubselectFetch subselect, SessionImplementor session)

protected int doUpdateRows (Serializable id, PersistentCollection collection, SessionImplementor session)

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