public class DBReport extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
A report is a made up of a query and a layout.
|
static java.lang.String |
DBCLASS_NAME
A report is a made up of a query and a layout.
|
static java.lang.String |
DEBUG_EXTRA_INFO_IN_THREAD
System property to control if we should put much more info into the thread name ?
|
static Version |
VERSION |
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBReport(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static DBReport |
create(MutableDataSource mds)
Make a new instance of this class.
|
DBReportCriteria |
createCriteria()
Adds a new criteria to the report
|
DBResult |
doSearch(DataSource rds,
DBCriteria prefCriteria,
java.lang.String prefSortOrder)
Builds a result set based on the settings/criteria on this report
|
DBResult |
doSearch(DataSource rds,
DBCriteria prefCriteria,
java.lang.String prefSortOrder,
SDBReportLayout layout)
Builds a result set based on the settings/criteria on this report
|
DBResult |
doSearch(DataSource rds,
DBCriteria prefCriteria,
java.lang.String prefSortOrder,
SDBReportLayout layout,
java.lang.Object plugin)
Builds a result set based on the settings/criteria on this report
|
protected void |
extCheckDeleteAccess()
Additional access checking for delete access of this object.
|
protected void |
extCheckModifyAccess()
Additional access checking for write access of this object.
|
protected GlobalKey |
extGetDerivedGlobalKey(DBField field,
FldParams params)
OVERRIDE This method to return a derived global key.
|
protected void |
extPreValidate()
OVERRIDE To add functionality to before validation is called.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
DBClassAbstract |
findBaseClass(java.lang.String... args)
The base class.
|
DBReportFolder |
findFolderId(java.lang.String... args)
Folder Id.
|
static DBReport |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
SDBReportScreen |
findLayout(java.lang.String... args)
Specifies the report layout to be used when displaying the search
results.
|
DBClassAbstract |
findLinkedClass(java.lang.String... args)
The linked class.
|
static java.lang.Object |
findPlugin(java.lang.String className)
get the plugin
|
java.lang.String |
getAdditionalCriteria(java.lang.String... args) |
java.util.Date |
getArchiveTS(java.lang.String... args) |
java.lang.String |
getAttributes(java.lang.String... args) |
DBClassAbstract |
getBaseClass(java.lang.String... args) |
GlobalKey |
getBaseClassGid()
Determines the GID of the base class
|
DBClassConcrete |
getBaseDBClassConcrete()
Determines the class associated with this report
|
ExportFieldDef[] |
getColumns(DBResult result)
Determines which columns should appear on a the report
|
java.lang.String |
getDescription(java.lang.String... args) |
java.lang.String |
getExtraCriteria(java.lang.String... args) |
DBReportFolder |
getFolderId(java.lang.String... args) |
int |
getID(java.lang.String... args) |
SDBReportScreen |
getLayout(java.lang.String... args) |
DBClassAbstract |
getLinkedClass(java.lang.String... args) |
java.lang.String |
getName(java.lang.String... args) |
int |
getOne(java.lang.String... args) |
DBQuery |
getQuery(DataSource rds,
DBCriteria prefCriteria) |
java.lang.String |
getRawBaseClass(java.lang.String... args) |
int |
getSeqNr(java.lang.String... args) |
java.lang.String |
getSortCriteria(java.lang.String... args) |
java.lang.String |
getSortField(java.lang.String... args) |
boolean |
isFinalFg(java.lang.String... args) |
boolean |
isKeyWordCriteria(java.lang.String... args) |
boolean |
isSortDesc(java.lang.String... args) |
DBReportCriteria[] |
listCriterias()
Returns the list of criteria associated with this report
|
static DBQuery<DBReport> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBReport |
setAdditionalCriteria(java.lang.String value,
java.lang.String... args) |
DBReport |
setArchiveTS(java.util.Date value,
java.lang.String... args) |
DBReport |
setAttributes(java.lang.String value,
java.lang.String... args) |
DBReport |
setBaseClass(com.aspc.dal.dbobj.DBClassAbstract value,
java.lang.String... args) |
DBReport |
setDescription(java.lang.String value,
java.lang.String... args) |
DBReport |
setExtraCriteria(java.lang.String value,
java.lang.String... args) |
DBReport |
setFinalFg(boolean value,
java.lang.String... args) |
DBReport |
setFolderId(com.aspc.dal.dbobj.folders.DBReportFolder value,
java.lang.String... args) |
DBReport |
setID(int value,
java.lang.String... args) |
DBReport |
setKeyWordCriteria(boolean value,
java.lang.String... args) |
DBReport |
setLayout(com.supertracker.dal.screenobj.SDBReportScreen value,
java.lang.String... args) |
DBReport |
setName(java.lang.String value,
java.lang.String... args) |
DBReport |
setRawBaseClass(java.lang.String value,
java.lang.String... args) |
DBReport |
setSeqNr(int value,
java.lang.String... args) |
DBReport |
setSortCriteria(java.lang.String value,
java.lang.String... args) |
DBReport |
setSortDesc(boolean value,
java.lang.String... args) |
DBReport |
setSortField(java.lang.String value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String DEBUG_EXTRA_INFO_IN_THREAD
public static final Version VERSION
public DBReport(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public DBReport setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAdditionalCriteria(java.lang.String... args)
@Nonnull public DBReport setAdditionalCriteria(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getArchiveTS(java.lang.String... args)
@Nonnull public DBReport setArchiveTS(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAttributes(java.lang.String... args)
@Nonnull public DBReport setAttributes(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBClassAbstract getBaseClass(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBClassAbstract findBaseClass(java.lang.String... args) throws NotFoundException
DBClassAbstract
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBClassAbstract was not found@Nonnull public DBReport setBaseClass(com.aspc.dal.dbobj.DBClassAbstract value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDescription(java.lang.String... args)
@Nonnull public DBReport setDescription(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getExtraCriteria(java.lang.String... args)
@Nonnull public DBReport setExtraCriteria(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isFinalFg(java.lang.String... args)
@Nonnull public DBReport setFinalFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBReportFolder getFolderId(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBReportFolder findFolderId(java.lang.String... args) throws NotFoundException
DBReportFolder
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBReportFolder was not found@Nonnull public DBReport setFolderId(com.aspc.dal.dbobj.folders.DBReportFolder value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isKeyWordCriteria(java.lang.String... args)
@Nonnull public DBReport setKeyWordCriteria(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SDBReportScreen getLayout(java.lang.String... args)
@CheckReturnValue @Nonnull public final SDBReportScreen findLayout(java.lang.String... args) throws NotFoundException
SDBReportScreen
(Integer, Searchable)args
- the optional argumentsNotFoundException
- SDBReportScreen was not found@Nonnull public DBReport setLayout(com.supertracker.dal.screenobj.SDBReportScreen value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBClassAbstract getLinkedClass(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBClassAbstract findLinkedClass(java.lang.String... args) throws NotFoundException
DBClassAbstract
(Integer, Derived, Searchable)args
- the optional argumentsNotFoundException
- DBClassAbstract was not found@CheckReturnValue @Nonnull public java.lang.String getName(java.lang.String... args)
@Nonnull public DBReport setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getOne(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getRawBaseClass(java.lang.String... args)
@Nonnull public DBReport setRawBaseClass(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getSeqNr(java.lang.String... args)
@Nonnull public DBReport setSeqNr(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSortCriteria(java.lang.String... args)
@Nonnull public DBReport setSortCriteria(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isSortDesc(java.lang.String... args)
@Nonnull public DBReport setSortDesc(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSortField(java.lang.String... args)
@Nonnull public DBReport setSortField(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBReport create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<DBReport> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBReport findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problempublic DBReportCriteria createCriteria()
@Nullable @CheckReturnValue public DBClassConcrete getBaseDBClassConcrete()
public GlobalKey getBaseClassGid()
@CheckReturnValue @Nullable protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
DBObject
extGetDerivedGlobalKey
in class DBObject
field
- The field that is being changedparams
- The extra parametersjava.lang.Exception
- A serious problem. In general validation is done later.@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
DBObject
extPreValidate
in class DBObject
java.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess() throws DBAccessException
DBObject
extCheckModifyAccess
in class DBObject
DBAccessException
- No access to modify@OverridingMethodsMustInvokeSuper protected void extCheckDeleteAccess() throws DBAccessException
DBObject
extCheckDeleteAccess
in class DBObject
DBAccessException
- No access to deletepublic DBReportCriteria[] listCriterias() throws java.lang.Exception
java.lang.Exception
- - a serious error@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to be validatedjava.lang.Exception
- A serious problempublic DBResult doSearch(DataSource rds, DBCriteria prefCriteria, java.lang.String prefSortOrder) throws java.lang.Exception
prefCriteria
- preferred criteriaprefSortOrder
- preference sort orderrds
- - the datasource to be used when searchingjava.lang.Exception
- - a serious errorpublic DBResult doSearch(DataSource rds, DBCriteria prefCriteria, java.lang.String prefSortOrder, SDBReportLayout layout) throws java.lang.Exception
prefCriteria
- preferred criteriaprefSortOrder
- preference sort orderrds
- - the datasource to be used when searchinglayout
- The SDBReportLayoutjava.lang.Exception
- - a serious errorpublic final DBResult doSearch(DataSource rds, DBCriteria prefCriteria, java.lang.String prefSortOrder, SDBReportLayout layout, java.lang.Object plugin) throws java.lang.Exception
prefCriteria
- preferred criteriaprefSortOrder
- preference sort orderrds
- - the datasource to be used when searchinglayout
- The SDBReportLayoutplugin
- SDBReportScreen pluginjava.lang.Exception
- - a serious errorpublic DBQuery getQuery(DataSource rds, DBCriteria prefCriteria) throws java.lang.Exception
java.lang.Exception
public ExportFieldDef[] getColumns(DBResult result) throws java.lang.Exception
result
- - The result set that contains thejava.lang.Exception
- a serious problempublic static java.lang.Object findPlugin(@Nullable java.lang.String className) throws java.lang.Exception
className
- the class namejava.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.