FileDocCategorySizeDatePackage
ValueInclusion.javaAPI DocHibernate 3.2.51377Fri Jan 19 05:55:08 GMT 2007org.hibernate.engine

ValueInclusion

public class ValueInclusion extends Object implements Serializable
An enum of the different ways a value might be "included".

This is really an expanded true/false notion with "PARTIAL" being the expansion. PARTIAL deals with components in the cases where parts of the referenced component might define inclusion, but the component overall does not.

author
Steve Ebersole

Fields Summary
public static final ValueInclusion
NONE
public static final ValueInclusion
FULL
public static final ValueInclusion
PARTIAL
private final String
name
Constructors Summary
public ValueInclusion(String name)


	   
		this.name = name;
	
Methods Summary
public java.lang.StringgetName()

		return name;
	
private java.lang.ObjectreadResolve()

		if ( name.equals( NONE.name ) ) {
			return NONE;
		}
		else if ( name.equals( FULL.name ) ) {
			return FULL;
		}
		else if ( name.equals( PARTIAL.name ) ) {
			return PARTIAL;
		}
		else {
			throw new StreamCorruptedException( "unrecognized value inclusion [" + name + "]" );
		}
	
public java.lang.StringtoString()

		return "ValueInclusion[" + name + "]";