Top Fields Constructors Methods
org.hibernate.event.internal

public final Enum EntityState

extends Enum<EntityState>
Class Inheritance
Imports
org.hibernate.engine.internal.ForeignKeys, org.hibernate.engine.spi.EntityEntry, .SessionImplementor, .Status, org.hibernate.internal.CoreLogging, .CoreMessageLogger

Field Summary

Modifier and TypeField and Description
public static final EntityState
public static final EntityState
pack-priv static final CoreMessageLogger
public static final EntityState
public static final EntityState

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EntityState

Returns:

The state.
getEntityState
(Object
The entity to check
entity
,
String
The name of the entity
entityName
,
EntityEntry
The entity's entry in the persistence context
entry
,
SessionImplementor
The originating session.
source
,
Boolean assumedUnsaved)

Deprecated as a consequence of SessionImplementor being deprecated.
Determine whether the entity is persistent, detached, or transient
public static EntityState
public static EntityState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DELETEDback to summary
public static final EntityState DELETED
DETACHEDback to summary
public static final EntityState DETACHED
LOGback to summary
pack-priv static final CoreMessageLogger LOG
PERSISTENTback to summary
public static final EntityState PERSISTENT
TRANSIENTback to summary
public static final EntityState TRANSIENT

Constructor Detail

EntityStateback to summary
private EntityState()

Method Detail

getEntityStateback to summary
public static EntityState getEntityState(Object entity, String entityName, EntityEntry entry, SessionImplementor source, Boolean assumedUnsaved)

Deprecated

as a consequence of SessionImplementor being deprecated. See corresponding docs for further information.

Determine whether the entity is persistent, detached, or transient

Parameters
entity:Object

The entity to check

entityName:String

The name of the entity

entry:EntityEntry

The entity's entry in the persistence context

source:SessionImplementor

The originating session.

Returns:EntityState

The state.

valueOfback to summary
public static EntityState valueOf(String name)
valuesback to summary
public static EntityState[] values()