FileDocCategorySizeDatePackage
Status.javaAPI DocHibernate 3.2.51495Wed Feb 01 12:59:08 GMT 2006org.hibernate.engine

Status

public final class Status extends Object implements 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_.

Fields 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
private String
name
Constructors Summary
private Status(String name)


	   
		this.name = name;
	
Methods Summary
public static org.hibernate.engine.Statusparse(java.lang.String name)

		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" );
	
private java.lang.ObjectreadResolve()

		return parse( name );
	
public java.lang.StringtoString()

		return name;