org.kuali.rice.core.impl.style
Class StyleBo
java.lang.Object
org.kuali.rice.kns.bo.BusinessObjectBase
org.kuali.rice.kns.bo.PersistableBusinessObjectBase
org.kuali.rice.core.impl.style.StyleBo
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Versioned, ModelObjectBasic, StyleContract, BusinessObject, PersistableBusinessObject
@Entity
public class StyleBo
- extends PersistableBusinessObjectBase
- implements StyleContract
A BusinessObject implementation of the StyleContract which is mapped to the
database for persistence.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
styleId
private Long styleId
name
private String name
xmlContent
private String xmlContent
active
private boolean active
StyleBo
public StyleBo()
getStyleId
public Long getStyleId()
- Description copied from interface:
StyleContract
- Returns the identifier of this style. Should only return null if this
style has not been persisted to a data repository yet. Each
individual style should have a unique identifier.
- Specified by:
getStyleId
in interface StyleContract
- Returns:
- the id of this style, or null if it has not yet been set
setStyleId
public void setStyleId(Long styleId)
getName
public String getName()
- Description copied from interface:
StyleContract
- Returns the name of this style. All styles have a name and this value
can never be null or blank. The name must be unique within the entire
repository of existing styles.
- Specified by:
getName
in interface StyleContract
- Returns:
- the name of this style
setName
public void setName(String name)
getXmlContent
public String getXmlContent()
- Description copied from interface:
StyleContract
- Returns the XML definition of this style as a String.
- Specified by:
getXmlContent
in interface StyleContract
- Returns:
- the xml definition of this style
setXmlContent
public void setXmlContent(String xmlContent)
isActive
public boolean isActive()
- Description copied from interface:
Inactivatable
- Returns a boolean value determining if the Object is Active or not.
- Specified by:
isActive
in interface Inactivatable
- Returns:
- the active indicator
setActive
public void setActive(boolean active)
to
public static Style to(StyleBo styleBo)
- Converts the given StyleBo to a Style object.
- Parameters:
styleBo
- the StyleBo to convert
- Returns:
- the resulting Style object, or null if the given styleBo was null
from
public static StyleBo from(Style style)
- Constructs a StyleBo from the given Style.
- Parameters:
style
- the Style to convert
- Returns:
- the resulting StyleBo object, or null if the given style was null
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.