FileDocCategorySizeDatePackage
Node.javaAPI DocHibernate 3.2.51674Tue Nov 07 17:01:34 GMT 2006org.hibernate.test.ops

Node

public class Node extends Object
author
Gavin King

Fields Summary
private String
name
private String
description
private Date
created
private Node
parent
private Set
children
private Set
cascadingChildren
Constructors Summary
public Node()


	  
	
public Node(String name)

		this.name = name;
		created = generateCurrentDate();
	
Methods Summary
public org.hibernate.test.ops.NodeaddChild(org.hibernate.test.ops.Node child)

		children.add( child );
		child.setParent( this );
		return this;
	
private java.sql.DategenerateCurrentDate()

		// Note : done as java.sql.Date mainly to work around issue with
		// MySQL and its lack of milli-second precision on its DATETIME
		// and TIMESTAMP datatypes.
		return new Date( new java.util.Date().getTime() );
	
public java.util.SetgetCascadingChildren()

		return cascadingChildren;
	
public java.util.SetgetChildren()

		return children;
	
public java.sql.DategetCreated()

		return created;
	
public java.lang.StringgetDescription()

		return description;
	
public java.lang.StringgetName()

		return name;
	
public org.hibernate.test.ops.NodegetParent()

		return parent;
	
public voidsetCascadingChildren(java.util.Set cascadingChildren)

		this.cascadingChildren = cascadingChildren;
	
public voidsetChildren(java.util.Set children)

		this.children = children;
	
public voidsetCreated(java.sql.Date created)

		this.created = created;
	
public voidsetDescription(java.lang.String description)

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

		this.name = name;
	
public voidsetParent(org.hibernate.test.ops.Node parent)

		this.parent = parent;