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

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

@Entity
public class TermParameterBo
extends Object
implements TermParameterDefinitionContract, Serializable

See Also:
Serialized Form

Field Summary
static String TERM_PARM_SEQ_NAME
           
protected  Long versionNumber
           
 
Constructor Summary
TermParameterBo()
           
 
Method Summary
static TermParameterBo from(TermParameterDefinition im)
          Converts a immutable object to it's mutable bo counterpart
 String getId()
          The unique identifier for an object.
 String getName()
          Gets the name of this parameter.
 TermBo getTerm()
           
 String getTermId()
          Gets the identifier for the term that this parameter belongs to.
 String getValue()
          Gets the value of this parameter.
 Long getVersionNumber()
          Returns the version number for this object.
 void setId(String id)
           
 void setName(String name)
           
 void setTerm(TermBo term)
           
 void setValue(String value)
           
 void setVersionNumber(Long versionNumber)
           
static TermParameterDefinition to(TermParameterBo 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_PARM_SEQ_NAME

public static final String TERM_PARM_SEQ_NAME
See Also:
Constant Field Values

versionNumber

protected Long versionNumber
Constructor Detail

TermParameterBo

public TermParameterBo()
Method Detail

to

public static TermParameterDefinition to(TermParameterBo bo)
Converts a mutable bo to it's immutable counterpart

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

from

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

Parameters:
im - immutable object
Returns:
the mutable bo

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)

getTermId

public String getTermId()
Description copied from interface: TermParameterDefinitionContract
Gets the identifier for the term that this parameter belongs to. May be null, must not be empty.

Specified by:
getTermId in interface TermParameterDefinitionContract
Returns:
the term identifier

getName

public String getName()
Description copied from interface: TermParameterDefinitionContract
Gets the name of this parameter. Must not be null or empty.

Specified by:
getName in interface TermParameterDefinitionContract
Returns:
the name of this parameter

setName

public void setName(String name)

getValue

public String getValue()
Description copied from interface: TermParameterDefinitionContract
Gets the value of this parameter. May be null.

Specified by:
getValue in interface TermParameterDefinitionContract
Returns:
the value of this parameter

setValue

public void setValue(String value)

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)

getTerm

public TermBo getTerm()

setTerm

public void setTerm(TermBo term)


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