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

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.ReferenceObjectBindingBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject, ReferenceObjectBindingContract

public class ReferenceObjectBindingBo
extends PersistableBusinessObjectBase
implements ReferenceObjectBindingContract

The mutable implementation of the @{link ReferenceObjectBindingContract} interface, the counterpart to the immutable implementation ReferenceObjectBinding.

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
ReferenceObjectBindingBo()
          Default Constructor
 
Method Summary
static ReferenceObjectBindingBo from(ReferenceObjectBinding referenceObjectBinding)
          Converts a immutable ReferenceObjectBinding to its mutable ReferenceObjectBindingBo counterpart.
 String getCollectionName()
          This is the CollectionName of the ReferenceObjectBinding
 String getId()
          The unique identifier for an object.
 String getKrmsDiscriminatorType()
          This is the KrmsDiscriminatorType of the ReferenceObjectBinding
 String getKrmsObjectId()
          This is the KrmsObjectId of the ReferenceObjectBinding
 String getNamespace()
          This is the namespace of the ReferenceObjectBinding
 String getReferenceDiscriminatorType()
          This is the ReferenceDiscriminatorType of the ReferenceObjectBinding
 String getReferenceObjectId()
          This is the ReferenceObjectId of the ReferenceObjectBinding
 SequenceAccessorService getSequenceAccessorService()
           
 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 setCollectionName(String collectionName)
          Sets the value of collectionName on this builder to the given value.
 void setId(String id)
          Sets the value of id on this builder to the given value.
 void setKrmsDiscriminatorType(String krmsDiscriminatorType)
          Sets the value of krmsDiscriminatorType on this builder to the given value.
 void setKrmsObjectId(String krmsObjectId)
          Sets the value of krmsObjectId on this builder to the given value.
 void setNamespace(String namespace)
          Sets the value of namespace on this builder to the given value.
 void setReferenceDiscriminatorType(String referenceDiscriminatorType)
          Sets the value of referenceDiscriminatorType on this builder to the given value.
 void setReferenceObjectId(String referenceObjectId)
          Sets the value of referenceObjectId on this builder to the given value.
 void setSequenceAccessorService(SequenceAccessorService sas)
          Set the SequenceAccessorService, useful for testing.
 void setVersionNumber(Long versionNumber)
          Sets the value of versionNumber on this builder to the given value.
static ReferenceObjectBinding to(ReferenceObjectBindingBo referenceObjectBindingBo)
          Converts a mutable ReferenceObjectBindingBo to its immutable counterpart, ReferenceObjectBinding.
 
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

ReferenceObjectBindingBo

public ReferenceObjectBindingBo()
Default Constructor

Method Detail

getCollectionName

public String getCollectionName()
Description copied from interface: ReferenceObjectBindingContract
This is the CollectionName of the ReferenceObjectBinding

The CollectionName of the ReferenceObjectBinding

Specified by:
getCollectionName in interface ReferenceObjectBindingContract
Returns:
the CollectionName of the ReferenceObjectBinding

getKrmsDiscriminatorType

public String getKrmsDiscriminatorType()
Description copied from interface: ReferenceObjectBindingContract
This is the KrmsDiscriminatorType of the ReferenceObjectBinding

The KrmsDiscriminatorType of the ReferenceObjectBinding

Specified by:
getKrmsDiscriminatorType in interface ReferenceObjectBindingContract
Returns:
the KrmsDiscriminatorType of the ReferenceObjectBinding

getKrmsObjectId

public String getKrmsObjectId()
Description copied from interface: ReferenceObjectBindingContract
This is the KrmsObjectId of the ReferenceObjectBinding

The KrmsObjectId of the ReferenceObjectBinding

Specified by:
getKrmsObjectId in interface ReferenceObjectBindingContract
Returns:
the KrmsObjectId of the ReferenceObjectBinding

getNamespace

public String getNamespace()
Description copied from interface: ReferenceObjectBindingContract
This is the namespace of the ReferenceObjectBinding

The namespace of the ReferenceObjectBinding

Specified by:
getNamespace in interface ReferenceObjectBindingContract
Returns:
the namespace of the ReferenceObjectBinding

getReferenceDiscriminatorType

public String getReferenceDiscriminatorType()
Description copied from interface: ReferenceObjectBindingContract
This is the ReferenceDiscriminatorType of the ReferenceObjectBinding

The ReferenceDiscriminatorType of the ReferenceObjectBinding

Specified by:
getReferenceDiscriminatorType in interface ReferenceObjectBindingContract
Returns:
the ReferenceDiscriminatorType of the ReferenceObjectBinding

getReferenceObjectId

public String getReferenceObjectId()
Description copied from interface: ReferenceObjectBindingContract
This is the ReferenceObjectId of the ReferenceObjectBinding

The ReferenceObjectId of the ReferenceObjectBinding

Specified by:
getReferenceObjectId in interface ReferenceObjectBindingContract
Returns:
the ReferenceObjectId of the ReferenceObjectBinding

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()

setCollectionName

public void setCollectionName(String collectionName)
Sets the value of collectionName on this builder to the given value.

Parameters:
collectionName - the collectionName value to set.

setKrmsDiscriminatorType

public void setKrmsDiscriminatorType(String krmsDiscriminatorType)
Sets the value of krmsDiscriminatorType on this builder to the given value.

Parameters:
krmsDiscriminatorType - the krmsDiscriminatorType value to set.

setKrmsObjectId

public void setKrmsObjectId(String krmsObjectId)
Sets the value of krmsObjectId on this builder to the given value.

Parameters:
krmsObjectId - the krmsObjectId value to set.

setNamespace

public void setNamespace(String namespace)
Sets the value of namespace on this builder to the given value.

Parameters:
namespace - the namespace value to set.

setReferenceDiscriminatorType

public void setReferenceDiscriminatorType(String referenceDiscriminatorType)
Sets the value of referenceDiscriminatorType on this builder to the given value.

Parameters:
referenceDiscriminatorType - the referenceDiscriminatorType value to set.

setReferenceObjectId

public void setReferenceObjectId(String referenceObjectId)
Sets the value of referenceObjectId on this builder to the given value.

Parameters:
referenceObjectId - the referenceObjectId 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 ReferenceObjectBinding to(ReferenceObjectBindingBo referenceObjectBindingBo)
Converts a mutable ReferenceObjectBindingBo to its immutable counterpart, ReferenceObjectBinding.

Parameters:
referenceObjectBindingBo - the mutable business object.
Returns:
a ReferenceObjectBinding the immutable object.

from

public static ReferenceObjectBindingBo from(ReferenceObjectBinding referenceObjectBinding)
Converts a immutable ReferenceObjectBinding to its mutable ReferenceObjectBindingBo counterpart.

Parameters:
referenceObjectBinding - the immutable object.
Returns:
a ReferenceObjectBindingBo the mutable ReferenceObjectBindingBo.

setSequenceAccessorService

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

Parameters:
sas - SequenceAccessorService to use for getNewId.

getSequenceAccessorService

public SequenceAccessorService getSequenceAccessorService()


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