org.kuali.rice.kim.api.identity.visa
Class EntityVisa.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.identity.visa.EntityVisa.Builder
All Implemented Interfaces:
Serializable, GloballyUnique, Identifiable, Versioned, ModelBuilder, EntityVisaContract
Enclosing class:
EntityVisa

public static final class EntityVisa.Builder
extends Object
implements Serializable, ModelBuilder, EntityVisaContract

A builder which can be used to construct EntityVisa instances. Enforces the constraints of the EntityVisaContract.

See Also:
Serialized Form

Method Summary
 EntityVisa build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static EntityVisa.Builder create()
           
static EntityVisa.Builder create(EntityVisaContract contract)
           
 String getEntityId()
          Gets this EntityVisaContract's identity id.
 String getId()
          The unique identifier for an object.
 String getObjectId()
          Return the globally unique object id of this object.
 Long getVersionNumber()
          Returns the version number for this object.
 String getVisaEntry()
          Gets this EntityVisaContract's visa entry.
 String getVisaId()
          Gets this EntityVisaContract's visa id.
 String getVisaTypeKey()
          Gets this EntityVisaContract's visa type key.
 void setEntityId(String entityId)
           
 void setId(String id)
           
 void setObjectId(String objectId)
           
 void setVersionNumber(Long versionNumber)
           
 void setVisaEntry(String visaEntry)
           
 void setVisaId(String visaId)
           
 void setVisaTypeKey(String visaTypeKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static EntityVisa.Builder create()

create

public static EntityVisa.Builder create(EntityVisaContract contract)

build

public EntityVisa 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: EntityVisaContract
Gets this EntityVisaContract's identity id.

Specified by:
getEntityId in interface EntityVisaContract
Returns:
the identity id for this EntityVisaContract, or null if none has been assigned.

getVisaTypeKey

public String getVisaTypeKey()
Description copied from interface: EntityVisaContract
Gets this EntityVisaContract's visa type key.

Specified by:
getVisaTypeKey in interface EntityVisaContract
Returns:
the visa type key for this EntityVisaContract, or null if none has been assigned.

getVisaEntry

public String getVisaEntry()
Description copied from interface: EntityVisaContract
Gets this EntityVisaContract's visa entry.

Specified by:
getVisaEntry in interface EntityVisaContract
Returns:
the visa entry for this EntityVisaContract, or null if none has been assigned.

getVisaId

public String getVisaId()
Description copied from interface: EntityVisaContract
Gets this EntityVisaContract's visa id.

Specified by:
getVisaId in interface EntityVisaContract
Returns:
the visa id for this EntityVisaContract, or null if none has been assigned.

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

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

setEntityId

public void setEntityId(String entityId)

setVisaTypeKey

public void setVisaTypeKey(String visaTypeKey)

setVisaEntry

public void setVisaEntry(String visaEntry)

setVisaId

public void setVisaId(String visaId)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)

setId

public void setId(String id)


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