@ParametersAreNonnullByDefault public class DBObject extends java.lang.Object implements SecondaryCacheGroup
Extending a DBObject |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Modifier and Type | Class and Description |
|---|---|
static class |
DBObject.DenormalizeAction
De-normalize action
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_MARVIN
MARVIN mode
|
DBClass |
dbClass
the class of this object
|
DataSource |
ds
the datasource for this object
|
protected static FldParams |
NO_LOOP_PARAMS
don't loop
|
| Constructor and Description |
|---|
DBObject(DBClass theClass,
DataSource dataSource)
Creates new DBObject.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReloadEventListener(ReloadEventListener listener)
Adds a object to be notified when this object is reloaded.
|
ValidationList |
archiveCheck()
check the archive version to the current version.
|
void |
autoEnterCreate(FldParams params)
Standard method for Populating the fields when the object is created.
|
java.lang.Object |
calculateValue(DBField field,
FldParams params)
Calculate the field value.
|
java.lang.Object |
calculateValue(java.lang.String name)
Calls the primary getField
|
java.lang.Object |
calculateValue(java.lang.String name,
FldParams params)
Calls the primary getField
|
boolean |
callingRestoreByJournal()
we are currently calling restore by journal
|
boolean |
changeThreadMode(ThreadCop.MODE mode)
change the thread mode for this object
|
void |
checkCreateAccess()
Checks the user has access to create an object.
|
void |
checkDelete()
Checks if this object may be deleted.
|
void |
checkDeleteAccess()
Checks the user has delete access to this object
|
void |
checkModifyAccess()
Check the user has MODIFY access to this object.
|
void |
checkModifyAccess(DBField field)
Checks the user has MODIFY access to this field of this object
|
void |
checkReadAccess()
Checks the users select access.
|
protected void |
clearCache(GlobalKey changedKey)
Automatically called for eventDataLoaded() with this GlobalKey and getCleanVersion() with null for the global key.
|
DBObject |
copy(MutableDataSource mds)
copy the object
|
void |
copyFields(DBObject orig)
Copies the fields from another DBObject into this one.
|
boolean |
copyIncludeField(DBObject orig,
DBField field)
To filter the fields not to copy.
|
DBObject[] |
copyInwardLinks(DBObject orig,
DBField linkedField)
Copies the objects pointing to this object.
|
void |
delete()
Mark this object for deletion ( when save is called for the mutable data source)
|
SoapResultSet |
denormalizedResult(java.lang.String code)
NO ACCESS CONTROL & SHARED RESULTS & CURRENT SAVED RESULTS ONLY
|
java.lang.String |
displayLogName()
The human readable object name in the logs.
|
java.lang.String |
displayName()
The display name
|
java.lang.String |
displayValue()
Displays the value of the default display field
|
DBResult |
doSearch(java.lang.String thePath)
A short hand method of getting a result set for a path from this object.
|
void |
dump()
DEBUG dump of the current object's fields values to std.
|
boolean |
equals(java.lang.Object o)
Please don't overload this method as it'll cause odd errors where internal messages will be lost.
|
protected void |
eventDataLoaded()
When the underlying DBData is changed/ loaded.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
OVERRIDE This method to be notified when a field changes.
|
protected void |
extAutoEnterCreate()
Extend this method to add functionality when a new DBObject is created.
You may need to create a FldParams, and setIsAutoEntered(true)
so that system does not misunderstand that this object is changed by user. |
protected boolean |
extCanDeleteDependantObject(DBObject o)
OVERRIDE This method to Alter the default behaviour of check if we can remove a dependent object.
|
protected void |
extCheckCreateAccess()
Additional access checking for create access of this object.
|
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 void |
extCheckModifyAccess(DBField field)
Additional access checking for write access for a field of this object.
|
protected void |
extCheckReadAccess()
Additional access checking for read access of this object.
|
protected void |
extCopy(DBObject target)
Additional functionality when an object is copied.
|
protected void |
extDelete()
Additional functionality when an object is marked for deletion by calling delete().
|
protected void |
extDeleteRecord(long transNr)
OVERRIDE this method to add functionality to stSoftware WHILE deleting the record from the database.
|
protected void |
extFixUp()
The extended fix up routine
|
protected GlobalKey |
extGetDerivedGlobalKey(DBField field,
FldParams params)
OVERRIDE This method to return a derived global key.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
OVERRIDE This method for all objects with derived fields that are NOT linked.
|
protected java.lang.Object |
extGetValue(DBField field,
FldParams params)
This is the PRIMARY "get" method which returns the processed field value for this object.
|
protected boolean |
extIsMandatory(DBField field)
OVERRIDE This method to specify fields should be mandatory under certain conditions.
|
protected boolean |
extIsOnChange(DBField field)
OVERRIDE This method to specify that when a field is updated it will affect other fields.
|
protected void |
extMarkSavePoint(java.lang.String id)
Mark the save point which we can rollback to later.
|
protected void |
extPostDeleteRecord(long transNr)
OVERRIDE this method to add functionality to stSoftware AFTER deleting the record from the database.
|
protected void |
extPostSaveRecord(long transNr)
OVERRIDE this method to add functionality to stSoftware AFTER saving the record to the database.
|
protected void |
extPreDeleteRecord()
OVERRIDE this method to add functionality to stSoftware BEFORE deleting a record from the database.
|
protected void |
extPreSaveRecord()
OVERRIDE this method to add functionality to stSoftware BEFORE saving the record to the database.
|
protected void |
extPreValidate()
OVERRIDE To add functionality to before validation is called.
|
protected void |
extPreValidateDelete()
OVERRIDE To add functionality to before validation is called.
|
protected void |
extRaiseEvents()
raise the events
|
protected void |
extRollbackTo(java.lang.String id)
Rollback to save point.
|
protected void |
extSaveRecord(long transNr)
OVERRIDE this method to add functionality to stSoftware WHILE saving the record to the database.
|
protected void |
extSetValue(DBField field,
java.lang.Object currentValue,
FldParams params)
OVERRIDE This method to filter ALL public calls to SetValue.
|
protected void |
extUndelete()
Additional functionality when an object is undeleted.
|
protected void |
extValidateDelete(ValidationList list)
Extend this method to add validation to a record then deleted.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for particular field OVERRIDE THIS METHOD TO ADD VALIDATIONS FOR A FIELD.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
Holder |
fetchLinkHolder(DBClass sourceClass,
DBField sourceField)
Returns the holder for a the inwards links.
|
GlobalKey |
findGlobalKey(DBField field)
Returns the GlobalKey for the linked object via the passed field name.
|
GlobalKey |
findGlobalKey(DBField field,
FldParams params)
Returns the GlobalKey for the linked object via the passed field name.
|
GlobalKey |
findGlobalKey(java.lang.String fieldName)
Returns the GlobalKey for the linked object via the passed field name.
|
GlobalKey |
findGlobalKey(java.lang.String fieldName,
FldParams params)
Returns the GlobalKey for the linked object via the passed field name.
|
DBObject |
findLinkedObject(DBField field,
FldParams params)
Returns the linked object for the passed field
|
DBObject |
findLinkedObject(java.lang.String fieldName)
Returns the linked object for the passed field
|
DBObject |
findLinkedObject(java.lang.String fieldName,
FldParams params)
Returns the linked object for the passed field
|
DBDataInterface |
findRawData() |
void |
fireEventDataLoaded()
INTERNAL USE ONLY
This method is called when the underlying DBData is changed / loaded. |
void |
fixUp()
calls the fix up routines for this object
|
long |
forceLockedTransaction()
Use the current transaction number when applying the changes to the database.
|
boolean |
getBoolean(DBField field)
Get Boolean
|
boolean |
getBoolean(DBField field,
boolean flag)
Get Boolean
|
boolean |
getBoolean(DBField field,
FldParams params)
The boolean value
|
boolean |
getBoolean(java.lang.String name)
Get Boolean
|
boolean |
getBoolean(java.lang.String name,
boolean flag)
Get Boolean
|
boolean |
getBoolean(java.lang.String name,
FldParams params)
The boolean value for a field
|
ChangedFieldData |
getChangedFieldInfo(DBField field)
Returns a non mutable changed field and corresponding values/keys.
|
ChangedFields |
getChangedFields()
Returns a list of non mutable changed fields and corresponding values/keys.
|
java.util.Date |
getDate(DBField field)
Get Date
|
java.util.Date |
getDate(DBField field,
java.util.Date defaultDate)
Get Date
|
java.util.Date |
getDate(java.lang.String name)
Get Date
|
java.util.Date |
getDate(java.lang.String name,
java.util.Date theDate)
Get Date
|
java.util.Date |
getDate(java.lang.String name,
FldParams params)
Get Date
|
java.lang.Object |
getDefaultValue(DBField field)
Returns the default value for the field.
|
boolean |
getDisableOnChangeEvent()
Is on changed disabled
|
double |
getDouble(DBField field)
Get Double
|
double |
getDouble(DBField field,
double defaultValue)
Get Double
|
double |
getDouble(java.lang.String name)
Get Double
|
double |
getDouble(java.lang.String name,
double defaultValue)
Get Double
|
double |
getDouble(java.lang.String field,
FldParams params)
Get Double
|
double |
getFieldDouble(java.lang.String fieldName,
java.lang.String... args) |
int |
getFieldInt(java.lang.String fieldName,
java.lang.String... args) |
long |
getFieldLong(java.lang.String fieldName,
java.lang.String... args) |
java.lang.String |
getFieldString(java.lang.String fieldName,
java.lang.String... args) |
java.lang.String |
getFormattedString(DBField field,
java.lang.String specificFormat,
FldParams params)
Returns the formatted value of the field.
|
java.lang.String |
getFormattedString(java.lang.String name,
java.lang.String specificFormat,
FldParams params)
Returns the formatted value of the field.
|
GlobalKey |
getGlobalKey()
Returns the GlobalKey for this DBObject.
|
GlobalKey |
getGlobalKey(DBField field)
Returns the GlobalKey for the linked object via the passed field name.
|
GlobalKey |
getGlobalKey(DBField field,
FldParams params)
Returns the GlobalKey for the linked object via the passed field name.
|
GlobalKey |
getGlobalKey(java.lang.String fieldName)
Returns the GlobalKey for the linked object via the passed field name.
|
GlobalKey |
getGlobalKey(java.lang.String fieldName,
FldParams params)
Returns the GlobalKey for the linked object via the passed field name.
|
int |
getInt(DBField field)
Get Int
|
int |
getInt(DBField field,
FldParams params)
Get Int
|
int |
getInt(DBField field,
int defaultValue)
Get Int
|
int |
getInt(java.lang.String name)
Get Int
|
int |
getInt(java.lang.String name,
FldParams params)
Get Int
|
int |
getInt(java.lang.String name,
int defaultValue)
Get Int
|
DBResult |
getInwardLinkage(DBField sourceField,
HintField hint)
Get the cached DBResult set for the linkage passed.
|
java.lang.String |
getKeyString()
The string version of the key
|
java.lang.Object |
getKeyValue()
Returns the key value.
|
DBObject |
getLinkedObject(DBField field,
FldParams params)
Returns the linked object for the passed field
|
DBObject |
getLinkedObject(java.lang.String fieldName)
Returns the linked object for the passed field
|
DBObject |
getLinkedObject(java.lang.String fieldName,
FldParams params)
Returns the linked object for the passed field
|
DBObject |
getLinkedObjectByKey(DBField field,
FldParams params)
get the linked object by key
|
long |
getLinkedRowId(DBField field,
FldParams params)
Returns the row id of the linked object for the passed field
|
long |
getLinkedRowId(java.lang.String fieldName,
FldParams params)
Returns the row id of the linked object for the passed field
|
long |
getLinkedRowIdByData(DBField field,
FldParams params)
find the linked row id using the underlying raw data
|
Holder |
getLinkHolder(DBClass sourceClass,
DBField sourceField)
Returns the holder for a the inwards links.
|
long |
getLockedTransaction()
The locked transaction number
|
long |
getLong(DBField field)
Get Long
|
long |
getLong(DBField field,
FldParams params)
Get Long
|
long |
getLong(DBField field,
long defaultValue)
Get Long
|
long |
getLong(java.lang.String name)
Get Long
|
long |
getLong(java.lang.String name,
FldParams params)
Get Long
|
long |
getLong(java.lang.String name,
long defaultValue)
Get Long
|
MutableArrayValue |
getMutableArrayValue(DBField field)
Get the mutable array value
|
MutableArrayValue |
getMutableArrayValue(java.lang.String name)
Get the mutable array value
|
GlobalKey |
getOriginalKey(DBField field)
Returns the original key for this field from the underlying DBData.
|
java.lang.Object |
getOriginalValue(DBField field)
Returns the original value for this field from the underlying DBData.
|
java.lang.Object |
getOriginalValue(GlobalKey fieldKey)
Returns the original value for this field from the underlying DBData.
|
java.lang.Object |
getProcessedValue(DBField field,
FldParams params) |
java.lang.Object |
getPureValue(DBField field,
FldParams params)
Returns the pure value for this field.
|
DBDataInterface |
getRawData()
INTERNAL USE ONLY
|
java.lang.Object |
getRawValue(DBField field)
Returns the raw value for this field from the underlying DBData or the updated fields.
|
java.lang.Object |
getRawValue(GlobalKey fieldId)
Returns the raw value for this field from the underlying DBData or the updated fields.
|
long |
getRowId()
Returns the unique global row id
MutableDataSource uses a single thread model.
|
java.lang.Long |
getRowKey()
Return the row key ( Long)
|
java.lang.Object |
getSecondaryCacheGroupKey() |
int |
getSrcLayerID()
Returns the source layer of this object
|
java.lang.String |
getString(DBField field)
Get String
|
java.lang.String |
getString(DBField field,
FldParams params)
Get String
|
java.lang.String |
getString(DBField field,
java.lang.String params)
Get String
|
java.lang.String |
getString(java.lang.String name)
Get String
|
java.lang.String |
getString(java.lang.String name,
FldParams params)
Get String
|
java.lang.String |
getString(java.lang.String name,
java.lang.String params)
Get String
|
java.lang.Object |
getValue(DBField field)
calls the primary getValue
|
java.lang.Object |
getValue(DBField field,
FldParams params)
Calls the extGetValue
|
java.lang.Object |
getValue(java.lang.String name)
Calls the primary getField
|
java.lang.Object |
getValue(java.lang.String name,
FldParams params)
Calls the primary getField
|
boolean |
hasAutoChanged(DBField field)
Tests that the ONLY change that has been made is to set to the auto entered value.
|
boolean |
hasAutoChanged(java.lang.String name)
Tests whether the change to the field was an auto enter
|
boolean |
hasChanged()
Has this object changed since last save
Are all fields are blank or the auto entered values ? |
boolean |
hasChangedByUser()
Has the user changed this object since last save
Are all fields are blank or the auto entered values ? |
boolean |
hasChangedByUserField(DBField field)
Tests whether the user has changed the field for this object.
|
boolean |
hasChangedByUserField(java.lang.String name)
Tests whether the user has changed the field for this object.
|
boolean |
hasFieldChanged(DBField field)
Tests weather the field has been changed.
|
boolean |
hasFieldChanged(java.lang.String name)
Tests weather the field has been changed.
|
int |
hashCode()
Please don't overload this method as it'll cause odd errors where internal messages will be lost.
|
boolean |
hasStoredResult(java.lang.String code)
check if the DBObject has the stored result for the given code
|
void |
iCheckDeleteAccess(DataSource realDS)
Internal ONLY
|
void |
iCheckModifyAccess(DataSource realDS)
Internal ONLY
|
void |
iCheckReadAccess(DataSource realDS)
Checks the users select access.
|
java.util.HashMap<java.lang.String,java.lang.String> |
iGetDenormalizedMap()
INTERNAL ONLY
|
protected java.lang.Object |
iGetRawValue(DBField field)
An optimized version of getRawField.
|
void |
iPlaceDenormalizedResult(java.lang.String code,
java.lang.String data)
INTERNAL ONLY
|
void |
iPostSaveOrDeleteRecord(long transNr)
INTERNAL USE ONLY
Called by the Mutable Data Source after all objects have been saved and commited |
void |
iPreSaveOrDeleteRecord()
INTERNAL USE ONLY
Do Auto enter values when a record is about to be saved. |
void |
iPreValidate()
Internal Only
|
void |
iRaiseEvents()
INTERNAL USE ONLY
Add Events to the EventQueue which have conditions that match the current status of the Object. |
void |
iSaveOrDeleteRecord(long transNr)
INTERNAL USE ONLY
Called by the mutable data source to during the save process. |
boolean |
isBrokenLink(DBField field)
Is this field a "broken" link ? Does the field in this object have a value but we can't find the object that it points to.
|
boolean |
isBrokenLink(java.lang.String name)
Is this field a "broken" link ? Does the field in this object have a value but we can't find the object that it points to.
|
boolean |
isChanged()
Has this object changed within this universe ?
|
boolean |
isDataCacheKnownToBeDirty()
is the data cache dirty
|
boolean |
isDeleted()
Is this object marked as deleted ?
|
boolean |
isEmpty()
Is this object empty.
|
protected void |
iSetValue(DBField field,
java.lang.Object userValue,
FldParams params)
If the currentValue is a DBObject it'll be converted to a GlobalKey
|
boolean |
isForceReindex()
Has re-index been called ?
|
boolean |
isKeyWordField(DBField field)
Is this a key word field.
|
boolean |
isMandatory(DBField field)
Is this field mandatory for this object ?
|
boolean |
isNew()
Is this object new
|
boolean |
isNull(DBField field)
Test if this field is null .
|
boolean |
isNull(java.lang.String name)
Test if this field is null .
|
boolean |
isOnChange(DBField field)
Does this field affect other fields when updated
|
boolean |
isReindex()
Is the DBObject marked for re-indexing only ?
|
void |
iValidateRecord(ValidationList list,
java.util.HashMap<GlobalKey,java.util.HashMap<java.lang.String,java.util.ArrayList<DBObject>>> possibleConflicts)
INTERNAL USE ONLY
Performs validations on this record. |
long |
lastTouched()
When was this object last touched ?
|
static ArchiveDataLoader |
makeArchiveDataLoader(VirtualDB layer,
DBClass rootClass,
TransHeader maxTransaction) |
DBObject |
makeClone(DataSource targetDS) |
static DataLoader |
makeDataLoader(VirtualDB layer,
DBClass rootClass,
long[] rowsToLoad) |
org.w3c.dom.Document |
makeDenormalizedDoc(DBStoredResult dbSR,
java.util.Date archiveDate)
get a de-normalized document.
|
java.util.List |
makeLinkedArray(java.lang.String name,
java.lang.String... args) |
protected DBAccessException |
makeModifyAccessException(DBCriteria criteria)
Retrieves a reason why the object cannot be modified
|
static SearchPlan |
makeSearchPlan(DBQuery<DBObject> query)
Allows for specific attributes to be set for the queries
|
WriteProvider |
makeWriteProvider()
Allows for specific attributes to be set for the queries.
|
void |
manualDenormalizeOnSave(DBObject.DenormalizeAction da)
manually denormalize
|
void |
markSavePoint(java.lang.String id)
Mark the save point which we can rollback to later.
|
long |
optLockedTransaction()
If not previously called, use the current transaction when updating the database.
|
void |
registerWatchedObject(DBObject obj)
INTERNAL USE ONLY
When a object is being watched by another object we store a hard link to the watched object from the watcher to prevent watch objects from being GCed. |
void |
reindex()
This allows the indexes for a records to be fixed up
TODO: Should check for dirty cache.
|
void |
releaseDenormalized(java.lang.String code)
NO ACCESS CONTROL & SHARED RESULTS & CURRENT SAVED RESULTS ONLY
|
void |
removeReloadEventListener(ReloadEventListener listener)
Adds a object to be notified when this object is reloaded.
|
void |
restoreByJournal(TransRecord tr,
boolean replayMode)
restore by journal
|
void |
rollbackTo(java.lang.String id)
Rollback to save point.
|
void |
setBoolean(DBField field,
boolean flag)
Update a boolean field by field
|
void |
setBoolean(DBField field,
boolean flag,
FldParams params)
Update a boolean field by field
|
void |
setBoolean(java.lang.String name,
boolean flag)
Update a boolean field by field name.
|
void |
setBoolean(java.lang.String name,
boolean flag,
FldParams params)
Update a boolean field by field name
|
void |
setDisableOnChangeEvent(boolean flag)
Allows the on Change Event to be disabled.
|
void |
setDouble(DBField field,
double value)
Update a double field by field
|
void |
setDouble(java.lang.String name,
double value)
Update a double field by field name
|
void |
setInt(DBField field,
int value)
Update a integer field
|
void |
setInt(java.lang.String name,
int value)
Update a integer field by field name
|
void |
setLong(DBField field,
long value)
Update a long field
|
void |
setLong(java.lang.String name,
long value)
Update a long field by field name
|
void |
setRawData(DBDataInterface data)
INTERNAL USE ONLY
When a DataSource initiates a DBObject the Raw Data is set for existing DBObjects |
void |
setValue(DBField field,
double value)
Update a double field by field
|
void |
setValue(DBField field,
int value)
Update a integer field
|
void |
setValue(DBField field,
long value)
Update a long field
|
void |
setValue(DBField field,
java.lang.Object currentValue)
Update a field value by field.
|
void |
setValue(DBField field,
java.lang.Object currentValue,
FldParams inParams)
Update a field by field
|
void |
setValue(java.lang.String name,
double value)
Update a double field by field name
|
void |
setValue(java.lang.String name,
int value)
Update a integer field by field name
|
void |
setValue(java.lang.String name,
long value)
Update a long field by field name
|
void |
setValue(java.lang.String name,
java.lang.Object value)
Update a field by field name
|
void |
setValue(java.lang.String name,
java.lang.Object value,
FldParams params)
Update a field by field name
|
java.lang.String |
toString()
The description.
|
void |
touch()
Touch this object so that it'll be included when the mutableDataSource is saved.
|
void |
undelete()
undelete this object
|
ValidationItem |
validateField(DBField field)
Validate this field.
|
ValidationList |
validateRecord()
Performs additional validations on this record.
|
protected void |
validateSubType(DBField field,
java.lang.Object value)
http://www.regular-expressions.info/email.html
http://tools.ietf.org/html/rfc2822#section-3.4.1
|
public static final java.lang.String ATTRIBUTE_MARVIN
@Nonnull public final DBClass dbClass
@Nonnull public final DataSource ds
protected static final FldParams NO_LOOP_PARAMS
public DBObject(@Nonnull
DBClass theClass,
@Nonnull
DataSource dataSource)
throws java.lang.Exception
theClass - The class of this objectdataSource - Your current data sourcejava.lang.Exception - Failed to initiate the database object.public java.util.List makeLinkedArray(@Nonnull
java.lang.String name,
java.lang.String... args)
@OverridingMethodsMustInvokeSuper @Nonnull public DBObject makeClone(@Nonnull DataSource targetDS)
targetDS - @CheckReturnValue
public boolean isKeyWordField(@Nonnull
DBField field)
field - the field to test@CheckReturnValue @Nonnull public WriteProvider makeWriteProvider()
@CheckReturnValue @Nonnull public static DataLoader makeDataLoader(VirtualDB layer, DBClass rootClass, long[] rowsToLoad) throws java.lang.Exception
layer - the layerrootClass - the root classrowsToLoad - the rows to loadjava.lang.Exception - a serious problem@CheckReturnValue public static ArchiveDataLoader makeArchiveDataLoader(VirtualDB layer, DBClass rootClass, TransHeader maxTransaction) throws java.lang.Exception
layer - the layerrootClass - the root classmaxTransaction - the max transactionjava.lang.Exception - a serious problem@CheckReturnValue @Nonnull public java.lang.Object getSecondaryCacheGroupKey()
getSecondaryCacheGroupKey in interface SecondaryCacheGrouppublic boolean changeThreadMode(@Nonnull
ThreadCop.MODE mode)
mode - new mode@CheckReturnValue @Nullable public java.util.HashMap<java.lang.String,java.lang.String> iGetDenormalizedMap()
public void iPlaceDenormalizedResult(@Nonnull
java.lang.String code,
@Nonnull
java.lang.String data)
code - the codedata - the data@CheckReturnValue
@Nullable
public org.w3c.dom.Document makeDenormalizedDoc(@Nonnull
DBStoredResult dbSR,
@Nullable
java.util.Date archiveDate)
throws java.lang.Exception
dbSR - the definitionarchiveDate - the archive datejava.lang.Exception - a serious problem.public void manualDenormalizeOnSave(@Nonnull
DBObject.DenormalizeAction da)
throws java.lang.Exception
da - the actionjava.lang.Exception - a serious problempublic void releaseDenormalized(@Nonnull
java.lang.String code)
throws java.lang.Exception
code - a codejava.lang.Exception - a serious problem.@CheckReturnValue @Nonnull public SoapResultSet denormalizedResult(@Nonnull java.lang.String code) throws java.lang.Exception
code - the codejava.lang.Exception - a serious problem.@CheckReturnValue
public boolean hasStoredResult(@Nonnull
java.lang.String code)
throws java.lang.Exception
code - the codejava.lang.Exception - a serious problem.@CheckReturnValue public Holder getLinkHolder(@Nonnull DBClass sourceClass, @Nonnull DBField sourceField)
| Thread Safe: |
The Holder is always created first if it points to a null list it'll be loaded. When we clear a link we clear the base HashTable. So if a parallel thread is loading the list it will continue but not be referenced again. |
sourceClass - the source class ( required for fields in interfaces)sourceField - The source field for the link@Nullable public Holder fetchLinkHolder(@Nonnull DBClass sourceClass, @Nonnull DBField sourceField)
sourceClass - the source class ( required for fields in interfaces)sourceField - The source field for the linkpublic final void setBoolean(@Nonnull
java.lang.String name,
boolean flag)
throws java.lang.Exception
flag - The boolean value to setname - The name of the field to be updatedjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setBoolean(@Nonnull
java.lang.String name,
boolean flag,
@Nullable
FldParams params)
throws java.lang.Exception
params - the parametersflag - The boolean value to setname - The name of the field to be updatedjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setBoolean(@Nonnull
DBField field,
boolean flag)
throws java.lang.Exception
flag - The boolean value to set.field - The name of the field to be updatedjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setBoolean(@Nonnull
DBField field,
boolean flag,
@Nullable
FldParams params)
throws java.lang.Exception
params - The parametersflag - The boolean value to set.field - The name of the field to be updatedjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setInt(@Nonnull
java.lang.String name,
int value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setInt(@Nonnull
DBField field,
int value)
throws java.lang.Exception
field - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
java.lang.String name,
int value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
DBField field,
int value)
throws java.lang.Exception
field - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setLong(@Nonnull
java.lang.String name,
long value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setLong(@Nonnull
DBField field,
long value)
throws java.lang.Exception
field - The field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
java.lang.String name,
long value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
DBField field,
long value)
throws java.lang.Exception
field - The field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setDouble(@Nonnull
java.lang.String name,
double value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setDouble(@Nonnull
DBField field,
double value)
throws java.lang.Exception
field - The field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
java.lang.String name,
double value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
DBField field,
double value)
throws java.lang.Exception
field - The field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
java.lang.String name,
@Nullable
java.lang.Object value)
throws java.lang.Exception
name - The name of the field to be updatedvalue - The new value of the fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
java.lang.String name,
@Nullable
java.lang.Object value,
@Nullable
FldParams params)
throws java.lang.Exception
params - The fld paramsname - The name of the fieldvalue - The new value of the Fieldjava.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
DBField field,
@Nullable
java.lang.Object currentValue)
throws java.lang.Exception
field - The field to be updated.currentValue - The new value for the field.java.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void setValue(@Nonnull
DBField field,
@Nullable
java.lang.Object currentValue,
@Nullable
FldParams inParams)
throws java.lang.Exception
inParams - The parametersfield - The field to update.currentValue - The new value of the field.java.lang.Exception - A serious problem, most validation is done later ( It's OK to be invalid here).extSetValue() To filter public setting of valuespublic final void touch()
throws DBAccessException
DBAccessException - You don't have write permission.@CheckReturnValue
public final boolean isBrokenLink(@Nullable
java.lang.String name)
name - The field to check for the broken link@CheckReturnValue
public final boolean isBrokenLink(@Nonnull
DBField field)
field - The field to check for the broken link@CheckReturnValue public final long lastTouched()
public final void fixUp()
throws java.lang.Exception
java.lang.Exception - a serious problempublic final void delete()
throws java.lang.Exception
java.lang.Exception - A serious problempublic final void undelete()
throws java.lang.Exception
java.lang.Exception - a serious problem@CheckReturnValue public final boolean callingRestoreByJournal()
public final void restoreByJournal(@Nonnull
TransRecord tr,
boolean replayMode)
throws java.lang.Exception
tr - the transaction recordreplayMode - the replay modejava.lang.Exception - a serious problem.public final DBObject copy(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds - the data source to create the object fromjava.lang.Exception - A serious problempublic final void reindex()
throws java.lang.Exception
java.lang.Exception - Failed to re-index@CheckReturnValue public final boolean isReindex()
public final void autoEnterCreate(@Nullable
FldParams params)
throws java.lang.Exception
params - The parametersjava.lang.Exception - Failed to auto enter value.extAutoEnterCreate for a Overridable method.@CheckReturnValue @Nullable public final java.lang.Object getKeyValue()
@CheckReturnValue @Nonnull public final java.lang.String getKeyString()
@CheckReturnValue public final long getRowId()
@CheckReturnValue @Nonnull public final java.lang.Long getRowKey()
@CheckReturnValue public int getSrcLayerID()
@CheckReturnValue
@Nullable
public final java.lang.Object getDefaultValue(@Nonnull
DBField field)
field - The field to check@CheckReturnValue @Nonnull public final DBResult getInwardLinkage(@Nonnull DBField sourceField, @Nullable HintField hint) throws java.lang.Exception
hint - hint of other objectssourceField - The field that is linked to this class.java.lang.Exception - a serious problem@CheckReturnValue @Nullable public final DBObject getLinkedObject(@Nonnull java.lang.String fieldName)
fieldName - The linked field name.@CheckReturnValue @Nonnull public final DBObject findLinkedObject(@Nonnull java.lang.String fieldName) throws NotFoundException
fieldName - The linked field name.NotFoundException - if the record is not found.@CheckReturnValue @Nullable public final DBObject getLinkedObject(@Nonnull java.lang.String fieldName, @Nullable FldParams params)
params - The field parameters to usefieldName - The linked field name.@CheckReturnValue @Nonnull public final DBObject findLinkedObject(@Nonnull java.lang.String fieldName, @Nullable FldParams params) throws NotFoundException
params - The field parameters to usefieldName - The linked field name.NotFoundException - if the record is not found.@CheckReturnValue @Nonnull public final DBObject findLinkedObject(@Nonnull DBField field, @Nullable FldParams params) throws NotFoundException
params - The field parameters to usefield - The linked fieldNotFoundException - if the record is not found.@CheckReturnValue @Nullable public final DBObject getLinkedObject(@Nonnull DBField field, @Nullable FldParams params)
params - The field parameters to usefield - The linked field@CheckReturnValue @Nullable public final DBObject getLinkedObjectByKey(@Nonnull DBField field, @Nullable FldParams params)
params - the field parameters to usefield - The linked field@CheckReturnValue
public final long getLinkedRowId(@Nonnull
java.lang.String fieldName,
@Nullable
FldParams params)
params - the field parameters to usefieldName - The linked field name.@CheckReturnValue
public final long getLinkedRowId(@Nonnull
DBField field,
@Nullable
FldParams params)
params - the field parameters to usefield - The linked field@CheckReturnValue
public final long getLinkedRowIdByData(@Nonnull
DBField field,
@Nullable
FldParams params)
params - the field parameters to usefield - The linked field@Nonnull public final DBResult doSearch(@Nonnull java.lang.String thePath) throws java.lang.Exception
thePath - The search pathjava.lang.Exception - A problem with the search@CheckReturnValue @Nonnull public final ChangedFields getChangedFields()
@CheckReturnValue @Nullable public final ChangedFieldData getChangedFieldInfo(@Nullable DBField field)
field - The fieldpublic final void addReloadEventListener(@Nonnull
ReloadEventListener listener)
listener - The object to be notified.public final void removeReloadEventListener(@Nonnull
ReloadEventListener listener)
listener - The object to be notified.public final void setDisableOnChangeEvent(boolean flag)
flag - on or off@CheckReturnValue public final boolean getDisableOnChangeEvent()
@CheckReturnValue @Nonnull public java.lang.String toString()
toString in class java.lang.Object@CheckReturnValue @Nonnull public final GlobalKey getGlobalKey()
@CheckReturnValue @Nonnull public final GlobalKey findGlobalKey(@Nonnull java.lang.String fieldName) throws NotFoundException
fieldName - The name of the linked field.NotFoundException - no global key@CheckReturnValue @Nullable public final GlobalKey getGlobalKey(@Nullable java.lang.String fieldName)
fieldName - The name of the linked field.@CheckReturnValue @Nonnull public final GlobalKey findGlobalKey(@Nonnull java.lang.String fieldName, @Nullable FldParams params) throws NotFoundException
params - The parameters for this request.fieldName - The name of the linked field.NotFoundException - no key found.@CheckReturnValue @Nullable public final GlobalKey getGlobalKey(@Nullable java.lang.String fieldName, @Nullable FldParams params)
params - The parameters for this request.fieldName - The name of the linked field.@CheckReturnValue @Nonnull public final GlobalKey findGlobalKey(@Nonnull DBField field) throws NotFoundException
field - The name of the linked field.NotFoundException - no key found.@CheckReturnValue @Nullable public final GlobalKey getGlobalKey(@Nullable DBField field)
field - The linked field@CheckReturnValue @Nonnull public final GlobalKey findGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws NotFoundException
params - The parameters for this request.field - The name of the linked field.NotFoundException - no key found.@CheckReturnValue @Nullable public final GlobalKey getGlobalKey(@Nullable DBField field, @Nullable FldParams params)
params - The parameters for this request.field - The linked field@CheckReturnValue @Nonnull public final ValidationList validateRecord() throws java.lang.Exception
java.lang.Exception - A serious problem@CheckReturnValue @Nonnull public final ValidationList archiveCheck() throws java.lang.Exception
java.lang.Exception - A serious problem@CheckReturnValue @Nullable public final ValidationItem validateField(@Nonnull DBField field) throws java.lang.Exception
field - The field to be validatedjava.lang.Exception - a serious errorpublic final void checkDelete()
throws DBAccessException
DBAccessException - You may not deletepublic final void checkReadAccess()
throws DBAccessException
DBAccessException - If the user has no select accesspublic final void iCheckReadAccess(@Nonnull
DataSource realDS)
throws DBAccessException
realDS - the real data sourceDBAccessException - If the user has no select accesspublic final void checkModifyAccess(@Nonnull
DBField field)
throws DBAccessException
field - The field to checkDBAccessException - No accessextCheckModifyAccess to add additional conditions.public final void checkModifyAccess()
throws DBAccessException
DBAccessException - No accessextCheckModifyAccess to add additional conditions.public final void iCheckModifyAccess(@Nonnull
DataSource realDS)
throws DBAccessException
realDS - the real data sourceDBAccessException - no accesspublic final void checkDeleteAccess()
throws DBAccessException
DBAccessException - No AccessextCheckDeleteAccess to add additional conditions.public final void iCheckDeleteAccess(@Nonnull
DataSource realDS)
throws DBAccessException
realDS - the real data sourceDBAccessException - no user accesspublic final void checkCreateAccess()
throws DBAccessException
DBAccessException - No Access@CheckReturnValue @Nonnull protected DBAccessException makeModifyAccessException(@Nonnull DBCriteria criteria)
criteria - the criteria to check@CheckReturnValue public final boolean isDataCacheKnownToBeDirty()
@CheckReturnValue public final boolean isDeleted()
@CheckReturnValue
public final boolean isMandatory(@Nonnull
DBField field)
field - The field@CheckReturnValue
public final boolean isOnChange(@Nonnull
DBField field)
field - The field@CheckReturnValue public final boolean isChanged()
@CheckReturnValue
public final boolean isNull(@Nonnull
java.lang.String name)
name - The name of the field@CheckReturnValue
public final boolean isNull(@Nonnull
DBField field)
field - The field to check@CheckReturnValue public final boolean isEmpty()
@CheckReturnValue public final boolean hasChanged()
@CheckReturnValue public final boolean hasChangedByUser()
@CheckReturnValue
public final boolean hasFieldChanged(@Nonnull
java.lang.String name)
name - The name of the field@CheckReturnValue
public final boolean hasFieldChanged(@Nonnull
DBField field)
field - The field to check@CheckReturnValue
public final boolean hasChangedByUserField(@Nonnull
java.lang.String name)
name - The name of the field@CheckReturnValue
public final boolean hasChangedByUserField(@Nonnull
DBField field)
field - The field to check@CheckReturnValue
public final boolean hasAutoChanged(@Nonnull
java.lang.String name)
name - The name of the field@CheckReturnValue
public final boolean hasAutoChanged(@Nonnull
DBField field)
field - The field to check@CheckReturnValue public final boolean isNew()
@CheckReturnValue public final boolean isForceReindex()
@CheckReturnValue
@Nullable
public final java.lang.Object getPureValue(@Nullable
DBField field,
@Nullable
FldParams params)
params - The parameters for this field eg. language= or default=field - The field to get@CheckReturnValue
@Nullable
public final java.lang.Object calculateValue(@Nullable
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
field - The fieldparams - The field parametersjava.lang.Exception - calculate may throw an exception@CheckReturnValue
@Nullable
public final java.lang.Object calculateValue(@Nonnull
java.lang.String name)
throws java.lang.Exception
name - The name of the field.java.lang.Exception - calculate may throw an exception@CheckReturnValue
@Nullable
public final java.lang.Object calculateValue(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
throws java.lang.Exception
params - The parameters for this field eg. language= or default=name - The name of the field.java.lang.Exception - calculate may throw an exception@CheckReturnValue
@Nullable
public final java.lang.Object getValue(@Nullable
DBField field,
@Nullable
FldParams params)
params - The parameters for this requestfield - The field to getextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.lang.Object getValue(@Nonnull
DBField field)
field - The field to getextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.lang.Object getValue(@Nonnull
java.lang.String name)
name - The name of the field.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.lang.Object getValue(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
params - The parameters for this field eg. language= or default=name - The name of the field.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nonnull
public final java.lang.String getFormattedString(@Nullable
DBField field,
@Nullable
java.lang.String specificFormat,
@Nullable
FldParams params)
Boolean fields -------------- "True|False" or "Sexy|Ugly" or "on|off" or anything separated by a '|' Date & Timestamp fields ----------------------- We use the standard Java SimpleDateFormat patterns Integer and Long fields ----------------------- We use the standard Java DecimalFormat patterns
params - The parameters for this field eg. language= or default=field - The field to get.specificFormat - The format@CheckReturnValue
@Nullable
public final java.lang.Object getProcessedValue(@Nullable
DBField field,
@Nullable
FldParams params)
@CheckReturnValue
@Nonnull
public final java.lang.String getFormattedString(@Nullable
java.lang.String name,
@Nullable
java.lang.String specificFormat,
@Nullable
FldParams params)
Boolean fields -------------- "True|False" or "Sexy|Ugly" or "on|off" or anything separated by a '|' Date & Timestamp fields ----------------------- We use the standard Java SimpleDateFormat patterns Integer and Long fields ----------------------- We use the standard Java DecimalFormat patterns
params - The parameters for this field eg. language= or default=name - The field name to be formattedspecificFormat - The format@CheckReturnValue
@Nonnull
public final java.lang.String getString(@Nonnull
DBField field)
field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nonnull
public final java.lang.String getString(@Nonnull
DBField field,
@Nullable
java.lang.String params)
params - The parameters for this field eg. language= or default=field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nonnull
public final java.lang.String getString(@Nonnull
java.lang.String name,
@Nullable
java.lang.String params)
name - The name of the fieldparams - The parameters for this field eg. language= or default=extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nonnull
public java.lang.String getFieldString(@Nonnull
java.lang.String fieldName,
java.lang.String... args)
@CheckReturnValue
public int getFieldInt(@Nonnull
java.lang.String fieldName,
java.lang.String... args)
@CheckReturnValue
public long getFieldLong(@Nonnull
java.lang.String fieldName,
java.lang.String... args)
@CheckReturnValue
public double getFieldDouble(@Nonnull
java.lang.String fieldName,
java.lang.String... args)
@CheckReturnValue
@Nonnull
public final java.lang.String getString(@Nonnull
DBField field,
@Nullable
FldParams params)
params - The parameters for this field eg. language= or default=field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nonnull
public final java.lang.String getString(@Nonnull
java.lang.String name)
name - The name of the fieldextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nonnull
public final java.lang.String getString(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
params - The parameters for this field eg. language= or default=name - The name of the fieldextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final int getInt(@Nonnull
DBField field)
field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final int getInt(@Nonnull
DBField field,
int defaultValue)
defaultValue - The default valuefield - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final int getInt(@Nonnull
java.lang.String name,
int defaultValue)
name - The field namedefaultValue - the default valueextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final int getInt(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
name - The field nameparams - The parameters for this field eg. language= or default=extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final int getInt(@Nonnull
java.lang.String name)
name - The field NameextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final int getInt(@Nonnull
DBField field,
@Nullable
FldParams params)
field - The fieldparams - The parameters for this field eg. language= or default=extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final double getDouble(@Nonnull
DBField field)
field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final double getDouble(@Nonnull
java.lang.String name,
double defaultValue)
name - The field namedefaultValue - The default value.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final double getDouble(@Nonnull
java.lang.String name)
name - The name of the fieldextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final double getDouble(@Nonnull
DBField field,
double defaultValue)
field - The fielddefaultValue - The default value for the field.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final double getDouble(@Nonnull
java.lang.String field,
@Nullable
FldParams params)
field - The fieldparams - The field parametersextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final long getLong(@Nonnull
DBField field)
field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final long getLong(@Nonnull
java.lang.String name,
long defaultValue)
name - The field namedefaultValue - The default value for the fieldextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final long getLong(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
name - The field nameparams - the field argumentsextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final long getLong(@Nonnull
java.lang.String name)
name - The field nameextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final long getLong(@Nonnull
DBField field,
long defaultValue)
field - The fielddefaultValue - The default value.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final long getLong(@Nonnull
DBField field,
@Nullable
FldParams params)
field - The fieldparams - the field argumentsextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final boolean getBoolean(@Nonnull
DBField field)
field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final boolean getBoolean(@Nullable
DBField field,
boolean flag)
field - The field to get.flag - The default valueextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final boolean getBoolean(@Nonnull
DBField field,
@Nullable
FldParams params)
field - The fieldparams - The parameters@CheckReturnValue
public final boolean getBoolean(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
name - The field nameparams - The parameters@CheckReturnValue
public final boolean getBoolean(@Nonnull
java.lang.String name)
name - The field nameextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
public final boolean getBoolean(@Nonnull
java.lang.String name,
boolean flag)
name - The Field Nameflag - The default valueextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.util.Date getDate(@Nonnull
DBField field)
field - The field to get.extGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.util.Date getDate(@Nonnull
DBField field,
@Nullable
java.util.Date defaultDate)
field - The field to get.defaultDate - The default valueextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.util.Date getDate(@Nonnull
java.lang.String name)
name - The field nameextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.util.Date getDate(@Nonnull
java.lang.String name,
@Nullable
java.util.Date theDate)
name - The Field NametheDate - The default valueextGetValue() To filter public accessible values eg. **** for a password@CheckReturnValue
@Nullable
public final java.util.Date getDate(@Nonnull
java.lang.String name,
@Nullable
FldParams params)
name - The Field Nameparams - The field parameters@CheckReturnValue
@Nullable
public final java.lang.Object getRawValue(@Nonnull
GlobalKey fieldId)
fieldId - The field's global key@CheckReturnValue
@Nullable
public final java.lang.Object getRawValue(@Nonnull
DBField field)
field - The field to get the raw value.@CheckReturnValue
@Nullable
public final java.lang.Object getOriginalValue(@Nonnull
GlobalKey fieldKey)
fieldKey - The field key@CheckReturnValue
@Nullable
public final java.lang.Object getOriginalValue(@Nullable
DBField field)
field - The field to get the raw value.@CheckReturnValue @Nullable public final GlobalKey getOriginalKey(@Nullable DBField field)
field - The field to get the raw value.public final void copyFields(@Nonnull
DBObject orig)
throws java.lang.Exception
orig - The original object to be copied.java.lang.Exception - A serious error.@CheckReturnValue
public boolean copyIncludeField(@Nonnull
DBObject orig,
@Nonnull
DBField field)
throws java.lang.Exception
orig - The original object to be copied.field - The field to be copiedjava.lang.Exception - A serious error.@Nonnull public final DBObject[] copyInwardLinks(@Nonnull DBObject orig, @Nonnull DBField linkedField) throws java.lang.Exception
orig - The reference objectlinkedField - The Linked Field ?java.lang.Exception - A serious problempublic final void markSavePoint(@Nonnull
java.lang.String id)
throws NotInUniverseException
id - the save point idNotInUniverseException - DBObject had not been touchedpublic final void rollbackTo(@Nonnull
java.lang.String id)
throws NoSavePointException
id - the save point idNoSavePointException - no save point foundpublic final void dump()
@CheckReturnValue @Nonnull public static SearchPlan makeSearchPlan(@Nonnull DBQuery<DBObject> query)
query - The calling query@CheckReturnValue @Nonnegative public final long getLockedTransaction()
@Nonnegative
public final long optLockedTransaction()
throws java.lang.Exception
java.lang.Exception - A serious problem.@Nonnegative
public final long forceLockedTransaction()
throws java.lang.Exception
java.lang.Exception - A serious problem.public final void iPreValidate()
throws java.lang.Exception
java.lang.Exception - a serious problempublic final void iRaiseEvents()
throws java.lang.Exception
java.lang.Exception - A serious problempublic final void iPreSaveOrDeleteRecord()
throws java.lang.Exception
java.lang.Exception - A Serious problemextPreSaveRecord(),
extPreDeleteRecord()public final void iPostSaveOrDeleteRecord(@Nonnegative
long transNr)
transNr - This transaction number that was just saved.#extPostSave()public final void iSaveOrDeleteRecord(@Nonnegative
long transNr)
throws java.lang.Exception
transNr - The current transaction number.java.lang.Exception - A serious problempublic final void iValidateRecord(@Nonnull
ValidationList list,
@Nullable
java.util.HashMap<GlobalKey,java.util.HashMap<java.lang.String,java.util.ArrayList<DBObject>>> possibleConflicts)
throws java.lang.Exception
list - The validation listpossibleConflicts - The list of rows matching key and unique field values. This is done by a batch select to improve performance.java.lang.Exception - A serious problempublic final void fireEventDataLoaded()
@OverridingMethodsMustInvokeSuper
protected void clearCache(@Nullable
GlobalKey changedKey)
changedKey - The key that was changed.public final void setRawData(@Nullable
DBDataInterface data)
data - The raw data@CheckReturnValue @Nullable public final DBDataInterface getRawData()
@CheckReturnValue @Nonnull public final DBDataInterface findRawData()
public final void registerWatchedObject(@Nonnull
DBObject obj)
obj - The database object to be watched.@CheckReturnValue public final int hashCode()
hashCode in class java.lang.Object@CheckReturnValue
public final boolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Objecto - The normal valueprotected final void iSetValue(@Nullable
DBField field,
@Nullable
java.lang.Object userValue,
@Nullable
FldParams params)
throws java.lang.Exception
userValue - The new valueparams - The parameters for this field eg. language= or default=field - The field to updatejava.lang.Exception - A serious problem@CheckReturnValue @Nonnull public final MutableArrayValue getMutableArrayValue(@Nonnull java.lang.String name) throws java.lang.Exception
name - The name of the fieldjava.lang.Exception - must be mutable and an array field@CheckReturnValue @Nonnull public final MutableArrayValue getMutableArrayValue(@Nonnull DBField field) throws java.lang.Exception
field - the array fieldjava.lang.Exception - must be mutable and an array field@Nullable
protected final java.lang.Object iGetRawValue(@Nonnull
DBField field)
field - The field to get@OverridingMethodsMustInvokeSuper
protected void eventFieldUpdated(@Nonnull
DBField field,
@Nullable
java.lang.Object previous,
@Nullable
GlobalKey previousKey,
@Nullable
FldParams params)
throws java.lang.Exception
field - The field updated.previous - The previous value for this field.previousKey - The previous keyparams - The parameters usedjava.lang.Exception - a serious problem@CheckReturnValue
protected boolean extIsMandatory(@Nonnull
DBField field)
field - The field to check@CheckReturnValue
protected boolean extIsOnChange(@Nonnull
DBField field)
field - The field to check@CheckReturnValue
@Nullable
protected java.lang.Object extGetDerivedValue(@Nonnull
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
params - The parameters for this field eg. language= or default=field - The field to getjava.lang.Exception - a serious problem@CheckReturnValue @Nullable protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
field - The field that is being changedparams - The extra parametersjava.lang.Exception - A serious problem. In general validation is done later.@CheckReturnValue
protected boolean extCanDeleteDependantObject(@Nonnull
DBObject o)
o - The object to check@CheckReturnValue
@Nullable
protected java.lang.Object extGetValue(@Nullable
DBField field,
@Nullable
FldParams params)
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.params - The parameters for this field eg. language= or default=field - The field to get@OverridingMethodsMustInvokeSuper
protected void extFixUp()
throws java.lang.Exception
java.lang.Exception - a serious problem@OverridingMethodsMustInvokeSuper
protected void extAutoEnterCreate()
throws java.lang.Exception
setIsAutoEntered(true)
so that system does not misunderstand that this object is changed by user.java.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extValidateDelete(@Nonnull
ValidationList list)
throws java.lang.Exception
list - The validation listjava.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extDelete()
throws java.lang.Exception
java.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extUndelete()
throws java.lang.Exception
java.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extCopy(@Nonnull
DBObject target)
throws java.lang.Exception
target - the target objectjava.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extCheckCreateAccess()
throws DBAccessException
DBAccessException - No access to create@OverridingMethodsMustInvokeSuper
protected void extCheckDeleteAccess()
throws DBAccessException
DBAccessException - No access to delete@OverridingMethodsMustInvokeSuper
protected void extCheckReadAccess()
throws DBAccessException
DBAccessException - No access to read@OverridingMethodsMustInvokeSuper
protected void extCheckModifyAccess()
throws DBAccessException
DBAccessException - No access to modify@OverridingMethodsMustInvokeSuper
protected void extCheckModifyAccess(@Nonnull
DBField field)
throws DBAccessException
field - Can we change this field ?DBAccessException - No access to change@OverridingMethodsMustInvokeSuper
protected void extPreSaveRecord()
throws java.lang.Exception
java.lang.Exception - A Serious problem@OverridingMethodsMustInvokeSuper
protected void extPreDeleteRecord()
throws java.lang.Exception
java.lang.Exception - A Serious problem@OverridingMethodsMustInvokeSuper
protected void extDeleteRecord(@Nonnegative
long transNr)
throws java.lang.Exception
transNr - This transaction number that was just saved.java.lang.Exception - A serious Error@OverridingMethodsMustInvokeSuper
protected void extSaveRecord(@Nonnegative
long transNr)
throws java.lang.Exception
transNr - This transaction number that was just saved.java.lang.Exception - A serious Error@OverridingMethodsMustInvokeSuper
protected void extPostDeleteRecord(@Nonnegative
long transNr)
transNr - This transaction number that was just saved.@OverridingMethodsMustInvokeSuper
protected void extPostSaveRecord(@Nonnegative
long transNr)
transNr - This transaction number that was just saved.@OverridingMethodsMustInvokeSuper protected void eventDataLoaded()
protected void extSetValue(@Nonnull
DBField field,
@Nullable
java.lang.Object currentValue,
@Nullable
FldParams params)
throws java.lang.Exception
field - The field that is being changedcurrentValue - The new valueparams - The extra parametersjava.lang.Exception - A serious problem. In general validation is done later.@OverridingMethodsMustInvokeSuper
protected void extPreValidate()
throws java.lang.Exception
java.lang.Exception - a serious problem@OverridingMethodsMustInvokeSuper
protected void extPreValidateDelete()
throws java.lang.Exception
java.lang.Exception - a serious problem@OverridingMethodsMustInvokeSuper
protected void extRaiseEvents()
throws java.lang.Exception
java.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extValidateRecord(@Nonnull
ValidationList list)
throws java.lang.Exception
list - The validation list.java.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extMarkSavePoint(@Nonnull
java.lang.String id)
throws NotInUniverseException
id - the save point idNotInUniverseException - DBObject had not been touched@OverridingMethodsMustInvokeSuper
protected void extRollbackTo(@Nonnull
java.lang.String id)
throws NoSavePointException
id - the save point idNoSavePointException - no save point found@OverridingMethodsMustInvokeSuper @Nullable @CheckReturnValue protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
list - The validation listfield - The field to be validatedjava.lang.Exception - a serious errorprotected void validateSubType(@Nonnull
DBField field,
@Nullable
java.lang.Object value)
throws InvalidDataException,
InvalidDataWarning
field - The fieldvalue - the valueInvalidDataException - invalidate dataInvalidDataWarning@CheckReturnValue @Nonnull public java.lang.String displayValue()
@CheckReturnValue @Nonnull public java.lang.String displayLogName()
@CheckReturnValue @Nonnull public java.lang.String displayName()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.