Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » persister » collection » [javadoc | source]
org.hibernate.persister.collection
abstract public class: AbstractCollectionPersister [javadoc | source]
java.lang.Object
   org.hibernate.persister.collection.AbstractCollectionPersister

All Implemented Interfaces:
    SQLLoadableCollection, CollectionMetadata

Direct Known Subclasses:
    OneToManyPersister, BasicCollectionPersister

Base implementation of the QueryableCollection interface.
Field Summary
protected final  String sqlWhereString     
protected final  boolean hasWhere     
protected final  boolean indexContainsFormula     
protected final  boolean elementIsPureFormula     
protected final  Type elementType     
protected final  String[] keyColumnNames     
protected final  String[] indexColumnNames     
protected final  String[] indexFormulaTemplates     
protected final  String[] indexFormulas     
protected final  boolean[] indexColumnIsSettable     
protected final  String[] elementColumnNames     
protected final  String[] elementFormulaTemplates     
protected final  String[] elementFormulas     
protected final  boolean[] elementColumnIsSettable     
protected final  boolean[] elementColumnIsInPrimaryKey     
protected final  String[] indexColumnAliases     
protected final  String[] elementColumnAliases     
protected final  String[] keyColumnAliases     
protected final  String identifierColumnName     
protected final  String qualifiedTableName     
protected final  boolean hasIndex     
protected final  boolean hasIdentifier     
protected final  int batchSize     
Constructor:
 public AbstractCollectionPersister(Collection collection,
    CollectionRegionAccessStrategy cacheAccessStrategy,
    Configuration cfg,
    SessionFactoryImplementor factory) throws MappingException, CacheException 
Method from org.hibernate.persister.collection.AbstractCollectionPersister Summary:
appendElementColumns,   appendIdentifierColumns,   appendIndexColumns,   createCollectionInitializer,   createSubselectInitializer,   decrementIndexByBase,   deleteRows,   doUpdateRows,   elementExists,   filterFragment,   filterFragment,   generateDeleteRowString,   generateDeleteString,   generateDetectRowByElementString,   generateDetectRowByIndexString,   generateInsertRowString,   generateSelectFragment,   generateSelectRowByIndexString,   generateSelectSizeString,   generateUpdateRowString,   getAppropriateInitializer,   getCacheAccessStrategy,   getCacheEntryStructure,   getCollectionMetadata,   getCollectionPropertyColumnAliases,   getCollectionSpaces,   getCollectionType,   getDeleteAllCheckStyle,   getDeleteCheckStyle,   getDialect,   getElementByIndex,   getElementClass,   getElementColumnAliases,   getElementColumnNames,   getElementColumnNames,   getElementNodeName,   getElementPersister,   getElementType,   getFactory,   getFetchMode,   getIdentifierColumnAlias,   getIdentifierColumnName,   getIdentifierGenerator,   getIdentifierType,   getIndexColumnAliases,   getIndexColumnNames,   getIndexColumnNames,   getIndexFormulas,   getIndexNodeName,   getIndexType,   getInsertCheckStyle,   getKeyColumnAliases,   getKeyColumnNames,   getKeyType,   getManyToManyFilterFragment,   getManyToManyOrderByString,   getName,   getNodeName,   getOwnerEntityName,   getOwnerEntityPersister,   getRole,   getSQLDeleteRowString,   getSQLDeleteString,   getSQLExceptionConverter,   getSQLInsertRowString,   getSQLOrderByString,   getSQLUpdateRowString,   getSQLWhereString,   getSize,   getTableName,   getType,   getUpdateCheckStyle,   hasCache,   hasIndex,   hasManyToManyOrdering,   hasOrdering,   hasOrphanDelete,   hasWhere,   incrementIndexByBase,   indexExists,   initCollectionPropertyMap,   initialize,   insertRows,   isAffectedByEnabledFilters,   isArray,   isCollection,   isDeleteAllCallable,   isDeleteCallable,   isExtraLazy,   isInsertCallable,   isInverse,   isLazy,   isManyToMany,   isMutable,   isPrimitiveArray,   isRowDeleteEnabled,   isRowInsertEnabled,   isSubselectLoadable,   isUpdateCallable,   isVersioned,   logStaticSQL,   oneToManyFilterFragment,   postInstantiate,   readElement,   readIdentifier,   readIndex,   readKey,   recreate,   remove,   selectFragment,   toColumns,   toColumns,   toString,   toType,   updateRows,   writeElement,   writeElementToWhere,   writeIdentifier,   writeIndex,   writeIndexToWhere,   writeKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.persister.collection.AbstractCollectionPersister Detail:
 protected  void appendElementColumns(SelectFragment frag,
    String elemAlias) 
 protected  void appendIdentifierColumns(SelectFragment frag,
    String alias) 
 protected  void appendIndexColumns(SelectFragment frag,
    String alias) 
 abstract protected CollectionInitializer createCollectionInitializer(Map enabledFilters) throws MappingException
 abstract protected CollectionInitializer createSubselectInitializer(SubselectFetch subselect,
    SessionImplementor session)
 protected Object decrementIndexByBase(Object index) 
 public  void deleteRows(PersistentCollection collection,
    Serializable id,
    SessionImplementor session) throws HibernateException 
 abstract protected int doUpdateRows(Serializable key,
    PersistentCollection collection,
    SessionImplementor session) throws HibernateException
 public boolean elementExists(Serializable key,
    Object element,
    SessionImplementor session) 
 protected String filterFragment(String alias) throws MappingException 
 public String filterFragment(String alias,
    Map enabledFilters) throws MappingException 
 abstract protected String generateDeleteRowString()
 abstract protected String generateDeleteString()
 protected String generateDetectRowByElementString() 
 protected String generateDetectRowByIndexString() 
 abstract protected String generateInsertRowString()
 protected SelectFragment generateSelectFragment(String alias,
    String columnSuffix) 
 protected String generateSelectRowByIndexString() 
 protected String generateSelectSizeString(boolean isIntegerIndexed) 
 abstract protected String generateUpdateRowString()
 protected CollectionInitializer getAppropriateInitializer(Serializable key,
    SessionImplementor session) 
 public CollectionRegionAccessStrategy getCacheAccessStrategy() 
 public CacheEntryStructure getCacheEntryStructure() 
 public CollectionMetadata getCollectionMetadata() 
 public String[] getCollectionPropertyColumnAliases(String propertyName,
    String suffix) 
 public Serializable[] getCollectionSpaces() 
 public CollectionType getCollectionType() 
 protected ExecuteUpdateResultCheckStyle getDeleteAllCheckStyle() 
 protected ExecuteUpdateResultCheckStyle getDeleteCheckStyle() 
 protected Dialect getDialect() 
 public Object getElementByIndex(Serializable key,
    Object index,
    SessionImplementor session,
    Object owner) 
 public Class getElementClass() 
    Return the element class of an array, or null otherwise
 public String[] getElementColumnAliases(String suffix) 
 public String[] getElementColumnNames() 
 public String[] getElementColumnNames(String alias) 
 public String getElementNodeName() 
 public EntityPersister getElementPersister() 
 public Type getElementType() 
 public SessionFactoryImplementor getFactory() 
 public FetchMode getFetchMode() 
 public String getIdentifierColumnAlias(String suffix) 
 public String getIdentifierColumnName() 
 public IdentifierGenerator getIdentifierGenerator() 
 public Type getIdentifierType() 
 public String[] getIndexColumnAliases(String suffix) 
 public String[] getIndexColumnNames() 
 public String[] getIndexColumnNames(String alias) 
 public String[] getIndexFormulas() 
 public String getIndexNodeName() 
 public Type getIndexType() 
 protected ExecuteUpdateResultCheckStyle getInsertCheckStyle() 
 public String[] getKeyColumnAliases(String suffix) 
 public String[] getKeyColumnNames() 
 public Type getKeyType() 
 public String getManyToManyFilterFragment(String alias,
    Map enabledFilters) 
 public String getManyToManyOrderByString(String alias) 
 public String getName() 
 public String getNodeName() 
 public String getOwnerEntityName() 
 public EntityPersister getOwnerEntityPersister() 
 public String getRole() 
 protected String getSQLDeleteRowString() 
 protected String getSQLDeleteString() 
 protected SQLExceptionConverter getSQLExceptionConverter() 
 protected String getSQLInsertRowString() 
 public String getSQLOrderByString(String alias) 
 protected String getSQLUpdateRowString() 
 protected String getSQLWhereString(String alias) 
 public int getSize(Serializable key,
    SessionImplementor session) 
 public String getTableName() 
 public Type getType() 
 protected ExecuteUpdateResultCheckStyle getUpdateCheckStyle() 
 public boolean hasCache() 
 public boolean hasIndex() 
 public boolean hasManyToManyOrdering() 
 public boolean hasOrdering() 
 public boolean hasOrphanDelete() 
 public boolean hasWhere() 
 protected Object incrementIndexByBase(Object index) 
 public boolean indexExists(Serializable key,
    Object index,
    SessionImplementor session) 
 public  void initCollectionPropertyMap() 
 public  void initialize(Serializable key,
    SessionImplementor session) throws HibernateException 
 public  void insertRows(PersistentCollection collection,
    Serializable id,
    SessionImplementor session) throws HibernateException 
 public boolean isAffectedByEnabledFilters(SessionImplementor session) 
 public boolean isArray() 
 public boolean isCollection() 
 protected boolean isDeleteAllCallable() 
 protected boolean isDeleteCallable() 
 public boolean isExtraLazy() 
 protected boolean isInsertCallable() 
 public boolean isInverse() 
 public boolean isLazy() 
 abstract public boolean isManyToMany()
 public boolean isMutable() 
 public boolean isPrimitiveArray() 
 protected boolean isRowDeleteEnabled() 
 protected boolean isRowInsertEnabled() 
 public boolean isSubselectLoadable() 
 protected boolean isUpdateCallable() 
 public boolean isVersioned() 
 protected  void logStaticSQL() 
 public String oneToManyFilterFragment(String alias) throws MappingException 
 public  void postInstantiate() throws MappingException 
 public Object readElement(ResultSet rs,
    Object owner,
    String[] aliases,
    SessionImplementor session) throws HibernateException, SQLException 
 public Object readIdentifier(ResultSet rs,
    String alias,
    SessionImplementor session) throws HibernateException, SQLException 
 public Object readIndex(ResultSet rs,
    String[] aliases,
    SessionImplementor session) throws HibernateException, SQLException 
 public Object readKey(ResultSet rs,
    String[] aliases,
    SessionImplementor session) throws HibernateException, SQLException 
 public  void recreate(PersistentCollection collection,
    Serializable id,
    SessionImplementor session) throws HibernateException 
 public  void remove(Serializable id,
    SessionImplementor session) throws HibernateException 
 public String selectFragment(String alias,
    String columnSuffix) 
    Generate a list of collection index, key and element columns
 public String[] toColumns(String propertyName) throws QueryException 
 public String[] toColumns(String alias,
    String propertyName) throws QueryException 
 public String toString() 
 public Type toType(String propertyName) throws QueryException 
 public  void updateRows(PersistentCollection collection,
    Serializable id,
    SessionImplementor session) throws HibernateException 
 protected int writeElement(PreparedStatement st,
    Object elt,
    int i,
    SessionImplementor session) throws HibernateException, SQLException 
    Write the element to a JDBC PreparedStatement
 protected int writeElementToWhere(PreparedStatement st,
    Object elt,
    int i,
    SessionImplementor session) throws HibernateException, SQLException 
    Write the element to a JDBC PreparedStatement
 public int writeIdentifier(PreparedStatement st,
    Object id,
    int i,
    SessionImplementor session) throws HibernateException, SQLException 
    Write the identifier to a JDBC PreparedStatement
 protected int writeIndex(PreparedStatement st,
    Object index,
    int i,
    SessionImplementor session) throws HibernateException, SQLException 
    Write the index to a JDBC PreparedStatement
 protected int writeIndexToWhere(PreparedStatement st,
    Object index,
    int i,
    SessionImplementor session) throws HibernateException, SQLException 
    Write the index to a JDBC PreparedStatement
 protected int writeKey(PreparedStatement st,
    Serializable key,
    int i,
    SessionImplementor session) throws HibernateException, SQLException 
    Write the key to a JDBC PreparedStatement