public final class DBRawClass extends DBClass
DBObject.DenormalizeAction
DBCLASS_GID, DBCLASS_NAME, holderDBClassSyncMap, holderDBStoredResult
cacheRowId
holderClassList, holderFieldList, holderFieldListSorted, holderFieldMap, holderJavaClass
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBRawClass(int specialClassId,
DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
checkDependances(java.lang.Object o)
Checks that the DBObject is of the correct java class
for this DBClass and inherited DBClasses.
|
java.lang.Object |
extGetValue(DBField field,
FldParams params)
This is the PRIMARY "get" method which returns the processed field value for this object.
|
protected void |
fetchInterfaceFields(java.util.HashMap map)
Add the interface fields
|
DBField[] |
getDBFieldList()
The list of fields in class
|
DBField[] |
getDBFieldListAll()
The list of fields in this class
|
java.lang.String |
getJavaClassName()
The java class name eg.
|
java.lang.String |
getName()
TODO load name and javaClassName from
|
GlobalKey |
getRawGlobalKey() |
GlobalKey |
getRawParentGlobalKey() |
long |
getRawRowId() |
static java.lang.String |
getRData(java.util.Hashtable data,
java.lang.String name) |
GlobalKey |
getRootGlobalKey()
The root class's global key.
|
VirtualDB |
getSrcDataBase()
The layer this class was created in
|
DBClass[] |
getSubClasses()
Retrieve a list of classes that are direct sub classes of this class
GLOBAL - to get the dbClass child list we need to pass in the current virtualDB
|
DBClass[] |
getSubClassesAll()
Retrieve a list of all descendent sub classes
|
boolean |
hasSelectAccess() |
boolean |
isMandatory(java.lang.String name)
TODO: this should be determined by the details in DBField
|
boolean |
isRawLayerExcluded(int dbId)
Is DBClass or DBField excluded from this layer ?
|
java.lang.String |
toString()
The full name of this DB class
|
checkFullList, clearCache, clearCache, clearRootHolder, createDBObject, disableFieldRecycler, displayName, eventFieldUpdated, extCanDeleteDependantObject, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extPostDeleteRecord, extPostSaveRecord, extPreValidate, extValidateField, extValidateRecord, findClassForTable, findExternalDataSource, findExternalMode, findTemplate, getArchiveDataLoaderMethod, getClassMap, getDataLoaderMethod, getDBFieldOnChangeList, getDuplicateWarningFields, getEstimatedMemorySize, getExternalDataSource, getExternalManagerClass, getExternalMode, getExternalTable, getJavaClassConstructor, getKeywordFields, getLastObjModifiedTime, getLinkedFields, getLoadSequence, getRecentLinksPrimer, getRootDBClass, getRootHolder, getRootId, getTableExt, getTemplate, getTransactionSystemMap, hasArrayField, isAbstract, isAbstractFg, isDropCacheWhenRemotelyChanged, isGenerateGWT, isIgnoreJournalData, isIndexJournalData, isLayerExcluded, isNoChangesInLayer, isRecordNoIntialData, isRecordNoJournalData, isRecordNoJournalRecord, listDBStoredResult, makeClassSQLClause, makeClassSQLClauseLeftJoin, makeRootHolder, makeRootId, setAbstractFg, setDisableFieldRecycler, setDropCacheWhenRemotelyChanged, setDuplicateWarningFields, setEstimatedMemorySize, setExternalDataSource, setExternalManagerClass, setExternalMode, setExternalTable, setGenerateGWT, setIgnoreJournalData, setIndexJournalData, setLastObjModifiedTime, setLoadSequence, setRecentLinksPrimer, setRecordNoIntialData, setRecordNoJournalData, setRecordNoJournalRecord, setTemplate
findEmbeddedLinkage, findParentGid, findRootClass, getACLList, getDBEventListAll, getDBField, getDBField, getDBFieldListAllSorted, getDBModuleList, getDBModuleListAll, getDefaultRestFields, getEmbeddedLinkage, getEventList, getExcludedLayersList, getExcludedLayersListAll, getInwardLinks, getJavaClass, getKeyField, getParentDBClassConcrete, getParentGid, getParentGlobalKey, getRootClass, getRootClassConcrete, getSearchPlanMethod, isBase, isInModule, isInstanceOf, isInstanceOf, isStaticList, makeRowId, setDefaultRestFields, setEmbeddedLinkage, setParentGid, setStaticList
eventDependantAdded, eventDependantRemoved, eventReload, fetchTemplateFields, findDBField, findKey, getClassId, getClassList, getDeprecatedTx, getDescription, getDisplayName, getFullName, getNameForDisplay, getNotes, hasDBField, hasDBField, hasInterfaces, isDeprecated, isFinalFg, makeQuery, setClassId, setDeprecated, setDeprecatedTx, setDescription, setDisplayName, setFinalFg, setHasInterfaces, setJavaClassName, setName, setNotes
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extIsMandatory, extIsOnChange, extMarkSavePoint, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, 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, touch, undelete, validateField, validateRecord, validateSubType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
registerWatchedObject
public static final long RAW_ABSTRACT_CLASS_ROW_UID
public static final long RAWCLASS_ROW_UID
public static final long RAWFIELD_ROW_UID
public static final long RAWCLASS_CONCRETE_ROW_UID
public static final long RAW_TEMPLATE_ROW_UID
public static final int ASPC_ENGINE_ID
public static final int RAWCLASS_OBJECT
public static final int RAWCLASS_CONCRETE_OBJECT
public static final int RAW_TEMPLATE_OBJECT
public static final int RAW_ABSTRACT_CLASS_OBJECT
public static final int RAWCLASS_FIELD
public static final int RAWFIELD_ID
public static final int RAWFIELD_CLASS_GID
public static final int RAWFIELD_NAME
public static final int RAWFIELD_TYPE
public static final int RAWFIELD_SUB_TYPE
public static final int RAWFIELD_SEARCH
public static final int RAWFIELD_INC
public static final int RAWFIELD_KEY
public static final int RAWFIELD_DERVIVED
public static final int RAWFIELD_DESC
public static final int RAWFIELD_AUTOENTERPREDEFINED
public static final int RAWFIELD_AUTOENTER
public static final int RAWFIELD_MANDATORY
public static final int RAWFIELD_UNIQUE
public static final int RAWFIELD_LINKEDCLASS
public static final int RAWFIELD_ONCHANGEFIELD
public static final int RAWFIELD_KEY_WORD
public static final int RAWFIELD_VALIDATION_MESSAGE
public static final int CLASSFIELD_ID
public static final int CLASSFIELD_PARENT_GID
public static final int CLASSFIELD_NAME
public static final int CLASSFIELD_JAVANAME
public static final int CLASSFIELD_MODULES
public static final int CLASSFIELD_ROOT_CLASS
public static final int CLASSFIELD_TEMPLATE
public static final GlobalKey CLASS_GKEY
public static final GlobalKey CONCRETE_CLASS_GKEY
public static final GlobalKey TEMPLATE_CLASS_GKEY
public static final GlobalKey ABSTRACT_CLASS_GKEY
public static final GlobalId CLASS_GID
public static final GlobalId ABSTRACT_CLASS_GID
public static final GlobalId CONCRETE_CLASS_GID
public static final GlobalId TEMPLATE_CLASS_GID
public static final GlobalId FIELD_GID
public static final GlobalKey FIELD_GKEY
public static final GlobalKey RAWFIELD_CLASS_GID_GKEY
public static final GlobalKey RAWFIELD_ID_GKEY
public static final GlobalKey RAWFIELD_NAME_GKEY
public static final GlobalKey RAWFIELD_DESC_GKEY
public static final GlobalKey RAWFIELD_TYPE_GKEY
public static final GlobalKey RAWFIELD_KEY_WORD_GKEY
public static final GlobalKey RAWFIELD_SUB_TYPE_GKEY
public static final GlobalKey RAWFIELD_SEARCH_GKEY
public static final GlobalKey RAWFIELD_KEY_GKEY
public static final GlobalKey RAWFIELD_DERVIVED_GKEY
public static final GlobalKey RAWFIELD_INC_GKEY
public static final GlobalKey RAWFIELD_MANDATORY_GKEY
public static final GlobalKey RAWFIELD_UNIQUE_GKEY
public static final GlobalKey RAWFIELD_AUTOENTERPREDEFINED_GKEY
public static final GlobalKey RAWFIELD_AUTOENTER_GKEY
public static final GlobalKey RAWFIELD_LINKEDCLASS_GKEY
public static final GlobalKey RAWFIELD_ONCHANGEFIELD_GKEY
public static final GlobalKey RAWFIELD_VALIDATION_MESSAGE_GKEY
public static final GlobalKey CLASSFIELD_ID_GKEY
public static final GlobalKey CLASSFIELD_NAME_GKEY
public static final GlobalKey CLASSFIELD_PARENT_GID_GKEY
public static final GlobalKey CLASSFIELD_JAVANAME_GKEY
public static final GlobalKey CLASSFIELD_ROOT_CLASS_GKEY
public static final GlobalKey CLASSFIELD_TEMPLATE_GKEY
public static DBRawClass rawDBClass
public DBRawClass(int specialClassId, DataSource dataSource) throws java.lang.Exception
specialClassId
- dataSource
- the data sourcejava.lang.Exception
- a serious problempublic VirtualDB getSrcDataBase()
public long getRawRowId()
public GlobalKey getRawParentGlobalKey()
public GlobalKey getRootGlobalKey()
DBClass
getRootGlobalKey
in class DBClass
public GlobalKey getRawGlobalKey()
public java.lang.String getName()
getName
in class DBClassAbstract
@CheckReturnValue @Nonnull public java.lang.String toString()
DBClass
public java.lang.Object extGetValue(DBField field, FldParams params)
DBObject
extGetValue
method the SAME value should be return.
Examples of use are to blank fields that you don't have access to or to return ***** instead of the password. The
database search uses getPureField which is final so you could do a search for a field value
even if it is being blanked. Real security can only be given by creating an associated record
and supplying a ACL to restrict access to it.extGetValue
in class DBObject
field
- The fieldparams
- the field parameterspublic java.lang.String getJavaClassName()
DBClassConcrete
getJavaClassName
in class DBClassConcrete
public boolean hasSelectAccess()
public void checkDependances(java.lang.Object o) throws java.lang.Exception
DBClassConcrete
checkDependances
in class DBClassConcrete
o
- java.lang.Exception
- a serious problempublic DBClass[] getSubClasses() throws java.lang.Exception
DBClass
getSubClasses
in class DBClass
java.lang.Exception
- a serious problempublic DBClass[] getSubClassesAll() throws java.lang.Exception
DBClass
getSubClassesAll
in class DBClass
java.lang.Exception
- a serious problempublic boolean isRawLayerExcluded(int dbId)
dbId
- protected void fetchInterfaceFields(java.util.HashMap map) throws java.lang.Exception
DBClassAbstract
fetchInterfaceFields
in class DBClassAbstract
map
- java.lang.Exception
- a serious problempublic DBField[] getDBFieldListAll()
getDBFieldListAll
in class DBClassConcrete
public DBField[] getDBFieldList()
DBClassConcrete
getDBFieldList
in class DBClassConcrete
public static java.lang.String getRData(java.util.Hashtable data, java.lang.String name)
data
- name
- public boolean isMandatory(java.lang.String name)
name
- stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.