org.hibernate.engine
public final class: Status [javadoc |
source]
java.lang.Object
org.hibernate.engine.Status
All Implemented Interfaces:
Serializable
Represents the status of an entity with respect to
this session. These statuses are for internal
book-keeping only and are not intended to represent
any notion that is visible to the _application_.
| Field Summary |
|---|
| public static final Status | MANAGED | |
| public static final Status | READ_ONLY | |
| public static final Status | DELETED | |
| public static final Status | GONE | |
| public static final Status | LOADING | |
| public static final Status | SAVING | |
| Method from org.hibernate.engine.Status Detail: |
public static Status parse(String name) throws InvalidObjectException {
if ( name.equals(MANAGED.name) ) return MANAGED;
if ( name.equals(READ_ONLY.name) ) return READ_ONLY;
if ( name.equals(DELETED.name) ) return DELETED;
if ( name.equals(GONE.name) ) return GONE;
if ( name.equals(LOADING.name) ) return LOADING;
if ( name.equals(SAVING.name) ) return SAVING;
throw new InvalidObjectException( "invalid Status" );
}
|
public String toString() {
return name;
}
|