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

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.TermBo
All Implemented Interfaces:
Serializable, Identifiable, Versioned, TermDefinitionContract

@Entity
public class TermBo
extends Object
implements TermDefinitionContract, Serializable

See Also:
Serialized Form

Field Summary
static String TERM_SEQ_NAME
           
protected  Long versionNumber
           
 
Constructor Summary
TermBo()
           
 
Method Summary
 void exportToParametersMap()
           
static TermBo from(TermDefinition im)
          Converts a immutable object to it's mutable bo counterpart
 String getDescription()
          Get the description for this TermDefinitionContract.
 String getId()
          The unique identifier for an object.
 List<TermParameterBo> getParameters()
          Get any parameters specified on this TermDefinitionContract.
 TermSpecificationBo getSpecification()
          Get the associated TermSpecificationDefinitionContract which specifies some important details about the term.
 String getSpecificationId()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void importFromParametersMap()
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setParameters(List<TermParameterBo> parameters)
           
 void setSpecification(TermSpecificationBo specification)
           
 void setSpecificationId(String specificationId)
           
 void setVersionNumber(Long versionNumber)
           
static TermDefinition to(TermBo bo)
          Converts a mutable bo to it's immutable counterpart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TERM_SEQ_NAME

public static final String TERM_SEQ_NAME
See Also:
Constant Field Values

versionNumber

protected Long versionNumber
Constructor Detail

TermBo

public TermBo()
Method Detail

to

public static TermDefinition to(TermBo bo)
Converts a mutable bo to it's immutable counterpart

Parameters:
bo - the mutable business object
Returns:
the immutable object

from

public static TermBo from(TermDefinition im)
Converts a immutable object to it's mutable bo counterpart

Parameters:
im - immutable object
Returns:
the mutable bo

getSpecification

public TermSpecificationBo getSpecification()
Description copied from interface: TermDefinitionContract
Get the associated TermSpecificationDefinitionContract which specifies some important details about the term. Will not be null.

Specified by:
getSpecification in interface TermDefinitionContract
Returns:
the term specification

setSpecification

public void setSpecification(TermSpecificationBo specification)

getParameters

public List<TermParameterBo> getParameters()
Description copied from interface: TermDefinitionContract
Get any parameters specified on this TermDefinitionContract. May be empty, but never null.

Specified by:
getParameters in interface TermDefinitionContract
Returns:
the term's parameters

setParameters

public void setParameters(List<TermParameterBo> parameters)

exportToParametersMap

public void exportToParametersMap()

importFromParametersMap

public void importFromParametersMap()

getDescription

public String getDescription()
Description copied from interface: TermDefinitionContract
Get the description for this TermDefinitionContract. May be null.

Specified by:
getDescription in interface TermDefinitionContract
Returns:
the description

setDescription

public void setDescription(String description)

getSpecificationId

public String getSpecificationId()

setSpecificationId

public void setSpecificationId(String specificationId)

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

setId

public void setId(String id)

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
Returns:
the version number, or null if one has not been assigned yet

setVersionNumber

public void setVersionNumber(Long versionNumber)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.