Class ReportDefinition
- All Implemented Interfaces:
Displayable
,HasName
,StringFiller
,HasId
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static ReportDefinition
create
(Class<? extends StoredObject> dataClass, Iterable<String> columns) static ReportDefinition
create
(Class<? extends StoredObject> dataClass, String... columns) static ReportDefinition
int
static String
getBaseFontSizeValue
(int value) static String[]
Class
<? extends StoredObject> Class
<? extends Executable> getClassForLogic
(boolean excel) final List
<ReportColumnDefinition> Set the condition to be applied while retrieving the object instances from the database.Get the filter variables with comparison indicators.boolean
int
static String
getOrientationValue
(int value) static String[]
boolean
<T extends StoredObject>
QueryBuilder<T> <T extends StoredObject>
QueryBuilder<T> getQueryBuilder
(String extraCondition) <T extends StoredObject>
QueryBuilder<T> getQueryBuilder
(String extraCondition, String orderBy) getTitle()
static int
hints()
static void
static String[]
links()
static ObjectIterator
<ReportDefinition> <T extends StoredObject>
ObjectIterator<T> <T extends StoredObject>
ObjectIterator<T> listObjects
(String extraCondition) <T extends StoredObject>
ObjectIterator<T> listObjects
(String extraCondition, String orderBy) void
setBaseFontSize
(int baseFontSize) void
setCondition
(String condition) Set the condition to be applied while retrieving the object instances from the database.void
setCustomColumnSupplier
(Supplier<StringList> customColumnSupplier) void
setDataClass
(String dataClass) void
setDescription
(String description) void
setExecutable
(Executable executable) void
Set the filter variables with filter conditions.void
setIncludeSubclasses
(boolean includeSubclasses) void
setLogicClass
(String logicClass) void
setOrderBy
(String orderBy) void
setOrientation
(int orientation) void
setPrintDescription
(boolean printDescription) void
void
This will be invoked by the system whenever the object is saved to the DB.Methods inherited from class com.storedobject.core.Name
getName, getUniqueCondition, setName, toString
Methods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loaded, loading, makeNew, makeVirtual, migrate, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, reloaded, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saved, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, toDisplay, transacting, undelete, undelete, undeleted, updated, user, userId, validate, validateChildAttach, validateChildDetach, validateChildUpdate, validateDelete, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEquals
-
Constructor Details
-
ReportDefinition
public ReportDefinition()
-
-
Method Details
-
columns
-
indices
-
get
-
list
-
hints
public static int hints() -
links
-
setTitle
-
getTitle
-
setDescription
-
getDescription
-
setPrintDescription
public void setPrintDescription(boolean printDescription) -
getPrintDescription
-
setDataClass
-
getDataClass
-
setIncludeSubclasses
public void setIncludeSubclasses(boolean includeSubclasses) -
getIncludeSubclasses
-
setCondition
Set the condition to be applied while retrieving the object instances from the database.- Parameters:
condition
- SQL-style condition.
-
getCondition
-
setFilter
Set the filter variables with filter conditions.The filter variables are defined in separate lines. Each filter variable can be specified as just the attribute name or the attribute name followed by its comparison indicators.
Comparison indicators specify how the comparison is done. It is indicated by 2 characters - "EQ" for "equal to", "LT" for "less than", "GT" for "greater than", "LE" for "less than or equal to", "NE" for "not equal to" etc. If an invalid comparison indicator is specified or if no indicator is specified, "EQ" is assumed. The comparison indicator must be separated from the field attribute by a slash "/" character. A star "*" (asterisk character) may be added to indicate that the field is mandatory when value is being accepted from the user.
Example: (Assuming Person as the data class) Age/LT* Example: (Assuming Person as the data class) Gender/EQ Age/GT
The captions of the filter fields may be customized by adding " AS " followed by the customized caption.
Example: (Assuming Person as the data class) Gender/EQ AS Gender equal to Age/GT AS Age greater than
Sub-fields may be accessed using the platform-specific "dot" notation.
Example: (Assuming SystemUser as the data class) Person.Gender/EQ AS Gender equal to
- Parameters:
filter
- Filter variable details.
-
getFilter
-
setOrderBy
-
getOrderBy
-
setLogicClass
-
getLogicClass
-
setBaseFontSize
public void setBaseFontSize(int baseFontSize) -
getBaseFontSize
-
getBaseFontSizeValues
-
getBaseFontSizeValue
-
getBaseFontSizeValue
-
setOrientation
public void setOrientation(int orientation) -
getOrientation
-
getOrientationValues
-
getOrientationValue
-
getOrientationValue
-
validateData
Description copied from class:StoredObject
This will be invoked by the system whenever the object is saved to the DB. It will be invoked in all cases, while creating new objects and updating/deleting/un-deleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateData
in className
- Parameters:
tm
- Current transaction manager.- Throws:
Exception
- If data is invalid.
-
getClassForData
-
getClassForLogic
-
getColumns
-
create
-
create
public static ReportDefinition create(Class<? extends StoredObject> dataClass, Iterable<String> columns) -
setExecutable
-
setCustomColumnSupplier
-
listObjects
-
listObjects
-
listObjects
public <T extends StoredObject> ObjectIterator<T> listObjects(String extraCondition, String orderBy) -
getQueryBuilder
-
getQueryBuilder
-
getQueryBuilder
public <T extends StoredObject> QueryBuilder<T> getQueryBuilder(String extraCondition, String orderBy)
-