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

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

public class NaturalLanguageTemplateAttributeBo
extends PersistableBusinessObjectBase
implements NaturalLanguageTemplateAttributeContract

The mutable implementation of the @{link NaturalLanguageTemplateAttributeContract} interface, the counterpart to the immutable implementation NaturalLanguageTemplateAttribute.

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
NaturalLanguageTemplateAttributeBo()
          Default Constructor
 
Method Summary
static NaturalLanguageTemplateAttributeBo from(NaturalLanguageTemplateAttribute naturalLanguageTemplateAttribute)
          Converts a immutable NaturalLanguageTemplateAttribute to its mutable NaturalLanguageTemplateAttributeBo counterpart.
 KrmsAttributeDefinitionContract getAttributeDefinition()
          Returns a KrmsAttributeDefinitionContract.
 String getAttributeDefinitionId()
          Returns the id of the attribute definition.
 String getId()
          The unique identifier for an object.
 String getNaturalLanguageTemplateId()
          This is the NaturalLanguageTemplateId of the NaturalLanguageTemplateAttribute
 SequenceAccessorService getSequenceAccessorService()
           
 String getValue()
          Returns the value of the attribute
 Long getVersionNumber()
          Returns the version number for this object.
 void setAttributeDefinition(KrmsAttributeDefinitionContract attributeDefinition)
          Sets the value of attributeDefinition on this builder to the given value.
 void setAttributeDefinitionId(String attributeDefinitionId)
          Sets the value of attributeDefinitionId on this builder to the given value.
 void setId(String id)
          Sets the value of id on this builder to the given value.
 void setNaturalLanguageTemplateId(String naturalLanguageTemplateId)
          Sets the value of naturalLanguageTemplateId on this builder to the given value.
 void setSequenceAccessorService(SequenceAccessorService sas)
          Set the SequenceAccessorService, useful for testing.
 void setValue(String value)
          Sets the value of value on this builder to the given value.
 void setVersionNumber(Long versionNumber)
          Sets the value of versionNumber on this builder to the given value.
static NaturalLanguageTemplateAttribute to(NaturalLanguageTemplateAttributeBo naturalLanguageTemplateAttributeBo)
          Converts a mutable NaturalLanguageTemplateAttributeBo to its immutable counterpart, NaturalLanguageTemplateAttribute.
 
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

NaturalLanguageTemplateAttributeBo

public NaturalLanguageTemplateAttributeBo()
Default Constructor

Method Detail

getNaturalLanguageTemplateId

public String getNaturalLanguageTemplateId()
Description copied from interface: NaturalLanguageTemplateAttributeContract
This is the NaturalLanguageTemplateId of the NaturalLanguageTemplateAttribute

The NaturalLanguageTemplateId of the NaturalLanguageTemplateAttribute

Specified by:
getNaturalLanguageTemplateId in interface NaturalLanguageTemplateAttributeContract
Returns:
the NaturalLanguageTemplateId of the NaturalLanguageTemplateAttribute

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

getValue

public String getValue()
Description copied from interface: BaseAttributeContract
Returns the value of the attribute

Specified by:
getValue in interface BaseAttributeContract
Returns:
the value of the attribute

getAttributeDefinitionId

public String getAttributeDefinitionId()
Description copied from interface: BaseAttributeContract
Returns the id of the attribute definition.

The attribute definition contains metadata about the attribute. This is a required field and may not be null or blank. Many attribute instances may share the same attribute definition.

Specified by:
getAttributeDefinitionId in interface BaseAttributeContract
Returns:
the attribute definition id

getAttributeDefinition

public KrmsAttributeDefinitionContract getAttributeDefinition()
Description copied from interface: BaseAttributeContract
Returns a KrmsAttributeDefinitionContract.

This is the object referred to by the attributeDefinitionId. The full object is also kept here for performance purposes. This is because the name of the attribute is referenced often for resolving name / value attribute pairs.

Specified by:
getAttributeDefinition in interface BaseAttributeContract
Returns:
the attribute definition

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

setNaturalLanguageTemplateId

public void setNaturalLanguageTemplateId(String naturalLanguageTemplateId)
Sets the value of naturalLanguageTemplateId on this builder to the given value.

Parameters:
naturalLanguageTemplateId - the naturalLanguageTemplateId 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()

setValue

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

Parameters:
value - the value value to set.

setAttributeDefinitionId

public void setAttributeDefinitionId(String attributeDefinitionId)
Sets the value of attributeDefinitionId on this builder to the given value.

Parameters:
attributeDefinitionId - the attributeDefinitionId value to set.

setAttributeDefinition

public void setAttributeDefinition(KrmsAttributeDefinitionContract attributeDefinition)
Sets the value of attributeDefinition on this builder to the given value.

Parameters:
attributeDefinition - the attributeDefinition 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.

to

public static NaturalLanguageTemplateAttribute to(NaturalLanguageTemplateAttributeBo naturalLanguageTemplateAttributeBo)
Converts a mutable NaturalLanguageTemplateAttributeBo to its immutable counterpart, NaturalLanguageTemplateAttribute.

Parameters:
naturalLanguageTemplateAttributeBo - the mutable business object.
Returns:
a NaturalLanguageTemplateAttribute the immutable object.

from

public static NaturalLanguageTemplateAttributeBo from(NaturalLanguageTemplateAttribute naturalLanguageTemplateAttribute)
Converts a immutable NaturalLanguageTemplateAttribute to its mutable NaturalLanguageTemplateAttributeBo counterpart.

Parameters:
naturalLanguageTemplateAttribute - the immutable object.
Returns:
a NaturalLanguageTemplateAttributeBo the mutable NaturalLanguageTemplateAttributeBo.

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.