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

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

public class NaturalLanguageUsageBo
extends PersistableBusinessObjectBase
implements NaturalLanguageUsageContract

The mutable implementation of the @{link NaturalLanguageUsageContract} interface, the counterpart to the immutable implementation NaturalLanguageUsage.

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
NaturalLanguageUsageBo()
          Default Constructor
 
Method Summary
static NaturalLanguageUsageBo from(NaturalLanguageUsage naturalLanguageUsage)
          Converts a immutable NaturalLanguageUsage to its mutable NaturalLanguageUsageBo counterpart.
 String getDescription()
          This is the Description of the NaturalLanguageUsage
 String getId()
          The unique identifier for an object.
 String getName()
          This is the name of the NaturalLanguageUsage
 String getNamespace()
          This is the namespace of the NaturalLanguageUsage
 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 setDescription(String description)
          Sets the value of description on this builder to the given value.
 void setId(String id)
          Sets the value of id on this builder to the given value.
 void setName(String name)
          Sets the value of name on this builder to the given value.
 void setNamespace(String namespace)
          Sets the value of namespace 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 NaturalLanguageUsage to(NaturalLanguageUsageBo naturalLanguageUsageBo)
          Converts a mutable NaturalLanguageUsageBo to its immutable counterpart, NaturalLanguageUsage.
 
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

NaturalLanguageUsageBo

public NaturalLanguageUsageBo()
Default Constructor

Method Detail

getName

public String getName()
Description copied from interface: NaturalLanguageUsageContract
This is the name of the NaturalLanguageUsage

The name of the NaturalLanguageUsage

Specified by:
getName in interface NaturalLanguageUsageContract
Returns:
the name of the NaturalLanguageUsage

getDescription

public String getDescription()
Description copied from interface: NaturalLanguageUsageContract
This is the Description of the NaturalLanguageUsage

The Description of the NaturalLanguageUsage

Specified by:
getDescription in interface NaturalLanguageUsageContract
Returns:
the Description of the NaturalLanguageUsage

getNamespace

public String getNamespace()
Description copied from interface: NaturalLanguageUsageContract
This is the namespace of the NaturalLanguageUsage

The namespace of the NaturalLanguageUsage

Specified by:
getNamespace in interface NaturalLanguageUsageContract
Returns:
the namespace of the NaturalLanguageUsage

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

setName

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

Parameters:
name - the name value to set.

setDescription

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

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

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 NaturalLanguageUsage to(NaturalLanguageUsageBo naturalLanguageUsageBo)
Converts a mutable NaturalLanguageUsageBo to its immutable counterpart, NaturalLanguageUsage.

Parameters:
naturalLanguageUsageBo - the mutable business object.
Returns:
a NaturalLanguageUsage the immutable object.

from

public static NaturalLanguageUsageBo from(NaturalLanguageUsage naturalLanguageUsage)
Converts a immutable NaturalLanguageUsage to its mutable NaturalLanguageUsageBo counterpart.

Parameters:
naturalLanguageUsage - the immutable object.
Returns:
a NaturalLanguageUsageBo the mutable NaturalLanguageUsageBo.

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.