FileDocCategorySizeDatePackage
EntityMode.javaAPI DocHibernate 3.2.51085Tue Nov 29 07:29:24 GMT 2005org.hibernate

EntityMode

public class EntityMode extends Object implements Serializable
Defines the representation modes available for entities.
author
Steve Ebersole

Fields Summary
private static final Map
INSTANCES
public static final EntityMode
POJO
public static final EntityMode
DOM4J
public static final EntityMode
MAP
private final String
name
Constructors Summary
public EntityMode(String name)

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

		EntityMode rtn = ( EntityMode ) INSTANCES.get( name );
		if ( rtn == null ) {
			// default is POJO
			rtn = POJO;
		}
		return rtn;
	
private java.lang.ObjectreadResolve()

		return INSTANCES.get( name );
	
public java.lang.StringtoString()

		return name;