|
|||||||||||
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.formbuilder.PersistentDataQuery
This class is used to maintain the list of data queries available
to the DataDrivenSelect
class.
All the queries are expected to return two attributes,
id
is some unique id for the row, and
label
is the human friendly label to display.
eg
query DataQueryPackages { BigDecimal id; String label; do { select package_id, pretty_name from apm_packages order by pretty_name asc } map { id = package_id; label = pretty_name; } }
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
DESCRIPTION
|
static String |
NAME
|
static String |
TYPE_ID
|
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE, versionId |
Constructor Summary | |
PersistentDataQuery()
Constructor. |
|
PersistentDataQuery(BigDecimal id)
Constructor. |
|
PersistentDataQuery(DataObject obj)
Constructor. |
|
PersistentDataQuery(ObjectType type)
Constructor. |
|
PersistentDataQuery(OID oid)
Constructor. |
|
PersistentDataQuery(String typeName)
Constructor. |
Method Summary | |
static PersistentDataQuery |
create(BebopObjectType type,
String description,
String name)
Creates a new persitent data query, initialising the required attributes |
static PersistentDataQuery |
findByName(BebopObjectType type,
String name)
Retrieves the persistent data query with the specified fully qualified pdl query name |
String |
getBaseDataObjectType()
Returns the base data object type for this domain object class. |
String |
getDescription()
Retrieves the pretty name of the query |
String |
getName()
Retrieves the fully qualified pdl query name |
static Collection |
getQueries(BebopObjectType type)
Retrieves a collection of all the PersistentDataQuery objects in the data base |
BebopObjectType |
getType()
Retrieves the package to which this meta object is scoped. |
BigDecimal |
getTypeId()
Retrieves the id of the packge to whcih this meta object is scoped |
void |
setDescription(String description)
Sets teh pretty name of the query |
void |
setName(String name)
Sets the pdl query name |
void |
setType(BebopObjectType type)
Sets the package to which this meta object is scoped. |
void |
setTypeId(BigDecimal pack)
Sets the package to which this meta object is scoped |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, 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, 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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String BASE_DATA_OBJECT_TYPE
public static final String TYPE_ID
public static final String DESCRIPTION
public static final String NAME
Constructor Detail |
public PersistentDataQuery()
public PersistentDataQuery(String typeName)
typeName
- the base data object typepublic PersistentDataQuery(ObjectType type)
type
- the data object typepublic PersistentDataQuery(DataObject obj)
obj
- the data objectpublic PersistentDataQuery(BigDecimal id) throws DataObjectNotFoundException
id
- the id of the data objectpublic PersistentDataQuery(OID oid) throws DataObjectNotFoundException
oid
- the oid of the data objectMethod Detail |
public String getBaseDataObjectType()
DomainObject
getBaseDataObjectType
in class ACSObject
public static Collection getQueries(BebopObjectType type)
public static PersistentDataQuery findByName(BebopObjectType type, String name) throws DataObjectNotFoundException
DataObjectNotFoundException
public static PersistentDataQuery create(BebopObjectType type, String description, String name)
description
- the pretty name for the queryname
- the fully qualified pdl query namepublic void setTypeId(BigDecimal pack)
pack
- the id of the packagepublic BigDecimal getTypeId()
public void setType(BebopObjectType type)
public BebopObjectType getType() throws DataObjectNotFoundException
DataObjectNotFoundException
public String getDescription()
public void setDescription(String description)
description
- the new pretty namepublic String getName()
public void setName(String name)
name
- the fully qualified pdl query name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |