|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opnworks.timesheet.domain.ActivityType
| Field Summary |
| Fields inherited from interface net.sf.hibernate.Lifecycle |
NO_VETO, VETO |
| Constructor Summary | |
ActivityType()
|
|
ActivityType(java.lang.String name,
java.lang.String code,
java.lang.String description,
ActivityType parent)
|
|
| Method Summary | |
void |
addChild(ActivityType activityType)
|
boolean |
equals(java.lang.Object other)
Description of the Method |
java.util.Set |
getChildren()
|
java.lang.String |
getCode()
|
java.lang.String |
getDescription()
|
java.lang.Long |
getId()
Gets the Id attribute of the IPersistent object |
java.lang.String |
getName()
Gets the Name attribute of the INamedObject object |
ActivityType |
getParent()
|
int |
getVersion()
Gets the Version attribute of the ActivityType object |
boolean |
hasChildren()
|
int |
hashCode()
Description of the Method |
boolean |
hasParent()
Returns true if object has parent |
boolean |
onDelete(net.sf.hibernate.Session session)
Description of the Method |
void |
onLoad(net.sf.hibernate.Session arg0,
java.io.Serializable arg1)
Description of the Method |
boolean |
onSave(net.sf.hibernate.Session session)
Description of the Method |
boolean |
onUpdate(net.sf.hibernate.Session session)
Description of the Method |
void |
removeChild(ActivityType activityType)
|
void |
setCode(java.lang.String string)
|
void |
setDescription(java.lang.String string)
|
void |
setId(java.lang.Long id)
Sets the Id attribute of the IPersistent object |
void |
setName(java.lang.String string)
|
void |
setParent(ActivityType type)
Sets the Parent attribute of the ActivityType object |
void |
setVersion(int version)
Sets the Version attribute of the ActivityType object |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ActivityType()
public ActivityType(java.lang.String name,
java.lang.String code,
java.lang.String description,
ActivityType parent)
name - Name of activity typecode - Code value for activity typedescription - Description of activity typeparent - Parent of activity type (null for root activity)| Method Detail |
public void setId(java.lang.Long id)
IPersistent
setId in interface IPersistentid - public void setName(java.lang.String string)
string - public void setDescription(java.lang.String string)
string - public void setParent(ActivityType type)
type - The new Parent valuepublic void setCode(java.lang.String string)
string - public void setVersion(int version)
setVersion in interface IPersistentversion - The new Version valuepublic java.lang.Long getId()
IPersistent
getId in interface IPersistentpublic java.lang.String getName()
INamedObject
getName in interface INamedObjectpublic java.lang.String getDescription()
public ActivityType getParent()
public java.util.Set getChildren()
public java.lang.String getCode()
public int getVersion()
getVersion in interface IPersistentpublic boolean hasParent()
public void addChild(ActivityType activityType)
activityType - A child activity typepublic void removeChild(ActivityType activityType)
activityType - A child activity typepublic boolean hasChildren()
public boolean onSave(net.sf.hibernate.Session session)
throws net.sf.hibernate.CallbackException
onSave in interface net.sf.hibernate.Lifecyclesession - Description of Parameter
net.sf.hibernate.CallbackException - Description of Exception
public boolean onUpdate(net.sf.hibernate.Session session)
throws net.sf.hibernate.CallbackException
onUpdate in interface net.sf.hibernate.Lifecyclesession - Description of Parameter
net.sf.hibernate.CallbackException - Description of Exception
public boolean onDelete(net.sf.hibernate.Session session)
throws net.sf.hibernate.CallbackException
onDelete in interface net.sf.hibernate.Lifecyclesession - Description of Parameter
net.sf.hibernate.CallbackException - Description of Exception
public void onLoad(net.sf.hibernate.Session arg0,
java.io.Serializable arg1)
onLoad in interface net.sf.hibernate.Lifecyclearg0 - Description of Parameterarg1 - Description of Parameterpublic boolean equals(java.lang.Object other)
other - Description of Parameter
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||