org.kuali.rice.coreservice.impl.component
Class DerivedComponentBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.coreservice.impl.component.DerivedComponentBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, Coded, GloballyUnique, Versioned, ModelObjectBasic, ComponentContract, BusinessObject, PersistableBusinessObject

@Entity
public class DerivedComponentBo
extends PersistableBusinessObjectBase
implements ComponentContract

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
DerivedComponentBo()
           
 
Method Summary
static DerivedComponentBo from(Component im)
          Converts a immutable object to its mutable counterpart
 String getCode()
          The code value for this object.
 String getComponentSetId()
          Returns the id of the component set this component belongs to if this component was published as part of such a component set.
 String getName()
          This is the name value for the component.
 String getNamespaceCode()
          This is the namespace for the component.
 boolean isActive()
          The active indicator for an object.
protected  void preUpdate()
          Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one.
 void setCode(String code)
           
 void setComponentSetId(String componentSetId)
           
 void setName(String name)
           
 void setNamespaceCode(String namespaceCode)
           
static Component to(DerivedComponentBo bo)
          Converts a mutable bo to its immutable counterpart
static ComponentBo toComponentBo(DerivedComponentBo derivedComponentBo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
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.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

DerivedComponentBo

public DerivedComponentBo()
Method Detail

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.

getNamespaceCode

public String getNamespaceCode()
Description copied from interface: ComponentContract
This is the namespace for the component. It cannot be null or a blank string.

It is a way of assigning the component to a logical grouping within a rice application or rice ecosystem.

Specified by:
getNamespaceCode in interface ComponentContract
Returns:
namespace code

setNamespaceCode

public void setNamespaceCode(String namespaceCode)

getCode

public String getCode()
Description copied from interface: Coded
The code value for this object. In general a code value cannot be null or a blank string.

Specified by:
getCode in interface Coded
Returns:
the code value for this object.

setCode

public void setCode(String code)

getName

public String getName()
Description copied from interface: ComponentContract
This is the name value for the component. It cannot be null or a blank string.

Specified by:
getName in interface ComponentContract
Returns:
name

setName

public void setName(String name)

getComponentSetId

public String getComponentSetId()
Description copied from interface: ComponentContract
Returns the id of the component set this component belongs to if this component was published as part of such a component set. Will return a null value if this component was not published as part of a component set.

Specified by:
getComponentSetId in interface ComponentContract
Returns:
the id of the component set this component was published under, or null if this component is not part of a published set

setComponentSetId

public void setComponentSetId(String componentSetId)

preUpdate

protected void preUpdate()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.preUpdate to ensure that the objectId for this persistable business object is generated properly.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.beforeUpdate(PersistenceBroker) hook.

Overrides:
preUpdate in class PersistableBusinessObjectBase

to

public static Component to(DerivedComponentBo bo)
Converts a mutable bo to its immutable counterpart

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

from

public static DerivedComponentBo from(Component im)
Converts a immutable object to its mutable counterpart

Parameters:
im - immutable object
Returns:
the mutable bo

toComponentBo

public static ComponentBo toComponentBo(DerivedComponentBo derivedComponentBo)


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