|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.auditing.AuditedACSObject
com.arsdigita.formbuilder.PersistentComponent
com.arsdigita.formbuilder.PersistentWidget
com.arsdigita.formbuilder.PersistentDate
This class is responsible for persisting Bebop Dates. The Date is saved with the save() method. To resurrect the Date, use the constructor taking the id of the saved Date and then invoke createComponent().
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
The fully qualified name of the underlying DataObject of this class. |
static String |
versionId
|
Fields inherited from class com.arsdigita.formbuilder.PersistentWidget |
DEFAULT_VALUE |
Fields inherited from class com.arsdigita.formbuilder.PersistentComponent |
ATTRIBUTE_STRING |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE |
Constructor Summary | |
PersistentDate()
Constructor that creates a new Date domain object that can be saved to the database later on. |
|
PersistentDate(BigDecimal id)
Constructor that retrieves an existing Date domain object from the database. |
|
PersistentDate(DataObject obj)
|
|
PersistentDate(ObjectType type)
|
|
PersistentDate(OID oID)
Extending classes can use this constructor to set the sub class id and object type. |
|
PersistentDate(String typeName)
Constructor that creates a new Date domain object that can be saved to the database later on. |
Method Summary | |
protected void |
copyValuesToWidget(Widget widget)
|
static PersistentDate |
create(String parameterName)
|
Component |
createComponent()
Create the Date whose persistence is managed by this domain object. |
String |
getDateParameter()
Will return null if no value has been set. |
Integer |
getEndYear()
This returns the end year to display or null if there is no end year |
Integer |
getStartYear()
This returns the start year to display or null if there is no start year |
protected Class |
getValueClass()
Returns a java.util.Date Class |
void |
setDateParameter(String dateParameterClass)
|
void |
setYearRange(int startYear,
int endYear)
|
Methods inherited from class com.arsdigita.formbuilder.PersistentWidget |
addValidationListener, clearValidationListeners, delete, deserializeDefaultValue, getAttributeMetaData, getDefaultValue, getParameterModel, getParameterName, getValidationListeners, instantiateParameterModel, setDefaultValue, setParameterModel, setParameterName, setup |
Methods inherited from class com.arsdigita.formbuilder.PersistentComponent |
beforeSave, getAdminName, getComponentAttribute, getDescription, setAdminName, setComponentAttribute, setDescription, setDomainClass |
Methods inherited from class com.arsdigita.auditing.AuditedACSObject |
getCreationDate, getCreationIP, getCreationUser, getLastModifiedDate, getLastModifiedIP, getLastModifiedUser, initialize |
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.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.arsdigita.formbuilder.PersistentComponentFactory |
getID, isNew, save |
Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
Constructor Detail |
public PersistentDate()
public PersistentDate(String typeName)
public PersistentDate(ObjectType type)
public PersistentDate(DataObject obj)
public PersistentDate(BigDecimal id) throws DataObjectNotFoundException
id
- The object id of the Date domain object to retrievepublic PersistentDate(OID oID) throws DataObjectNotFoundException
Method Detail |
public static PersistentDate create(String parameterName)
public Component createComponent()
createComponent
in interface PersistentComponentFactory
createComponent
in class PersistentComponent
protected void copyValuesToWidget(Widget widget)
copyValuesToWidget
in class PersistentWidget
public Integer getEndYear()
public Integer getStartYear()
protected Class getValueClass()
getValueClass
in class PersistentWidget
public void setDateParameter(String dateParameterClass)
public String getDateParameter()
public void setYearRange(int startYear, int endYear)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |