FileDocCategorySizeDatePackage
FooComponent.javaAPI DocHibernate 3.2.52569Sun Sep 26 00:18:28 BST 2004org.hibernate.test.legacy

FooComponent

public class FooComponent extends Object implements Serializable

Fields Summary
int
count
String
name
Date[]
importantDates
FooComponent
subcomponent
Fee
fee
GlarchProxy
glarch
private FooProxy
parent
private Baz
baz
Constructors Summary
public FooComponent()

FooComponent(String name, int count, Date[] dates, FooComponent subcomponent)

		this.name = name;
		this.count = count;
		this.importantDates = dates;
		this.subcomponent = subcomponent;
	
FooComponent(String name, int count, Date[] dates, FooComponent subcomponent, Fee fee)

		this.name = name;
		this.count = count;
		this.importantDates = dates;
		this.subcomponent = subcomponent;
		this.fee = fee;
	
Methods Summary
public booleanequals(java.lang.Object that)

	
	    
		FooComponent fc = (FooComponent) that;
		return count==fc.count;
	
public BazgetBaz()

		return baz;
	
public intgetCount()

		return count;
	
public FeegetFee()

		return fee;
	
public GlarchProxygetGlarch()

		return glarch;
	
public java.util.Date[]getImportantDates()

		return importantDates;
	
public java.lang.StringgetName()

		return name;
	
private java.lang.StringgetNull()

		return null;
	
public FooProxygetParent()

		return parent;
	
public org.hibernate.test.legacy.FooComponentgetSubcomponent()

		return subcomponent;
	
public inthashCode()

		return count;
	
public voidsetBaz(Baz baz)

		this.baz = baz;
	
public voidsetCount(int count)

		this.count = count;
	
public voidsetFee(Fee fee)

		this.fee = fee;
	
public voidsetGlarch(GlarchProxy glarch)

		this.glarch = glarch;
	
public voidsetImportantDates(java.util.Date[] importantDates)

		this.importantDates = importantDates;
	
public voidsetName(java.lang.String name)

		this.name = name;
	
private voidsetNull(java.lang.String str)

		if (str!=null) throw new Exception("null component property");
	
public voidsetParent(FooProxy parent)

		//if (parent==null) throw new RuntimeException("null parent set");
		this.parent = parent;
	
public voidsetSubcomponent(org.hibernate.test.legacy.FooComponent subcomponent)

		this.subcomponent = subcomponent;
	
public java.lang.StringtoString()

		String result = "FooComponent: " + name + "=" + count;
		result+="; dates=[";
		if ( importantDates!=null) {
			for ( int i=0; i<importantDates.length; i++ ) {
				result+=(i==0 ?"":", ") + importantDates[i];
			}
		}
		result+="]";
		if ( subcomponent!=null ) {
			result+= " (" + subcomponent + ")";
		}
		return result;