Package ome.util
Class CountCollectionPersister
- java.lang.Object
-
- org.hibernate.persister.collection.AbstractCollectionPersister
-
- org.hibernate.persister.collection.BasicCollectionPersister
-
- ome.util.CountCollectionPersister
-
- All Implemented Interfaces:
org.hibernate.metadata.CollectionMetadata,org.hibernate.persister.collection.CollectionPersister,org.hibernate.persister.collection.QueryableCollection,org.hibernate.persister.collection.SQLLoadableCollection,org.hibernate.persister.entity.Joinable,org.hibernate.persister.entity.PropertyMapping
public class CountCollectionPersister extends org.hibernate.persister.collection.BasicCollectionPersisterCollectionPersisterwhich knows how to handle the count views generated by dsl/resources/ome/dsl/views.dm. In general, attempts to data modifications and properly loads the counts.
-
-
Field Summary
-
Fields inherited from class org.hibernate.persister.collection.AbstractCollectionPersister
batchSize, elementColumnAliases, elementColumnIsInPrimaryKey, elementColumnIsSettable, elementColumnNames, elementColumnReaders, elementColumnReaderTemplates, elementColumnWriters, elementFormulas, elementFormulaTemplates, elementIsPureFormula, elementType, hasIdentifier, hasIndex, hasWhere, identifierColumnName, indexColumnAliases, indexColumnIsSettable, indexColumnNames, indexContainsFormula, indexFormulas, indexFormulaTemplates, keyColumnAliases, keyColumnNames, qualifiedTableName, sqlWhereString
-
-
Constructor Summary
Constructors Constructor Description CountCollectionPersister(org.hibernate.mapping.Collection collection, org.hibernate.cache.access.CollectionRegionAccessStrategy regions, org.hibernate.cfg.Configuration cfg, org.hibernate.engine.SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteRows(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session)protected intdoUpdateRows(java.io.Serializable id, org.hibernate.collection.PersistentCollection collection, org.hibernate.engine.SessionImplementor session)voidinsertRows(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session)voidremove(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)voidupdateRows(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session)-
Methods inherited from class org.hibernate.persister.collection.BasicCollectionPersister
consumesCollectionAlias, consumesEntityAlias, createCollectionInitializer, createSubselectInitializer, fromJoinFragment, generateDeleteRowString, generateDeleteString, generateInsertRowString, generateUpdateRowString, isCascadeDeleteEnabled, isManyToMany, isOneToMany, selectFragment, whereJoinFragment
-
Methods inherited from class org.hibernate.persister.collection.AbstractCollectionPersister
appendElementColumns, appendIdentifierColumns, appendIndexColumns, decrementIndexByBase, elementExists, filterFragment, filterFragment, generateDetectRowByElementString, generateDetectRowByIndexString, generateSelectFragment, generateSelectRowByIndexString, generateSelectSizeString, 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, getInitializer, getInsertCheckStyle, getKeyColumnAliases, getKeyColumnNames, getKeyType, getManyToManyFilterFragment, getManyToManyOrderByString, getName, getNodeName, getOwnerEntityName, getOwnerEntityPersister, getRole, getSize, getSQLDeleteRowString, getSQLDeleteString, getSQLExceptionConverter, getSQLInsertRowString, getSQLOrderByString, getSQLUpdateRowString, getSQLWhereString, getTableName, getType, getUpdateCheckStyle, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, hasWhere, incrementIndexByBase, indexExists, initCollectionPropertyMap, initialize, isAffectedByEnabledFilters, isArray, isCollection, isDeleteAllCallable, isDeleteCallable, isExtraLazy, isInsertCallable, isInverse, isLazy, isMutable, isPrimitiveArray, isRowDeleteEnabled, isRowInsertEnabled, isSubselectLoadable, isUpdateCallable, isVersioned, logStaticSQL, oneToManyFilterFragment, postInstantiate, readElement, readIdentifier, readIndex, readKey, recreate, selectFragment, toColumns, toColumns, toString, toType, writeElement, writeElementToWhere, writeIdentifier, writeIndex, writeIndexToWhere, writeKey
-
-
-
-
Method Detail
-
insertRows
public void insertRows(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException- Specified by:
insertRowsin interfaceorg.hibernate.persister.collection.CollectionPersister- Overrides:
insertRowsin classorg.hibernate.persister.collection.AbstractCollectionPersister- Throws:
org.hibernate.HibernateException
-
doUpdateRows
protected int doUpdateRows(java.io.Serializable id, org.hibernate.collection.PersistentCollection collection, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException- Overrides:
doUpdateRowsin classorg.hibernate.persister.collection.BasicCollectionPersister- Throws:
org.hibernate.HibernateException
-
updateRows
public void updateRows(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException- Specified by:
updateRowsin interfaceorg.hibernate.persister.collection.CollectionPersister- Overrides:
updateRowsin classorg.hibernate.persister.collection.AbstractCollectionPersister- Throws:
org.hibernate.HibernateException
-
deleteRows
public void deleteRows(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException- Specified by:
deleteRowsin interfaceorg.hibernate.persister.collection.CollectionPersister- Overrides:
deleteRowsin classorg.hibernate.persister.collection.AbstractCollectionPersister- Throws:
org.hibernate.HibernateException
-
remove
public void remove(java.io.Serializable id, org.hibernate.engine.SessionImplementor session) throws org.hibernate.HibernateException- Specified by:
removein interfaceorg.hibernate.persister.collection.CollectionPersister- Overrides:
removein classorg.hibernate.persister.collection.AbstractCollectionPersister- Throws:
org.hibernate.HibernateException
-
-