com.hack23.cia.model.impl.common
Class Person

Package class diagram package Person
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.common.Person
All Implemented Interfaces:
Actor, Agent, ModelObject, PersistedModelObject, Serializable
Direct Known Subclasses:
Politician

@Entity
public class Person
extends BaseEntity
implements Actor

The Class Person.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Person()
          Instantiates a new person.
 
Method Summary
Modifier and Type Method and Description
 Actor getActor()
          Gets the actor.
 Role[] getActorDefinedRoles()
          Gets the actor defined roles.
 Role[] getActorRoles()
          Gets the actor roles.
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 Long getId()
          Gets the id.
 String getName()
          Gets the name.
 Long getVersion()
          Gets the version.
 void setActor(Actor actor)
          Sets the actor.
 void setActorDefinedRoles(Role[] roles)
          Sets the actor defined roles.
 void setActorRoles(Role[] roles)
          Sets the actor roles.
 void setId(Long id)
          Sets the id.
 void setName(String name)
          Sets the name.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity
equals, getTypeContext, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getTypeContext, isNew
 

Constructor Detail

Person

public Person()
Instantiates a new person.

Method Detail

getActor

public Actor getActor()
Gets the actor.

Returns:
the actor

getActorDefinedRoles

public Role[] getActorDefinedRoles()
Description copied from interface: Actor
Gets the actor defined roles.

Specified by:
getActorDefinedRoles in interface Actor
Returns:
the actor defined roles

getActorRoles

public Role[] getActorRoles()
Description copied from interface: Actor
Gets the actor roles.

Specified by:
getActorRoles in interface Actor
Returns:
the actor roles

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getName

public String getName()
Description copied from interface: Actor
Gets the name.

Specified by:
getName in interface Actor
Returns:
the name

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

setActor

public void setActor(Actor actor)
Sets the actor.

Parameters:
actor - the new actor

setActorDefinedRoles

public void setActorDefinedRoles(Role[] roles)
Description copied from interface: Actor
Sets the actor defined roles.

Specified by:
setActorDefinedRoles in interface Actor
Parameters:
roles - the new actor defined roles

setActorRoles

public void setActorRoles(Role[] roles)
Description copied from interface: Actor
Sets the actor roles.

Specified by:
setActorRoles in interface Actor
Parameters:
roles - the new actor roles

setId

public void setId(Long id)
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setName

public void setName(String name)
Description copied from interface: Actor
Sets the name.

Specified by:
setName in interface Actor
Parameters:
name - the new name

setVersion

public void setVersion(Long version)
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.