org.kuali.rice.krms.impl.repository
Class TypeTypeRelationBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krms.impl.repository.TypeTypeRelationBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject, TypeTypeRelationContract

public class TypeTypeRelationBo
extends PersistableBusinessObjectBase
implements TypeTypeRelationContract

The mutable implementation of the @{link TypeTypeRelationContract} interface, the counterpart to the immutable implementation TypeTypeRelation.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension
 
Constructor Summary
TypeTypeRelationBo()
          Default Constructor
 
Method Summary
static TypeTypeRelationBo from(TypeTypeRelation typeTypeRelation)
          Converts a immutable TypeTypeRelation to its mutable TypeTypeRelationBo counterpart.
 org.kuali.rice.krms.impl.repository.KrmsTypeBo getFromType()
           
 String getFromTypeId()
          This is the FromTypeId of the TypeTypeRelation
 String getId()
          The unique identifier for an object.
 RelationshipType getRelationshipType()
          This is the RelationshipType of the TypeTypeRelation
 SequenceAccessorService getSequenceAccessorService()
           
 Integer getSequenceNumber()
           
 org.kuali.rice.krms.impl.repository.KrmsTypeBo getToType()
           
 String getToTypeId()
          This is the ToTypeId of the TypeTypeRelation
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
          Sets the value of active on this builder to the given value.
 void setFromType(org.kuali.rice.krms.impl.repository.KrmsTypeBo fromType)
           
 void setFromTypeId(String fromTypeId)
          Sets the value of fromTypeId on this builder to the given value.
 void setId(String id)
          Sets the value of id on this builder to the given value.
 void setRelationshipType(RelationshipType relationshipType)
          Sets the value of relationshipType on this builder to the given value.
 void setSequenceAccessorService(SequenceAccessorService sas)
          Set the SequenceAccessorService, useful for testing.
 void setSequenceNumber(Integer sequenceNumber)
          Sets the value of sequenceNumber on this builder to the given value.
 void setToType(org.kuali.rice.krms.impl.repository.KrmsTypeBo toType)
           
 void setToTypeId(String toTypeId)
          Sets the value of toTypeId on this builder to the given value.
 void setVersionNumber(Long versionNumber)
          Sets the value of versionNumber on this builder to the given value.
static TypeTypeRelation to(TypeTypeRelationBo typeTypeRelationBo)
          Converts a mutable TypeTypeRelationBo to its immutable counterpart, TypeTypeRelation.
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

TypeTypeRelationBo

public TypeTypeRelationBo()
Default Constructor

Method Detail

getFromTypeId

public String getFromTypeId()
Description copied from interface: TypeTypeRelationContract
This is the FromTypeId of the TypeTypeRelation

The FromTypeId of the TypeTypeRelation

Specified by:
getFromTypeId in interface TypeTypeRelationContract
Returns:
the FromTypeId of the TypeTypeRelation

getToTypeId

public String getToTypeId()
Description copied from interface: TypeTypeRelationContract
This is the ToTypeId of the TypeTypeRelation

The ToTypeId of the TypeTypeRelation

Specified by:
getToTypeId in interface TypeTypeRelationContract
Returns:
the ToTypeId of the TypeTypeRelation

getRelationshipType

public RelationshipType getRelationshipType()
Description copied from interface: TypeTypeRelationContract
This is the RelationshipType of the TypeTypeRelation

The RelationshipType of the TypeTypeRelation

Specified by:
getRelationshipType in interface TypeTypeRelationContract
Returns:
the RelationshipType of the TypeTypeRelation

getSequenceNumber

public Integer getSequenceNumber()
Specified by:
getSequenceNumber in interface TypeTypeRelationContract

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

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.

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
Overrides:
getVersionNumber in class PersistableBusinessObjectBase
Returns:
the version number, or null if one has not been assigned yet
See Also:
Versioned.getVersionNumber()

setFromTypeId

public void setFromTypeId(String fromTypeId)
Sets the value of fromTypeId on this builder to the given value.

Parameters:
fromTypeId - the fromTypeId value to set.

setToTypeId

public void setToTypeId(String toTypeId)
Sets the value of toTypeId on this builder to the given value.

Parameters:
toTypeId - the toTypeId value to set.

setRelationshipType

public void setRelationshipType(RelationshipType relationshipType)
Sets the value of relationshipType on this builder to the given value.

Parameters:
relationshipType - the relationshipType value to set.

setSequenceNumber

public void setSequenceNumber(Integer sequenceNumber)
Sets the value of sequenceNumber on this builder to the given value.

Parameters:
sequenceNumber - the sequenceNumber value to set.

setId

public void setId(String id)
Sets the value of id on this builder to the given value.

Parameters:
id - the id value to set.

setActive

public void setActive(boolean active)
Sets the value of active on this builder to the given value.

Parameters:
active - the active value to set.

setVersionNumber

public void setVersionNumber(Long versionNumber)
Sets the value of versionNumber on this builder to the given value.

Specified by:
setVersionNumber in interface PersistableBusinessObject
Overrides:
setVersionNumber in class PersistableBusinessObjectBase
Parameters:
versionNumber - the versionNumber value to set.
See Also:
Versioned.getVersionNumber()

to

public static TypeTypeRelation to(TypeTypeRelationBo typeTypeRelationBo)
Converts a mutable TypeTypeRelationBo to its immutable counterpart, TypeTypeRelation.

Parameters:
typeTypeRelationBo - the mutable business object.
Returns:
a TypeTypeRelation the immutable object.

from

public static TypeTypeRelationBo from(TypeTypeRelation typeTypeRelation)
Converts a immutable TypeTypeRelation to its mutable TypeTypeRelationBo counterpart.

Parameters:
typeTypeRelation - the immutable object.
Returns:
a TypeTypeRelationBo the mutable TypeTypeRelationBo.

setSequenceAccessorService

public void setSequenceAccessorService(SequenceAccessorService sas)
Set the SequenceAccessorService, useful for testing.

Parameters:
sas - SequenceAccessorService to use for getNewId.

getSequenceAccessorService

public SequenceAccessorService getSequenceAccessorService()

getFromType

public org.kuali.rice.krms.impl.repository.KrmsTypeBo getFromType()

setFromType

public void setFromType(org.kuali.rice.krms.impl.repository.KrmsTypeBo fromType)

getToType

public org.kuali.rice.krms.impl.repository.KrmsTypeBo getToType()

setToType

public void setToType(org.kuali.rice.krms.impl.repository.KrmsTypeBo toType)


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