Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » persister » collection » [javadoc | source]
org.hibernate.persister.collection
public class: OneToManyPersister [javadoc | source]
java.lang.Object
   org.hibernate.persister.collection.AbstractCollectionPersister
      org.hibernate.persister.collection.OneToManyPersister

All Implemented Interfaces:
    SQLLoadableCollection, CollectionMetadata

Collection persister for one-to-many associations.
Fields inherited from org.hibernate.persister.collection.AbstractCollectionPersister:
sqlWhereString,  hasWhere,  indexContainsFormula,  elementIsPureFormula,  elementType,  keyColumnNames,  indexColumnNames,  indexFormulaTemplates,  indexFormulas,  indexColumnIsSettable,  elementColumnNames,  elementFormulaTemplates,  elementFormulas,  elementColumnIsSettable,  elementColumnIsInPrimaryKey,  indexColumnAliases,  elementColumnAliases,  keyColumnAliases,  identifierColumnName,  qualifiedTableName,  hasIndex,  hasIdentifier,  batchSize
Constructor:
 public OneToManyPersister(Collection collection,
    CollectionRegionAccessStrategy cacheAccessStrategy,
    Configuration cfg,
    SessionFactoryImplementor factory) throws MappingException, CacheException 
Method from org.hibernate.persister.collection.OneToManyPersister Summary:
consumesCollectionAlias,   consumesEntityAlias,   createCollectionInitializer,   createSubselectInitializer,   doUpdateRows,   filterFragment,   fromJoinFragment,   generateDeleteRowString,   generateDeleteString,   generateInsertRowString,   generateUpdateRowString,   getElementByIndex,   getTableName,   isCascadeDeleteEnabled,   isManyToMany,   isOneToMany,   isRowDeleteEnabled,   isRowInsertEnabled,   selectFragment,   whereJoinFragment
Methods from org.hibernate.persister.collection.AbstractCollectionPersister:
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:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.persister.collection.OneToManyPersister Detail:
 public boolean consumesCollectionAlias() 
 public boolean consumesEntityAlias() 
 protected CollectionInitializer createCollectionInitializer(Map enabledFilters) throws MappingException 
    Create the OneToManyLoader
 protected CollectionInitializer createSubselectInitializer(SubselectFetch subselect,
    SessionImplementor session) 
 protected int doUpdateRows(Serializable id,
    PersistentCollection collection,
    SessionImplementor session) throws HibernateException 
 public String filterFragment(String alias) throws MappingException 
 public String fromJoinFragment(String alias,
    boolean innerJoin,
    boolean includeSubclasses) 
 protected String generateDeleteRowString() 
    Generate the SQL UPDATE that updates a particular row's foreign key to null
 protected String generateDeleteString() 
    Generate the SQL UPDATE that updates all the foreign keys to null
 protected String generateInsertRowString() 
    Generate the SQL UPDATE that updates a foreign key to a value
 protected String generateUpdateRowString() 
    Not needed for one-to-many association
 public Object getElementByIndex(Serializable key,
    Object index,
    SessionImplementor session,
    Object owner) 
 public String getTableName() 
 public boolean isCascadeDeleteEnabled() 
 public boolean isManyToMany() 
 public boolean isOneToMany() 
 protected boolean isRowDeleteEnabled() 
 protected boolean isRowInsertEnabled() 
 public String selectFragment(Joinable rhs,
    String rhsAlias,
    String lhsAlias,
    String entitySuffix,
    String collectionSuffix,
    boolean includeCollectionColumns) 
 public String whereJoinFragment(String alias,
    boolean innerJoin,
    boolean includeSubclasses)