Package ome.util

Class 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.BasicCollectionPersister
    CollectionPersister which 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
      void deleteRows​(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session)  
      protected int doUpdateRows​(java.io.Serializable id, org.hibernate.collection.PersistentCollection collection, org.hibernate.engine.SessionImplementor session)  
      void insertRows​(org.hibernate.collection.PersistentCollection collection, java.io.Serializable id, org.hibernate.engine.SessionImplementor session)  
      void remove​(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)  
      void updateRows​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CountCollectionPersister

        public CountCollectionPersister​(org.hibernate.mapping.Collection collection,
                                        org.hibernate.cache.access.CollectionRegionAccessStrategy regions,
                                        org.hibernate.cfg.Configuration cfg,
                                        org.hibernate.engine.SessionFactoryImplementor factory)
    • 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:
        insertRows in interface org.hibernate.persister.collection.CollectionPersister
        Overrides:
        insertRows in class org.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:
        doUpdateRows in class org.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:
        updateRows in interface org.hibernate.persister.collection.CollectionPersister
        Overrides:
        updateRows in class org.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:
        deleteRows in interface org.hibernate.persister.collection.CollectionPersister
        Overrides:
        deleteRows in class org.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:
        remove in interface org.hibernate.persister.collection.CollectionPersister
        Overrides:
        remove in class org.hibernate.persister.collection.AbstractCollectionPersister
        Throws:
        org.hibernate.HibernateException