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

Qux

public class Qux extends Object implements org.hibernate.classic.Lifecycle

Fields Summary
boolean
created
boolean
deleted
boolean
loaded
boolean
stored
private Long
key
private String
stuff
private Set
fums
private List
moreFums
private Qux
child
private org.hibernate.Session
session
private Long
childKey
private Holder
holder
private FooProxy
foo
Constructors Summary
public Qux()

 
public Qux(String s)

		stuff=s;
	
Methods Summary
protected voidfinalize()

 
public org.hibernate.test.legacy.QuxgetChild()

		stored=true;
		this.childKey = child==null ? null : child.getKey();
		if (childKey!=null && child==null) child = (Qux) session.load(Qux.class, childKey);
		return child;
	
private java.lang.LonggetChildKey()

		return childKey;
	
public booleangetCreated()

		return created;
	
public booleangetDeleted()

		return deleted;
	
public FooProxygetFoo()

		return foo;
	
public java.util.SetgetFums()

		return fums;
	
public HoldergetHolder()

		return holder;
	
public java.lang.LonggetKey()

		return key;
	
public booleangetLoaded()

		return loaded;
	
public java.util.ListgetMoreFums()

		return moreFums;
	
public booleangetStored()

		return stored;
	
public java.lang.StringgetStuff()

		return stuff;
	
public booleanonDelete(org.hibernate.Session session)

		deleted=true;
		try {
			session.delete(foo);
		}
		catch (Exception e) {
			throw new CallbackException(e);
		}
		//if (child!=null) session.delete(child);
		return NO_VETO;
	
public voidonLoad(org.hibernate.Session session, java.io.Serializable id)

		loaded=true;
		this.session=session;
	
public booleanonSave(org.hibernate.Session session)

		created=true;
		try {
			foo = new Foo();
			session.save(foo);
		}
		catch (Exception e) {
			throw new CallbackException(e);
		}
		foo.setString("child of a qux");
		return NO_VETO;
	
public booleanonUpdate(org.hibernate.Session s)

		return NO_VETO;
	
public voidsetChild(org.hibernate.test.legacy.Qux child)

		this.child = child;
	
private voidsetChildKey(java.lang.Long childKey)

		this.childKey = childKey;
	
private voidsetCreated(boolean created)

		this.created = created;
	
private voidsetDeleted(boolean deleted)

		this.deleted = deleted;
	
public voidsetFoo(FooProxy foo)

		this.foo = foo;
	
public voidsetFums(java.util.Set fums)

		this.fums = fums;
	
public voidsetHolder(Holder holder)

		this.holder = holder;
	
private voidsetKey(long key)

		this.key = new Long(key);
	
private voidsetLoaded(boolean loaded)

		this.loaded = loaded;
	
public voidsetMoreFums(java.util.List moreFums)

		this.moreFums = moreFums;
	
private voidsetStored(boolean stored)

		this.stored = stored;
	
public voidsetStuff(java.lang.String stuff)

		this.stuff = stuff;
	
public voidsetTheKey(long key)

		this.key = new Long(key);
	
public voidstore()