org.kuali.rice.kim.api.identity.employment
Class EntityEmployment.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.identity.employment.EntityEmployment.Builder
All Implemented Interfaces:
Serializable, Inactivatable, GloballyUnique, Identifiable, Versioned, ModelBuilder, EntityEmploymentContract
Enclosing class:
EntityEmployment

public static final class EntityEmployment.Builder
extends Object
implements Serializable, ModelBuilder, EntityEmploymentContract

A builder which can be used to construct EntityEmployment instances. Enforces the constraints of the EntityEmploymentContract.

See Also:
Serialized Form

Method Summary
 EntityEmployment build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static EntityEmployment.Builder create()
           
static EntityEmployment.Builder create(EntityEmploymentContract contract)
           
 KualiDecimal getBaseSalaryAmount()
          Gets this EntityEmploymentContract's base salary amount.
 String getEmployeeId()
          Gets this EntityEmploymentContract's employee id.
 CodedAttribute.Builder getEmployeeStatus()
          Gets this EntityEmploymentContract's employee status.
 CodedAttribute.Builder getEmployeeType()
          Gets this EntityEmploymentContract's employee type.
 String getEmploymentRecordId()
          Gets this EntityEmploymentContract's employment record id.
 EntityAffiliation.Builder getEntityAffiliation()
          Gets this EntityEmploymentContract's identity affiliation.
 String getEntityId()
          Gets this id of the parent identity object.
 String getId()
          The unique identifier for an object.
 String getObjectId()
          Return the globally unique object id of this object.
 String getPrimaryDepartmentCode()
          Gets this EntityEmploymentContract's primary department code.
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 boolean isPrimary()
          The primary value for this object.
 void setActive(boolean active)
           
 void setBaseSalaryAmount(KualiDecimal baseSalaryAmount)
           
 void setEmployeeId(String employeeId)
           
 void setEmployeeStatus(CodedAttribute.Builder employeeStatus)
           
 void setEmployeeType(CodedAttribute.Builder employeeType)
           
 void setEmploymentRecordId(String employmentRecordId)
           
 void setEntityAffiliation(EntityAffiliation.Builder entityAffiliation)
           
 void setEntityId(String entityId)
           
 void setId(String id)
           
 void setObjectId(String objectId)
           
 void setPrimary(boolean primary)
           
 void setPrimaryDepartmentCode(String primaryDepartmentCode)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static EntityEmployment.Builder create()

create

public static EntityEmployment.Builder create(EntityEmploymentContract contract)

build

public EntityEmployment build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getEntityId

public String getEntityId()
Description copied from interface: EntityEmploymentContract
Gets this id of the parent identity object.

Specified by:
getEntityId in interface EntityEmploymentContract
Returns:
the identity id for this EntityEmailContract

getEntityAffiliation

public EntityAffiliation.Builder getEntityAffiliation()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's identity affiliation.

Specified by:
getEntityAffiliation in interface EntityEmploymentContract
Returns:
the identity affiliation for this EntityEmploymentContract, or null if none has been assigned.

getEmployeeStatus

public CodedAttribute.Builder getEmployeeStatus()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's employee status.

Specified by:
getEmployeeStatus in interface EntityEmploymentContract
Returns:
the employee status for this EntityEmploymentContract, or null if none has been assigned.

getEmployeeType

public CodedAttribute.Builder getEmployeeType()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's employee type.

Specified by:
getEmployeeType in interface EntityEmploymentContract
Returns:
the employee type for this EntityEmploymentContract, or null if none has been assigned.

getPrimaryDepartmentCode

public String getPrimaryDepartmentCode()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's primary department code.

Specified by:
getPrimaryDepartmentCode in interface EntityEmploymentContract
Returns:
the primary department code for this EntityEmploymentContract, or null if none has been assigned.

getEmployeeId

public String getEmployeeId()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's employee id.

Specified by:
getEmployeeId in interface EntityEmploymentContract
Returns:
the employee id for this EntityEmploymentContract, or null if none has been assigned.

getEmploymentRecordId

public String getEmploymentRecordId()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's employment record id.

Specified by:
getEmploymentRecordId in interface EntityEmploymentContract
Returns:
the employment record id for this EntityEmploymentContract, or null if none has been assigned.

getBaseSalaryAmount

public KualiDecimal getBaseSalaryAmount()
Description copied from interface: EntityEmploymentContract
Gets this EntityEmploymentContract's base salary amount.

Specified by:
getBaseSalaryAmount in interface EntityEmploymentContract
Returns:
the base salary amount for this EntityEmploymentContract, or null if none has been assigned.

isPrimary

public boolean isPrimary()
Description copied from interface: EntityEmploymentContract
The primary value for this object.

Specified by:
isPrimary in interface EntityEmploymentContract
Returns:
returns true if the record is the primary Employment record for the parent entity

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

getObjectId

public String getObjectId()
Description copied from interface: GloballyUnique
Return the globally unique object id of this object. In general, this value should only be null if the object has not yet been stored to a persistent data store.

Specified by:
getObjectId in interface GloballyUnique
Returns:
the objectId of this object, or null if it has not been set yet

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setEntityAffiliation

public void setEntityAffiliation(EntityAffiliation.Builder entityAffiliation)

setEmployeeStatus

public void setEmployeeStatus(CodedAttribute.Builder employeeStatus)

setEmployeeType

public void setEmployeeType(CodedAttribute.Builder employeeType)

setEntityId

public void setEntityId(String entityId)

setPrimaryDepartmentCode

public void setPrimaryDepartmentCode(String primaryDepartmentCode)

setEmployeeId

public void setEmployeeId(String employeeId)

setEmploymentRecordId

public void setEmploymentRecordId(String employmentRecordId)

setBaseSalaryAmount

public void setBaseSalaryAmount(KualiDecimal baseSalaryAmount)

setPrimary

public void setPrimary(boolean primary)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)

setActive

public void setActive(boolean active)

setId

public void setId(String id)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.