@Entity public class DerivedComponentBo extends PersistableBusinessObjectBase implements ComponentContract
extension, newCollectionRecord, objectId, versionNumber
Constructor and Description |
---|
DerivedComponentBo() |
Modifier and Type | Method and Description |
---|---|
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) |
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
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersionNumber
getObjectId
toString
public DerivedComponentBo()
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public String getNamespaceCode()
ComponentContract
It is a way of assigning the component to a logical grouping within a rice application or rice ecosystem.
getNamespaceCode
in interface ComponentContract
public void setNamespaceCode(String namespaceCode)
public String getCode()
Coded
public String getName()
ComponentContract
getName
in interface ComponentContract
public String getComponentSetId()
ComponentContract
getComponentSetId
in interface ComponentContract
public void setComponentSetId(String componentSetId)
protected void preUpdate()
PersistableBusinessObjectBase
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.
preUpdate
in class PersistableBusinessObjectBase
public static Component to(DerivedComponentBo bo)
bo
- the mutable business objectpublic static DerivedComponentBo from(Component im)
im
- immutable objectpublic static ComponentBo toComponentBo(DerivedComponentBo derivedComponentBo)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.