Class TypeTypeRelationBo
java.lang.Object
org.kuali.rice.krms.impl.repository.TypeTypeRelationBo
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationContract
@Entity
public class TypeTypeRelationBo
extends Object
implements org.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationContract, org.kuali.rice.core.api.mo.common.Versioned, Serializable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeTypeRelationBofrom(org.kuali.rice.krms.api.repository.typerelation.TypeTypeRelation typeTypeRelation) Converts a immutableTypeTypeRelationto its mutableTypeTypeRelationBocounterpart.getId()org.kuali.rice.krms.api.repository.typerelation.RelationshipTypebooleanisActive()voidsetActive(boolean active) Sets the value of active on this builder to the given value.voidsetFromType(KrmsTypeBo fromType) voidsetFromTypeId(String fromTypeId) Sets the value of fromTypeId on this builder to the given value.voidSets the value of id on this builder to the given value.voidsetRelationshipType(org.kuali.rice.krms.api.repository.typerelation.RelationshipType relationshipType) Sets the value of relationshipType on this builder to the given value.voidsetSequenceNumber(Integer sequenceNumber) Sets the value of sequenceNumber on this builder to the given value.voidsetToType(KrmsTypeBo toType) voidsetToTypeId(String toTypeId) Sets the value of toTypeId on this builder to the given value.voidsetVersionNumber(Long versionNumber) Sets the value of versionNumber on this builder to the given value.static org.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationto(TypeTypeRelationBo typeTypeRelationBo) Converts a mutableTypeTypeRelationBoto its immutable counterpart,TypeTypeRelation.
-
Constructor Details
-
TypeTypeRelationBo
public TypeTypeRelationBo()Default Constructor
-
-
Method Details
-
getFromTypeId
- Specified by:
getFromTypeIdin interfaceorg.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationContract
-
getToTypeId
- Specified by:
getToTypeIdin interfaceorg.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationContract
-
getRelationshipType
public org.kuali.rice.krms.api.repository.typerelation.RelationshipType getRelationshipType()- Specified by:
getRelationshipTypein interfaceorg.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationContract
-
getSequenceNumber
- Specified by:
getSequenceNumberin interfaceorg.kuali.rice.krms.api.repository.typerelation.TypeTypeRelationContract
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setFromTypeId
Sets the value of fromTypeId on this builder to the given value.- Parameters:
fromTypeId- the fromTypeId value to set.
-
setToTypeId
Sets the value of toTypeId on this builder to the given value.- Parameters:
toTypeId- the toTypeId value to set.
-
setRelationshipType
public void setRelationshipType(org.kuali.rice.krms.api.repository.typerelation.RelationshipType relationshipType) Sets the value of relationshipType on this builder to the given value.- Parameters:
relationshipType- the relationshipType value to set.
-
setSequenceNumber
Sets the value of sequenceNumber on this builder to the given value.- Parameters:
sequenceNumber- the sequenceNumber value to set.
-
setId
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
Sets the value of versionNumber on this builder to the given value.- Parameters:
versionNumber- the versionNumber value to set.
-
to
public static org.kuali.rice.krms.api.repository.typerelation.TypeTypeRelation to(TypeTypeRelationBo typeTypeRelationBo) Converts a mutableTypeTypeRelationBoto its immutable counterpart,TypeTypeRelation.- Parameters:
typeTypeRelationBo- the mutable business object.- Returns:
- a
TypeTypeRelationthe immutable object.
-
from
public static TypeTypeRelationBo from(org.kuali.rice.krms.api.repository.typerelation.TypeTypeRelation typeTypeRelation) Converts a immutableTypeTypeRelationto its mutableTypeTypeRelationBocounterpart.- Parameters:
typeTypeRelation- the immutable object.- Returns:
- a
TypeTypeRelationBothe mutable TypeTypeRelationBo.
-
getFromType
-
setFromType
-
getToType
-
setToType
-