org.hibernate.test.event.collection
Class AbstractParentWithCollection

java.lang.Object
  extended by org.hibernate.test.event.collection.AbstractParentWithCollection
All Implemented Interfaces:
Entity, ParentWithCollection
Direct Known Subclasses:
ParentWithBidirectionalManyToMany, ParentWithBidirectionalOneToMany, ParentWithCollectionOfEntities, ParentWithCollectionOfValues

public abstract class AbstractParentWithCollection
extends Object
implements ParentWithCollection


Constructor Summary
AbstractParentWithCollection()
           
AbstractParentWithCollection(String name)
           
 
Method Summary
 void addAllChildren(Collection children)
           
 void addChild(Child child)
           
 Child addChild(String name)
           
 void clearChildren()
           
 Collection getChildren()
           
 Long getId()
           
 String getName()
           
 void newChildren(Collection collection)
           
 void removeAllChildren(Collection children)
           
 void removeChild(Child child)
           
 void setChildren(Collection children)
           
 void setId(Long id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.test.event.collection.ParentWithCollection
createChild
 

Constructor Detail

AbstractParentWithCollection

public AbstractParentWithCollection()

AbstractParentWithCollection

public AbstractParentWithCollection(String name)
Method Detail

newChildren

public void newChildren(Collection collection)
Specified by:
newChildren in interface ParentWithCollection

getId

public Long getId()
Specified by:
getId in interface Entity
Specified by:
getId in interface ParentWithCollection

setId

public void setId(Long id)
Specified by:
setId in interface Entity
Specified by:
setId in interface ParentWithCollection

getName

public String getName()
Specified by:
getName in interface ParentWithCollection

setName

public void setName(String name)
Specified by:
setName in interface ParentWithCollection

getChildren

public Collection getChildren()
Specified by:
getChildren in interface ParentWithCollection

setChildren

public void setChildren(Collection children)
Specified by:
setChildren in interface ParentWithCollection

addChild

public Child addChild(String name)
Specified by:
addChild in interface ParentWithCollection

addChild

public void addChild(Child child)
Specified by:
addChild in interface ParentWithCollection

addAllChildren

public void addAllChildren(Collection children)
Specified by:
addAllChildren in interface ParentWithCollection

removeChild

public void removeChild(Child child)
Specified by:
removeChild in interface ParentWithCollection

removeAllChildren

public void removeAllChildren(Collection children)
Specified by:
removeAllChildren in interface ParentWithCollection

clearChildren

public void clearChildren()
Specified by:
clearChildren in interface ParentWithCollection


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.