org.hibernate.test.event.collection
Class AbstractParentWithCollection
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractParentWithCollection
public AbstractParentWithCollection()
AbstractParentWithCollection
public AbstractParentWithCollection(String name)
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.