public abstract class DBClassAbstract extends DBObject implements ReloadEventListener, DependanceListener
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
DBClassAbstract
|
static java.lang.String |
DBCLASS_NAME
DBClassAbstract
|
protected DBClass[][] |
holderClassList
The secondary cache of implemented classes.
|
protected DBField[][] |
holderFieldList
Internal cache holder which is exposed for DBRawClass.
|
protected DBField[][] |
holderFieldListSorted
Internal cache holder which is exposed for DBRawClass.
|
protected java.util.HashMap[] |
holderFieldMap
A secondary cache of all the fields.
|
protected java.lang.Class[] |
holderJavaClass
A secondary cache of all the java class.
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBClassAbstract(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache(GlobalKey key)
clear the cache.
|
void |
eventDependantAdded(GlobalKey addedKey,
GlobalKey sourceFieldKey)
Used to clear the cache of fields for this class
|
void |
eventDependantRemoved(GlobalKey removedKey,
GlobalKey sourceFieldKey)
A field/class was deleted
|
void |
eventReload(DBObject obj)
A watched field has been changed
|
protected void |
extFixUp()
correct the has interface
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Returns the derived value of this field.
|
protected void |
extPreValidate()
update the hasWorkflow fields.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Validates each field in this record.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
protected void |
fetchInterfaceFields(java.util.HashMap map)
Add the interface fields
|
protected void |
fetchTemplateFields(java.util.HashMap map)
Add the template fields
|
DBField |
findDBField(java.lang.String name)
find the DBField
|
static DBClassAbstract |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
GlobalKeyId |
getClassId()
A short hand method to get this class id
|
DBClass[] |
getClassList()
A safe version of list class that copies the class list
|
abstract DBField |
getDBField(GlobalKey gKey)
returns the DBField for this global key
|
abstract DBField |
getDBField(java.lang.String name)
Get the DBField
|
abstract DBField[] |
getDBFieldList()
The list of fields in class
|
abstract DBField[] |
getDBFieldListAll()
The list of fields in class
|
java.lang.String |
getDeprecatedTx(java.lang.String... args) |
java.lang.String |
getDescription(java.lang.String... args) |
java.lang.String |
getDisplayName(java.lang.String... args) |
java.lang.String |
getFullName(java.lang.String... args) |
abstract java.lang.Class |
getJavaClass()
Returns the java class within the available source based on the class name
|
abstract java.lang.String |
getJavaClassName()
The java class name eg.
|
java.lang.String |
getName()
Get the name for this DB class.
|
java.lang.String |
getNameForDisplay(java.lang.String... args) |
java.lang.String |
getNotes(java.lang.String... args) |
boolean |
hasDBField(GlobalKey fieldGid)
Does this DBClass or any inherited classes have the field.
|
boolean |
hasDBField(java.lang.String name)
Does this DBClass or any inherited classes have the field.
|
boolean |
hasInterfaces(java.lang.String... args) |
boolean |
isDeprecated(java.lang.String... args) |
boolean |
isFinalFg(java.lang.String... args) |
static DBQuery<DBClassAbstract> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBClassAbstract |
setClassId(int value,
java.lang.String... args) |
DBClassAbstract |
setDeprecated(boolean value,
java.lang.String... args) |
DBClassAbstract |
setDeprecatedTx(java.lang.String value,
java.lang.String... args) |
DBClassAbstract |
setDescription(java.lang.String value,
java.lang.String... args) |
DBClassAbstract |
setDisplayName(java.lang.String value,
java.lang.String... args) |
DBClassAbstract |
setFinalFg(boolean value,
java.lang.String... args) |
DBClassAbstract |
setHasInterfaces(boolean value,
java.lang.String... args) |
DBClassAbstract |
setJavaClassName(java.lang.String value,
java.lang.String... args) |
DBClassAbstract |
setName(java.lang.String value,
java.lang.String... args) |
DBClassAbstract |
setNotes(java.lang.String value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, 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, toString, touch, undelete, validateField, validateRecord, validateSubType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
registerWatchedObject
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
protected DBField[][] holderFieldList
protected DBField[][] holderFieldListSorted
protected DBClass[][] holderClassList
protected java.util.HashMap[] holderFieldMap
protected java.lang.Class[] holderJavaClass
public DBClassAbstract(@Nonnull DBClass def, @Nonnull DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@Nonnull public DBClassAbstract setClassId(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDeprecated(java.lang.String... args)
@Nonnull public DBClassAbstract setDeprecated(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDeprecatedTx(java.lang.String... args)
@Nonnull public DBClassAbstract setDeprecatedTx(java.lang.String 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 DBClassAbstract setDescription(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayName(java.lang.String... args)
@Nonnull public DBClassAbstract setDisplayName(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 DBClassAbstract setFinalFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFullName(java.lang.String... args)
@CheckReturnValue public boolean hasInterfaces(java.lang.String... args)
@Nonnull public DBClassAbstract setHasInterfaces(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBClassAbstract setJavaClassName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBClassAbstract setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getNameForDisplay(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getNotes(java.lang.String... args)
@Nonnull public DBClassAbstract setNotes(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBQuery<DBClassAbstract> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBClassAbstract 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 problem@CheckReturnValue @Nonnull public final GlobalKeyId getClassId()
@CheckReturnValue @Nonnull public java.lang.String getName()
@CheckReturnValue @Nonnull public final DBClass[] getClassList()
@CheckReturnValue public final boolean hasDBField(@Nonnull GlobalKey fieldGid)
fieldGid
- The field to check.@CheckReturnValue public final boolean hasDBField(@Nonnull java.lang.String name)
name
- The field name@CheckReturnValue @Nullable protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
params
- The field parameters.field
- The field to getjava.lang.Exception
- A serious problempublic final void eventReload(@Nonnull DBObject obj)
eventReload
in interface ReloadEventListener
obj
- The field that was reload.public final void eventDependantAdded(@Nonnull GlobalKey addedKey, @Nonnull GlobalKey sourceFieldKey)
eventDependantAdded
in interface DependanceListener
addedKey
- The dependent addedsourceFieldKey
- The field that points to this objectpublic final void eventDependantRemoved(@Nonnull GlobalKey removedKey, @Nonnull GlobalKey sourceFieldKey)
eventDependantRemoved
in interface DependanceListener
removedKey
- The field was removed.sourceFieldKey
- The linked field@Nonnull @CheckReturnValue public abstract DBField[] getDBFieldList()
@Nonnull @CheckReturnValue public abstract DBField[] getDBFieldListAll()
@CheckReturnValue @Nullable public abstract DBField getDBField(@Nullable java.lang.String name)
name
- The name of the field@CheckReturnValue @Nonnull public final DBField findDBField(@Nonnull java.lang.String name)
name
- The name of the field@CheckReturnValue @Nullable public abstract DBField getDBField(GlobalKey gKey)
gKey
- The key to find.@CheckReturnValue @Nonnull public abstract java.lang.Class getJavaClass() throws java.lang.Exception
java.lang.Exception
- A serious problempublic void clearCache(@Nullable GlobalKey key)
clearCache
in class DBObject
key
- The key@CheckReturnValue @Nonnull public abstract java.lang.String getJavaClassName()
@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
DBObject
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The current validation listfield
- The field to validatejava.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
extPreValidate
in class DBObject
java.lang.Exception
- A Serious problem@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
protected void fetchInterfaceFields(@Nonnull java.util.HashMap map) throws java.lang.Exception
map
- The map to add them tojava.lang.Exception
- A serious problem.protected void fetchTemplateFields(@Nonnull java.util.HashMap map) throws java.lang.Exception
map
- The map to add them tojava.lang.Exception
- A serious problem.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.