com.arsdigita.formbuilder
Class PersistentOption
java.lang.Object
com.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.auditing.AuditedACSObject
com.arsdigita.formbuilder.PersistentComponent
com.arsdigita.formbuilder.PersistentOption
- All Implemented Interfaces:
- AttributeMetaDataProvider, Audited, PersistentComponentFactory
- public class PersistentOption
- extends PersistentComponent
This class is responsible for persisting Bebop Options. The Option
is saved with the save() method. To resurrect the Option, use the constructor
taking the id of the saved Option and then invoke createComponent().
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/formbuilder/PersistentOption.java#8 $
- Author:
- Peter Marklund
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
versionId
public static final String versionId
- See Also:
- Constant Field Values
BASE_DATA_OBJECT_TYPE
public static final String BASE_DATA_OBJECT_TYPE
- The fully qualified name of the underlying DataObject of this class.
- See Also:
- Constant Field Values
PersistentOption
public PersistentOption()
- Constructor that creates a new Option domain object that
can be saved to the database later on.
PersistentOption
public PersistentOption(String typeName)
PersistentOption
public PersistentOption(ObjectType type)
PersistentOption
public PersistentOption(DataObject obj)
PersistentOption
public PersistentOption(BigDecimal id)
throws DataObjectNotFoundException
- Constructor that retrieves an existing Option domain object
from the database.
- Parameters:
id
- The object id of the Option domain object to retrieve
PersistentOption
public PersistentOption(OID oID)
throws DataObjectNotFoundException
- Extending classes can use this constructor to set the sub class
id and object type.
create
public static PersistentOption create(String parameterValue,
String label)
setup
protected void setup(String parameterValue,
String label)
createComponent
public Component createComponent()
- Create the Label whose persistence is managed
by this domain object.
- Specified by:
createComponent
in interface PersistentComponentFactory
- Specified by:
createComponent
in class PersistentComponent
setParameterValue
public void setParameterValue(String parameterValue)
getParameterValue
public String getParameterValue()
setLabel
public void setLabel(String label)
getLabel
public String getLabel()
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC