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

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.KrmsAttributeDefinitionBo
All Implemented Interfaces:
Serializable, Inactivatable, MutableInactivatable, Identifiable, Versioned, KrmsAttributeDefinitionContract

@Entity
public class KrmsAttributeDefinitionBo
extends Object
implements KrmsAttributeDefinitionContract, MutableInactivatable, Serializable

See Also:
Serialized Form

Field Summary
protected  Long versionNumber
           
 
Constructor Summary
KrmsAttributeDefinitionBo()
           
 
Method Summary
static KrmsAttributeDefinitionBo from(KrmsAttributeDefinition im)
          Converts a immutable object to it's mutable bo counterpart
 boolean getActive()
           
 String getComponentName()
          Returns the name of the component used to display the attribute.
 String getDescription()
          Returns the description of the attribute.
 String getId()
          The unique identifier for an object.
 String getLabel()
          Returns the label of this attribute definition.
 String getName()
          Returns the name of this attribute definition.
 String getNamespace()
          Returns the namespace of this attribute definition.
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
          Sets the record to active or inactive.
 void setComponentName(String componentName)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setLabel(String label)
           
 void setName(String name)
           
 void setNamespace(String namespace)
           
 void setVersionNumber(Long versionNumber)
           
static KrmsAttributeDefinition to(KrmsAttributeDefinitionBo 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

versionNumber

protected Long versionNumber
Constructor Detail

KrmsAttributeDefinitionBo

public KrmsAttributeDefinitionBo()
Method Detail

to

public static KrmsAttributeDefinition to(KrmsAttributeDefinitionBo bo)
Converts a mutable bo to it's immutable counterpart

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

from

public static KrmsAttributeDefinitionBo from(KrmsAttributeDefinition 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)

getName

public String getName()
Description copied from interface: KrmsAttributeDefinitionContract
Returns the name of this attribute definition.

All attribute definitions have a name and namespace, so this value can not be null or blank. The combination of name and namespace must be unique within the entire KRMS system.

Specified by:
getName in interface KrmsAttributeDefinitionContract
Returns:
name for this attribute definition

setName

public void setName(String name)

getNamespace

public String getNamespace()
Description copied from interface: KrmsAttributeDefinitionContract
Returns the namespace of this attribute definition.

The namespace provides scope of the the attribute definition. All attribute definition have a name and namespace, so this field may not be null or blank. The combination of name and namespace must be unique within the entire KRMS system.

Specified by:
getNamespace in interface KrmsAttributeDefinitionContract
Returns:
the namespace of this attribute definition

setNamespace

public void setNamespace(String namespace)

getLabel

public String getLabel()
Description copied from interface: KrmsAttributeDefinitionContract
Returns the label of this attribute definition.

This is an optional field and may be null or blank.

Specified by:
getLabel in interface KrmsAttributeDefinitionContract
Returns:
the label to be used when displaying the attribute

setLabel

public void setLabel(String label)

getDescription

public String getDescription()
Description copied from interface: KrmsAttributeDefinitionContract
Returns the description of the attribute.

This is an option field and may be null or blank.

Specified by:
getDescription in interface KrmsAttributeDefinitionContract
Returns:
a text description of the attribute

setDescription

public void setDescription(String description)

getActive

public boolean getActive()

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.

setActive

public void setActive(boolean active)
Description copied from interface: MutableInactivatable
Sets the record to active or inactive.

Specified by:
setActive in interface MutableInactivatable

getComponentName

public String getComponentName()
Description copied from interface: KrmsAttributeDefinitionContract
Returns the name of the component used to display the attribute.

Specified by:
getComponentName in interface KrmsAttributeDefinitionContract
Returns:
the component name of the of the attribute

setComponentName

public void setComponentName(String componentName)

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.