接口的使用
org.hibernate.event.spi.EventSource
-
使用EventSource的程序包 程序包 说明 org.hibernate.action.internal Internals for action processing.org.hibernate.cache.spi.entry This package defines formats for disassembled state kept in the second level cache.org.hibernate.engine.internal Support for many of the internal workings of Hibernate.org.hibernate.engine.query.spi Defines support for query plans and stored metadata about queriesorg.hibernate.engine.spi org.hibernate.event.internal This package defines a default set of event listeners that implements the default behaviors of Hibernate.org.hibernate.event.spi org.hibernate.hql.internal.ast An ANTLR-based parser for Hibernate Query Language.org.hibernate.hql.internal.classic This package contains the Hibernate 2.x query parser which is being end-of-lifed.org.hibernate.hql.spi org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs.org.hibernate.loader.hql This package defines a loader for the AST-based query parser -
-
org.hibernate.action.internal中EventSource的使用
返回EventSource的org.hibernate.action.internal中的方法 修饰符和类型 方法 说明 protected EventSourceCollectionAction. eventSource()protected EventSourceEntityAction. eventSource() -
org.hibernate.cache.spi.entry中EventSource的使用
参数类型为EventSource的org.hibernate.cache.spi.entry中的方法 修饰符和类型 方法 说明 Object[]StandardCacheEntryImpl. assemble(Object instance, Serializable id, EntityPersister persister, Interceptor interceptor, EventSource session)Assemble the previously disassembled state represented by this entry into the given entity instance. -
org.hibernate.engine.internal中EventSource的使用
参数类型为EventSource的org.hibernate.engine.internal中的方法 修饰符和类型 方法 说明 static voidCascade. cascade(CascadingAction action, CascadePoint cascadePoint, EventSource eventSource, EntityPersister persister, Object parent)Cascade an action from the parent entity instance to all its children.static voidCascade. cascade(CascadingAction action, CascadePoint cascadePoint, EventSource eventSource, EntityPersister persister, Object parent, Object anything)Cascade an action from the parent entity instance to all its children. -
org.hibernate.engine.query.spi中EventSource的使用
参数类型为EventSource的org.hibernate.engine.query.spi中的方法 修饰符和类型 方法 说明 IteratorHQLQueryPlan. performIterate(QueryParameters queryParameters, EventSource session)Coordinates the efforts to perform an iterate across all the included query translators. -
org.hibernate.engine.spi中EventSource的使用
参数类型为EventSource的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 voidCascadingAction. cascade(EventSource session, Object child, String entityName, Object anything, boolean isCascadeDeleteEnabled)Cascade the action to the child object.static IteratorCascadingActions. getAllElementsIterator(EventSource session, CollectionType collectionType, Object collection)Given a collection, get an iterator of all its children, loading them from the database if necessary.IteratorCascadingAction. getCascadableChildrenIterator(EventSource session, CollectionType collectionType, Object collection)Given a collection, get an iterator of the children upon which the current cascading action should be visited.voidCascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)Called (in the case ofCascadingAction.requiresNoCascadeChecking()returning true) to validate that no cascade on the given property is considered a valid semantic.voidCascadingActions.BaseCascadingAction. noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex) -
org.hibernate.event.internal中EventSource的使用
参数类型为EventSource的org.hibernate.event.internal中的方法 修饰符和类型 方法 说明 protected voidDefaultDeleteEventListener. cascadeAfterDelete(EventSource session, EntityPersister persister, Object entity, Set transientEntities)protected voidAbstractSaveEventListener. cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, Object anything)Handles to calls needed to perform post-save cascades.protected voidDefaultMergeEventListener. cascadeAfterSave(EventSource source, EntityPersister persister, Object entity, Object anything)Cascade behavior is redefined by this subclass, disable superclass behaviorprotected voidDefaultDeleteEventListener. cascadeBeforeDelete(EventSource session, EntityPersister persister, Object entity, EntityEntry entityEntry, Set transientEntities)protected voidAbstractSaveEventListener. cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, Object anything)Handles the calls needed to perform pre-save cascades for the given entity.protected voidDefaultMergeEventListener. cascadeBeforeSave(EventSource source, EntityPersister persister, Object entity, Object anything)Cascade behavior is redefined by this subclass, disable superclass behaviorprotected voidDefaultMergeEventListener. cascadeOnMerge(EventSource source, EntityPersister persister, Object entity, Map copyCache)Perform any cascades needed as part of this copy event.protected voidDefaultDeleteEventListener. deleteEntity(EventSource session, Object entity, EntityEntry entityEntry, boolean isCascadeDeleteEnabled, boolean isOrphanRemovalBeforeUpdates, EntityPersister persister, Set transientEntities)Perform the entity deletion.protected voidDefaultDeleteEventListener. deleteTransientEntity(EventSource session, Object entity, boolean cascadeDeleteEnabled, EntityPersister persister, Set transientEntities)We encountered a delete request on a transient instance.protected voidDefaultEvictEventListener. doEvict(Object object, EntityKey key, EntityPersister persister, EventSource session)voidEntityCopyAllowedLoggedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)voidEntityCopyAllowedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)voidEntityCopyNotAllowedObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)protected booleanDefaultDeleteEventListener. invokeDeleteLifecycle(EventSource session, Object entity, EntityPersister persister)protected voidDefaultPostLoadEventListener. invokeLoadLifecycle(PostLoadEvent event, EventSource session)protected booleanAbstractSaveEventListener. invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source)protected booleanDefaultSaveOrUpdateEventListener. invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source)protected voidAbstractFlushingEventListener. performExecutions(EventSource session)Execute all SQL (and second-level cache updates) in a special order so that foreign-key constraints cannot be violated: Inserts, in the order they were performed Updates Deletion of collection elements Insertion of collection elements Deletes, in the order they were performedprotected SerializableAbstractSaveEventListener. performSave(Object entity, Serializable id, EntityPersister persister, boolean useIdentityColumn, Object anything, EventSource source, boolean requiresImmediateIdAccess)Prepares the save call by checking the session caches for a pre-existing entity and performing any lifecycle callbacks.protected SerializableAbstractSaveEventListener. performSaveOrReplicate(Object entity, EntityKey key, EntityPersister persister, boolean useIdentityColumn, Object anything, EventSource source, boolean requiresImmediateIdAccess)Performs all the actual work needed to save an entity (well to get the save moved to the execution queue).protected SerializableAbstractSaveEventListener. saveWithGeneratedId(Object entity, String entityName, Object anything, EventSource source, boolean requiresImmediateIdAccess)Prepares the save call using a newly generated id.protected SerializableAbstractSaveEventListener. saveWithRequestedId(Object entity, Serializable requestedId, String entityName, Object anything, EventSource source)Prepares the save call using the given requested id.voidEntityCopyAllowedLoggedObserver. topLevelMergeComplete(EventSource session)voidEntityCopyAllowedObserver. topLevelMergeComplete(EventSource session)voidEntityCopyNotAllowedObserver. topLevelMergeComplete(EventSource session)protected voidAbstractLockUpgradeEventListener. upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)Performs a pessimistic lock upgrade on a given entity, if needed.protected booleanAbstractSaveEventListener. visitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)protected booleanDefaultReplicateEventListener. visitCollectionsBeforeSave(Object entity, Serializable id, Object[] values, Type[] types, EventSource source)参数类型为EventSource的org.hibernate.event.internal中的构造器 构造器 说明 DirtyCollectionSearchVisitor(EventSource session, boolean[] propertyVersionability)EvictVisitor(EventSource session, Object owner)FlushVisitor(EventSource session, Object owner)MergeContext(EventSource session, EntityCopyObserver entityCopyObserver)OnLockVisitor(EventSource session, Serializable key, Object owner)OnReplicateVisitor(EventSource session, Serializable key, Object owner, boolean isUpdate)OnUpdateVisitor(EventSource session, Serializable key, Object owner)ProxyVisitor(EventSource session)ReattachVisitor(EventSource session, Serializable ownerIdentifier, Object owner)WrapVisitor(Object entity, Serializable id, EventSource session)WrapVisitor(EventSource session) -
org.hibernate.event.spi中EventSource的使用
返回EventSource的org.hibernate.event.spi中的方法 修饰符和类型 方法 说明 EventSourceAbstractEvent. getSession()Returns the session event source for this event.EventSourceAbstractPreDatabaseOperationEvent. getSource()已过时。UseAbstractEvent.getSession()instead参数类型为EventSource的org.hibernate.event.spi中的方法 修饰符和类型 方法 说明 voidEntityCopyObserver. entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)Called when more than one representation of the same persistent entity is being merged.protected static StringAbstractCollectionEvent. getAffectedOwnerEntityName(CollectionPersister collectionPersister, Object affectedOwner, EventSource source)protected static CollectionPersisterAbstractCollectionEvent. getLoadedCollectionPersister(PersistentCollection collection, EventSource source)protected static SerializableAbstractCollectionEvent. getLoadedOwnerIdOrNull(PersistentCollection collection, EventSource source)protected static ObjectAbstractCollectionEvent. getLoadedOwnerOrNull(PersistentCollection collection, EventSource source)protected static SerializableAbstractCollectionEvent. getOwnerIdOrNull(Object owner, EventSource source)voidEntityCopyObserver. topLevelMergeComplete(EventSource session)Called when the top-level merge operation is complete.参数类型为EventSource的org.hibernate.event.spi中的构造器 构造器 说明 AbstractCollectionEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source, Object affectedOwner, Serializable affectedOwnerId)Constructs an AbstractCollectionEvent object.AbstractEvent(EventSource source)Constructs an event from the given event session.AbstractPreDatabaseOperationEvent(EventSource source, Object entity, Serializable id, EntityPersister persister)Constructs an event containing the pertinent information.AutoFlushEvent(Set querySpaces, EventSource source)ClearEvent(EventSource source)Constructs an event from the given event session.DeleteEvent(Object object, EventSource source)Constructs a new DeleteEvent instance.DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, boolean orphanRemovalBeforeUpdates, EventSource source)DeleteEvent(String entityName, Object object, boolean cascadeDeleteEnabled, EventSource source)DeleteEvent(String entityName, Object object, EventSource source)DirtyCheckEvent(EventSource source)EvictEvent(Object object, EventSource source)FlushEntityEvent(EventSource source, Object entity, EntityEntry entry)FlushEvent(EventSource source)InitializeCollectionEvent(PersistentCollection collection, EventSource source)LoadEvent(Serializable entityId, Object instanceToLoad, EventSource source, Boolean readOnly)LoadEvent(Serializable entityId, String entityClassName, boolean isAssociationFetch, EventSource source, Boolean readOnly)LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source, Boolean readOnly)LoadEvent(Serializable entityId, String entityClassName, LockOptions lockOptions, EventSource source, Boolean readOnly)LockEvent(Object object, LockMode lockMode, EventSource source)LockEvent(Object object, LockOptions lockOptions, EventSource source)LockEvent(String entityName, Object original, LockMode lockMode, EventSource source)LockEvent(String entityName, Object original, LockOptions lockOptions, EventSource source)MergeEvent(Object object, EventSource source)MergeEvent(String entityName, Object original, Serializable id, EventSource source)MergeEvent(String entityName, Object original, EventSource source)PersistEvent(Object object, EventSource source)PersistEvent(String entityName, Object original, EventSource source)PostCollectionRecreateEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source)PostCollectionRemoveEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source, Object loadedOwner)PostCollectionUpdateEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source)PostDeleteEvent(Object entity, Serializable id, Object[] deletedState, EntityPersister persister, EventSource source)PostInsertEvent(Object entity, Serializable id, Object[] state, EntityPersister persister, EventSource source)PostLoadEvent(EventSource session)PostUpdateEvent(Object entity, Serializable id, Object[] state, Object[] oldState, int[] dirtyProperties, EntityPersister persister, EventSource source)PreCollectionRecreateEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source)PreCollectionRemoveEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source, Object loadedOwner)PreCollectionUpdateEvent(CollectionPersister collectionPersister, PersistentCollection collection, EventSource source)PreDeleteEvent(Object entity, Serializable id, Object[] deletedState, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.PreInsertEvent(Object entity, Serializable id, Object[] state, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.PreLoadEvent(EventSource session)PreUpdateEvent(Object entity, Serializable id, Object[] state, Object[] oldState, EntityPersister persister, EventSource source)Constructs an event containing the pertinent information.RefreshEvent(Object object, EventSource source)RefreshEvent(Object object, LockMode lockMode, EventSource source)RefreshEvent(Object object, LockOptions lockOptions, EventSource source)RefreshEvent(String entityName, Object object, EventSource source)RefreshEvent(String entityName, Object object, LockOptions lockOptions, EventSource source)ReplicateEvent(Object object, ReplicationMode replicationMode, EventSource source)ReplicateEvent(String entityName, Object object, ReplicationMode replicationMode, EventSource source)ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, EventSource source)ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, LockOptions lockOptions, EventSource source)SaveOrUpdateEvent(Object object, EventSource source)SaveOrUpdateEvent(String entityName, Object original, Serializable id, EventSource source)SaveOrUpdateEvent(String entityName, Object original, EventSource source) -
org.hibernate.hql.internal.ast中EventSource的使用
参数类型为EventSource的org.hibernate.hql.internal.ast中的方法 修饰符和类型 方法 说明 IteratorQueryTranslatorImpl. iterate(QueryParameters queryParameters, EventSource session)Return the query results as an iterator -
org.hibernate.hql.internal.classic中EventSource的使用
参数类型为EventSource的org.hibernate.hql.internal.classic中的方法 修饰符和类型 方法 说明 IteratorQueryTranslatorImpl. iterate(QueryParameters queryParameters, EventSource session)Return the query results as an iterator -
org.hibernate.hql.spi中EventSource的使用
参数类型为EventSource的org.hibernate.hql.spi中的方法 修饰符和类型 方法 说明 IteratorQueryTranslator. iterate(QueryParameters queryParameters, EventSource session)Perform an iterate operation given the underlying query definition. -
org.hibernate.internal中EventSource的使用
实现EventSource的org.hibernate.internal中的类 修饰符和类型 类 说明 classAbstractSessionImplFunctionality common to stateless and stateful sessionsclassSessionImplConcrete implementation of a Session.参数类型为EventSource的org.hibernate.internal中的构造器 构造器 说明 IteratorImpl(ResultSet rs, PreparedStatement ps, EventSource sess, boolean readOnly, Type[] types, String[][] columnNames, HolderInstantiator holderInstantiator) -
org.hibernate.loader.hql中EventSource的使用
参数类型为EventSource的org.hibernate.loader.hql中的方法 修饰符和类型 方法 说明 IteratorQueryLoader. iterate(QueryParameters queryParameters, EventSource session)
-