public class DBField extends DBObject implements java.util.Comparator
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
protected long |
cacheRowId
The cache of the row id needed for performance reasons.
|
static GlobalId |
DBCLASS_GID
DBField
|
static java.lang.String |
DBCLASS_NAME
DBField
|
static boolean |
DISABLE_LAZY_LOAD
disabled the lazy load of data.
|
static java.lang.String |
PROPERTY_DISABLE_LAZY_LOAD
The property to disable the lazy load of data.
|
static int |
TYPE_BOOLEAN
Field type of Boolean
|
static int |
TYPE_CUSTOM
Field type of CUSTOM
|
static int |
TYPE_DATE
Field type of Date
|
static int |
TYPE_DOUBLE
Field type of Double
|
static int |
TYPE_INTEGER
Field type of Integer
|
static int |
TYPE_LONG
Field type of Long
|
static int |
TYPE_MULTILINGUAL
Field type of MultiLingual Text
|
static int |
TYPE_STRING
Field type of String
|
static int |
TYPE_TEXT
Field type of Text
|
static int |
TYPE_TIMESTAMP
Field type of DATETIME
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBField(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canParentClearChild()
Can the delete of the parent record clear this field.
|
boolean |
canParentRemoveChild()
When the linked object is deleted, is this object automatically removed.
|
protected void |
clearCache(GlobalKey changedKey)
Clear out all cached data.
|
int |
compare(java.lang.Object inValue,
java.lang.Object inCmpValue)
compare one object to another
|
static DBField |
create(MutableDataSource mds)
Make a new instance of this class.
|
boolean |
disableFieldRecycler(java.lang.String... args) |
boolean |
disableJournalData(java.lang.String... args) |
java.lang.String |
displayName()
Get the label for this field.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extCheckModifyAccess(DBField field)
Can this field be modified ?
|
protected void |
extFixUp()
The extended fix up routine for known problems.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Returns the derived value of this field.
|
protected void |
extPostSaveRecord(long transNr)
mark the index as dirty if this is a searchable field
|
protected void |
extPreDeleteRecord()
touch the interface if we are adding or deleting fields
|
protected void |
extPreSaveRecord()
touch the interface if we are adding or deleting fields
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for particular field OVERRIDE THIS METHOD TO ADD VALIDATIONS FOR A FIELD.
|
AutoEnterPredefined |
findAutoEnterPreDefined(java.lang.String... args)
System defined auto enter type.
|
DBClassAbstract |
findClassGid(java.lang.String... args)
The DBClass for this field.
|
static DBField |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBClassAbstract |
findLinkedClass(java.lang.String... args)
The DBClass that this field points.
|
DBClass |
findLinkedDBClass()
The class that this field is linked to.
|
DBField |
findOnChangeField(java.lang.String... args)
When this field changes auto enter the onChange Formula/Value.
|
DBFieldSubType |
findSubType(java.lang.String... args)
subcategory type.
|
DBMessage |
findValidationMessage(java.lang.String... args)
The validation message.
|
DBFormula |
getAutoEnterFormula()
The auto enter formula for this field
|
AutoEnterPredefined |
getAutoEnterPreDefined(java.lang.String... args) |
java.lang.String |
getAutoEnterValue(java.lang.String... args) |
java.lang.String |
getAutoFillPredefinedValue()
Predefined auto fill values.
|
java.lang.String |
getAutoFillValue()
The auto fill value.
|
GlobalKey |
getBaseClassGid()
The base class global id
|
DBClass |
getBaseDBClass()
The base class for this field
|
DBClassAbstract |
getBaseDBClassAbstract()
The base class for this field
|
DBClassAbstract |
getClassGid(java.lang.String... args) |
java.lang.String |
getDeprecatedTx(java.lang.String... args) |
java.lang.String |
getDescription()
The description of the field
|
java.lang.String |
getDisplayFormat(java.lang.String... args) |
java.lang.String |
getDisplayName(java.lang.String... args) |
java.lang.String |
getDisplayType(java.lang.String... args) |
java.lang.String |
getFactoryJavaClass(java.lang.String... args) |
GlobalKeyId |
getFieldId()
The global ID for the field
|
DBFormula |
getFormula()
Get the formula for this field.
|
int |
getID(java.lang.String... args) |
int |
getIncrementalCacheSize(java.lang.String... args) |
java.lang.String |
getIndexPrefix()
The raw index table for this field.
|
java.lang.String |
getKey()
A shorthand method to get the field 's key.
|
LayerField |
getLayerField(LayerField[] array)
INTERNAL ONLY: search and return the field layer data.
|
java.lang.String |
getLinkDisplayName(java.lang.String... args) |
DBClassAbstract |
getLinkedClass(java.lang.String... args) |
DBClass |
getLinkedDBClass()
The class that this field is linked to.
|
DBClassAbstract |
getLinkedDBClassAbstract()
The class that this field is linked to.
|
DBClassConcrete |
getLinkedDBClassConcrete()
The class that this field is linked to.
|
GlobalKeyId |
getLinkedDBClassRootId()
The class that this field is linked to.
|
int |
getMaxLength(java.lang.String... args) |
java.lang.String |
getName()
A short method for getting the field name.
|
java.lang.String |
getNotes(java.lang.String... args) |
DBField |
getOnChangeField(java.lang.String... args) |
java.lang.String |
getOnChangeFormula(java.lang.String... args) |
java.lang.String |
getOnChangePath(java.lang.String... args) |
java.lang.String |
getOnChangeValue(java.lang.String... args) |
java.lang.String |
getPlaceholder(java.lang.String... args) |
long |
getRecycleCount()
The count of recycled values
|
java.lang.String |
getSampleBadValues(java.lang.String... args) |
java.lang.String |
getSampleValues(java.lang.String... args) |
java.lang.String |
getSampleValuesDelimiter(java.lang.String... args) |
DBFieldSubType |
getSubType(java.lang.String... args) |
int |
getType()
The field type
|
java.lang.String |
getUniqueKeyPrefix()
The key table name.
|
DBField |
getUpdateOnChangeField()
The update on change field.
|
DBFormula |
getUpdateOnChangeFormula()
The on change formula.
|
Path |
getUpdateOnChangePath()
The on change path
|
java.lang.String |
getUpdateOnChangeValue()
The on change value
|
java.lang.String |
getValidateMaxValue(java.lang.String... args) |
java.lang.String |
getValidateMinValue(java.lang.String... args) |
DBFormula |
getValidationFormula()
Get the validation formula
|
DBMessage |
getValidationMessage(java.lang.String... args) |
java.lang.String |
getValidationMsg(java.lang.String... args) |
java.lang.String |
getValidationRegularExpression(java.lang.String... args) |
boolean |
hasAutoEnterFormula()
Does this field have an auto enter formula ?
|
boolean |
hasValidationFormula()
Does this field have an validation formula ?
|
boolean |
isArray()
Is this field marked as an Array.
|
boolean |
isArrayFg(java.lang.String... args) |
boolean |
isArrayNoCache(java.lang.String... args) |
boolean |
isDeprecated(java.lang.String... args) |
boolean |
isDerivedFg(java.lang.String... args) |
boolean |
isEncrypted()
Is this field marked as encrypted.
|
boolean |
isEncryptedFg(java.lang.String... args) |
boolean |
isFinalFg(java.lang.String... args) |
boolean |
isInClass(java.lang.String... args) |
boolean |
isIncremental()
Is this field marked as incremental ?
|
boolean |
isIncrementalFg(java.lang.String... args) |
boolean |
isIndexable()
Is the field indexable ?
|
boolean |
isInternalUseOnly(java.lang.String... args) |
boolean |
isKey()
Is this the key field.
|
boolean |
isKeyFg(java.lang.String... args) |
boolean |
isKeyWord(java.lang.String... args) |
boolean |
isLazyLoad()
Is this field marked as lazy load ? .
|
boolean |
isLazyLoadFg(java.lang.String... args) |
boolean |
isLinked()
Is this field linked ?
Make this very fast |
boolean |
isLinkedTounchOnChange(java.lang.String... args) |
boolean |
isMandatory()
Is this field marked as mandatory.
|
boolean |
isMultiLingual()
Is this field multilingual ?
|
boolean |
isNumber()
is this field a number(float, integer or long) field?
|
boolean |
isObscure()
Is this field marked as obscure.
|
boolean |
isObscureFg(java.lang.String... args) |
boolean |
isRecordingRecentLinks()
Should we record the recent links ?
|
boolean |
isRecordRecentLinks(java.lang.String... args) |
boolean |
isRuntimeEval()
A field is runtime evaluated if it has a formula or if it is flagged as derived.
|
boolean |
isSearchable()
If marked as searchable or a key field or linked to another class.
|
boolean |
isSearchFg(java.lang.String... args) |
boolean |
isUnique()
Is the field marked as unique ?
|
static java.lang.String |
makeDisplayName(java.lang.String fieldName)
converts a single mixed case word into multiple words based on the change of case.
|
FieldValueFactory |
makeFactory()
make factory for this field.
|
java.lang.String |
makeFormattedString(DataSource ds,
java.lang.Object inValue,
java.lang.String specificFormat,
FldParams params)
Make a formatted version of the value
|
static DBQuery<DBField> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
long |
makeRowId()
Get & Cache the row id
|
java.lang.String |
makeSQLKeyString(DataSource ds,
java.lang.Object inValue)
Convert the value to the SQL key format.
|
java.lang.String |
makeSQLString(DataSource ds,
java.lang.Object value)
Varchar(255)
|
java.lang.String |
makeString(DataSource ds,
java.lang.Object inValue)
Make a string version of the passed value
|
java.lang.Object |
parse(DataSource ds,
java.lang.Object inData)
Parse the object to be the object type of this field.
|
java.lang.Object |
preparedSQLKeyString(DataSource ds,
java.lang.Object inValue)
Convert the value to the SQL key format.
|
LayerField |
recycle(LayerField lf)
Recycle the layer field.
|
DBField |
setArrayFg(boolean value,
java.lang.String... args) |
DBField |
setArrayNoCache(boolean value,
java.lang.String... args) |
DBField |
setAutoEnterFormula(java.lang.String value,
java.lang.String... args) |
DBField |
setAutoEnterPreDefined(com.aspc.dal.dbobj.misc.AutoEnterPredefined value,
java.lang.String... args) |
DBField |
setAutoEnterValue(java.lang.String value,
java.lang.String... args) |
DBField |
setCanParentClearChild(boolean value,
java.lang.String... args) |
DBField |
setCanParentRemoveChild(boolean value,
java.lang.String... args) |
DBField |
setClassGid(com.aspc.dal.dbobj.DBClassAbstract value,
java.lang.String... args) |
DBField |
setDeprecated(boolean value,
java.lang.String... args) |
DBField |
setDeprecatedTx(java.lang.String value,
java.lang.String... args) |
DBField |
setDerivedFg(boolean value,
java.lang.String... args) |
DBField |
setDescription(java.lang.String value,
java.lang.String... args) |
DBField |
setDisableFieldRecycler(boolean value,
java.lang.String... args) |
DBField |
setDisableJournalData(boolean value,
java.lang.String... args) |
DBField |
setDisplayFormat(java.lang.String value,
java.lang.String... args) |
DBField |
setDisplayName(java.lang.String value,
java.lang.String... args) |
DBField |
setEncryptedFg(boolean value,
java.lang.String... args) |
DBField |
setFactoryJavaClass(java.lang.String value,
java.lang.String... args) |
DBField |
setFinalFg(boolean value,
java.lang.String... args) |
DBField |
setFormula(java.lang.String value,
java.lang.String... args) |
DBField |
setID(int value,
java.lang.String... args) |
DBField |
setIncrementalCacheSize(int value,
java.lang.String... args) |
DBField |
setIncrementalFg(boolean value,
java.lang.String... args) |
DBField |
setInternalUseOnly(boolean value,
java.lang.String... args) |
DBField |
setKeyFg(boolean value,
java.lang.String... args) |
DBField |
setKeyWord(boolean value,
java.lang.String... args) |
DBField |
setLazyLoadFg(boolean value,
java.lang.String... args) |
DBField |
setLinkDisplayName(java.lang.String value,
java.lang.String... args) |
DBField |
setLinkedClass(com.aspc.dal.dbobj.DBClassAbstract value,
java.lang.String... args) |
DBField |
setLinkedTounchOnChange(boolean value,
java.lang.String... args) |
DBField |
setMandatory(boolean value,
java.lang.String... args) |
DBField |
setMaxLength(int value,
java.lang.String... args) |
DBField |
setName(java.lang.String value,
java.lang.String... args) |
DBField |
setNotes(java.lang.String value,
java.lang.String... args) |
DBField |
setObscureFg(boolean value,
java.lang.String... args) |
DBField |
setOnChangeField(com.aspc.dal.dbobj.DBField value,
java.lang.String... args) |
DBField |
setOnChangeFormula(java.lang.String value,
java.lang.String... args) |
DBField |
setOnChangePath(java.lang.String value,
java.lang.String... args) |
DBField |
setOnChangeValue(java.lang.String value,
java.lang.String... args) |
DBField |
setPlaceholder(java.lang.String value,
java.lang.String... args) |
DBField |
setRecordRecentLinks(boolean value,
java.lang.String... args) |
DBField |
setSampleBadValues(java.lang.String value,
java.lang.String... args) |
DBField |
setSampleValues(java.lang.String value,
java.lang.String... args) |
DBField |
setSampleValuesDelimiter(java.lang.String value,
java.lang.String... args) |
DBField |
setSearchFg(boolean value,
java.lang.String... args) |
DBField |
setSubType(com.aspc.dal.dbobj.misc.DBFieldSubType value,
java.lang.String... args) |
DBField |
setType(com.aspc.dal.dbobj.misc.FieldTypes value,
java.lang.String... args) |
DBField |
setUnique(boolean value,
java.lang.String... args) |
DBField |
setValidateMaxValue(java.lang.String value,
java.lang.String... args) |
DBField |
setValidateMinValue(java.lang.String value,
java.lang.String... args) |
DBField |
setValidationFormula(java.lang.String value,
java.lang.String... args) |
DBField |
setValidationMessage(com.aspc.dal.message.DBMessage value,
java.lang.String... args) |
DBField |
setValidationMsg(java.lang.String value,
java.lang.String... args) |
DBField |
setValidationRegularExpression(java.lang.String value,
java.lang.String... args) |
static void |
sortLayerArray(LayerField[] array)
Sort the layer data.
|
static java.lang.String |
sTypeName(int type)
The human name for this field type
|
java.lang.String |
toString()
The display name of this field
|
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, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String PROPERTY_DISABLE_LAZY_LOAD
public static final boolean DISABLE_LAZY_LOAD
public static final int TYPE_INTEGER
public static final int TYPE_DOUBLE
public static final int TYPE_BOOLEAN
public static final int TYPE_DATE
public static final int TYPE_TIMESTAMP
public static final int TYPE_STRING
public static final int TYPE_TEXT
public static final int TYPE_LONG
public static final int TYPE_MULTILINGUAL
public static final int TYPE_CUSTOM
protected long cacheRowId
public DBField(@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@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public DBField setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isArrayFg(java.lang.String... args)
@Nonnull public DBField setArrayFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isArrayNoCache(java.lang.String... args)
@Nonnull public DBField setArrayNoCache(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setAutoEnterFormula(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public AutoEnterPredefined getAutoEnterPreDefined(java.lang.String... args)
@CheckReturnValue @Nonnull public final AutoEnterPredefined findAutoEnterPreDefined(java.lang.String... args) throws NotFoundException
AutoEnterPredefined
(String, Searchable)args
- the optional argumentsNotFoundException
- AutoEnterPredefined was not found@Nonnull public DBField setAutoEnterPreDefined(com.aspc.dal.dbobj.misc.AutoEnterPredefined value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAutoEnterValue(java.lang.String... args)
@Nonnull public DBField setAutoEnterValue(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setCanParentClearChild(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setCanParentRemoveChild(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBClassAbstract getClassGid(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBClassAbstract findClassGid(java.lang.String... args) throws NotFoundException
DBClassAbstract
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBClassAbstract was not found@Nonnull public DBField setClassGid(com.aspc.dal.dbobj.DBClassAbstract value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDeprecated(java.lang.String... args)
@Nonnull public DBField 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 DBField setDeprecatedTx(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDerivedFg(java.lang.String... args)
@Nonnull public DBField setDerivedFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setDescription(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean disableFieldRecycler(java.lang.String... args)
@Nonnull public DBField setDisableFieldRecycler(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean disableJournalData(java.lang.String... args)
@Nonnull public DBField setDisableJournalData(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayFormat(java.lang.String... args)
@Nonnull public DBField setDisplayFormat(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 DBField setDisplayName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayType(java.lang.String... args)
@CheckReturnValue public boolean isEncryptedFg(java.lang.String... args)
@Nonnull public DBField setEncryptedFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFactoryJavaClass(java.lang.String... args)
@Nonnull public DBField setFactoryJavaClass(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 DBField setFinalFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setFormula(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnegative public int getIncrementalCacheSize(java.lang.String... args)
@Nonnull public DBField setIncrementalCacheSize(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isIncrementalFg(java.lang.String... args)
@Nonnull public DBField setIncrementalFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isInternalUseOnly(java.lang.String... args)
@Nonnull public DBField setInternalUseOnly(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isInClass(java.lang.String... args)
@CheckReturnValue public boolean isKeyFg(java.lang.String... args)
@Nonnull public DBField setKeyFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isKeyWord(java.lang.String... args)
@Nonnull public DBField setKeyWord(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isLazyLoadFg(java.lang.String... args)
@Nonnull public DBField setLazyLoadFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getLinkDisplayName(java.lang.String... args)
@Nonnull public DBField setLinkDisplayName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBClassAbstract getLinkedClass(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBClassAbstract findLinkedClass(java.lang.String... args) throws NotFoundException
DBClassAbstract
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBClassAbstract was not found@Nonnull public DBField setLinkedClass(com.aspc.dal.dbobj.DBClassAbstract value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isLinkedTounchOnChange(java.lang.String... args)
@Nonnull public DBField setLinkedTounchOnChange(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setMandatory(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getMaxLength(java.lang.String... args)
@Nonnull public DBField setMaxLength(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getNotes(java.lang.String... args)
@Nonnull public DBField setNotes(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isObscureFg(java.lang.String... args)
@Nonnull public DBField setObscureFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBField getOnChangeField(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBField findOnChangeField(java.lang.String... args) throws NotFoundException
DBField
(String)args
- the optional argumentsNotFoundException
- DBField was not found@Nonnull public DBField setOnChangeField(com.aspc.dal.dbobj.DBField value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getOnChangeFormula(java.lang.String... args)
@Nonnull public DBField setOnChangeFormula(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getOnChangePath(java.lang.String... args)
@Nonnull public DBField setOnChangePath(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getOnChangeValue(java.lang.String... args)
@Nonnull public DBField setOnChangeValue(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getPlaceholder(java.lang.String... args)
@Nonnull public DBField setPlaceholder(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isRecordRecentLinks(java.lang.String... args)
@Nonnull public DBField setRecordRecentLinks(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSampleBadValues(java.lang.String... args)
@Nonnull public DBField setSampleBadValues(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSampleValues(java.lang.String... args)
@Nonnull public DBField setSampleValues(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSampleValuesDelimiter(java.lang.String... args)
@Nonnull public DBField setSampleValuesDelimiter(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isSearchFg(java.lang.String... args)
@Nonnull public DBField setSearchFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFieldSubType getSubType(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFieldSubType findSubType(java.lang.String... args) throws NotFoundException
DBFieldSubType
(String, Searchable)args
- the optional argumentsNotFoundException
- DBFieldSubType was not found@Nonnull public DBField setSubType(com.aspc.dal.dbobj.misc.DBFieldSubType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setType(com.aspc.dal.dbobj.misc.FieldTypes value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setUnique(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getValidateMaxValue(java.lang.String... args)
@Nonnull public DBField setValidateMaxValue(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getValidateMinValue(java.lang.String... args)
@Nonnull public DBField setValidateMinValue(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBField setValidationFormula(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBMessage getValidationMessage(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBMessage findValidationMessage(java.lang.String... args) throws NotFoundException
DBMessage
(String,
Searchable)args
- the optional argumentsNotFoundException
- DBMessage was not found@Nonnull public DBField setValidationMessage(com.aspc.dal.message.DBMessage value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getValidationMsg(java.lang.String... args)
@Nonnull public DBField setValidationMsg(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getValidationRegularExpression(java.lang.String... args)
@Nonnull public DBField setValidationRegularExpression(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBField create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<DBField> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBField 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 getFieldId()
@CheckReturnValue public boolean canParentRemoveChild()
@CheckReturnValue public boolean canParentClearChild()
@CheckReturnValue @Nonnull public java.lang.String displayName()
displayName
in class DBObject
@CheckReturnValue @Nonnull public final java.lang.String getKey()
@CheckReturnValue public boolean isNumber()
@CheckReturnValue public boolean isMultiLingual()
@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
DBObject
extValidateField
in class DBObject
field
- The field to be validatedlist
- The validation listjava.lang.Exception
- a serious error@CheckReturnValue @Nonnull public final java.lang.String getUniqueKeyPrefix() throws NotFoundException
NotFoundException
- A serious problem.@CheckReturnValue @Nonnull public final java.lang.String getIndexPrefix() throws NotFoundException
NotFoundException
- A serious problem@CheckReturnValue @Nonnull public java.lang.String makeSQLString(@Nonnull DataSource ds, @Nonnull java.lang.Object value) throws java.lang.Exception
ds
- The datasource to usevalue
- The value to parse.java.lang.Exception
- A serious problem.@CheckReturnValue @Nullable public java.lang.String makeSQLKeyString(@Nonnull DataSource ds, @Nullable java.lang.Object inValue) throws java.lang.Exception
ds
- The datasource to useinValue
- The value to parsejava.lang.Exception
- A serious problem@CheckReturnValue @Nullable public java.lang.Object preparedSQLKeyString(@Nonnull DataSource ds, @Nullable java.lang.Object inValue) throws java.lang.Exception
ds
- The datasource to useinValue
- The value to parsejava.lang.Exception
- A serious problem@CheckReturnValue @Nonnull public java.lang.String makeFormattedString(@Nonnull DataSource ds, @Nullable java.lang.Object inValue, @Nullable java.lang.String specificFormat, @Nullable FldParams params)
params
- The field parameters to used ( TIMEZONE for one)ds
- The datasource to useinValue
- The value to parsespecificFormat
- The format to use.@CheckReturnValue public long getRecycleCount()
@CheckReturnValue @Nonnull public LayerField recycle(@Nonnull LayerField lf)
lf
- the field layer@CheckReturnValue @Nonnull public java.lang.String makeString(@Nonnull DataSource ds, @Nullable java.lang.Object inValue)
ds
- The datasource to use.inValue
- The value to parse.@CheckReturnValue @Nullable public java.lang.Object parse(@Nonnull DataSource ds, @Nullable java.lang.Object inData) throws java.lang.Exception
ds
- The data source to useinData
- The data to parse.java.lang.Exception
- A serious problem@CheckReturnValue @Nonnull public static java.lang.String sTypeName(int type)
type
- The field type@CheckReturnValue @Nullable public DBClass getBaseDBClass()
@CheckReturnValue @Nullable public DBClassAbstract getBaseDBClassAbstract()
@CheckReturnValue @Nullable public GlobalKey getBaseClassGid()
@Nullable public final LayerField getLayerField(@Nullable LayerField[] array)
array
- The sorted array of layer data.@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess(@Nonnull DBField field) throws DBAccessException
extCheckModifyAccess
in class DBObject
field
- The field to check.DBAccessException
- The access exception if you may not modify the field.@CheckReturnValue @Nullable protected final 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 problem@OverridingMethodsMustInvokeSuper protected void extPostSaveRecord(@Nonnegative long transNr)
extPostSaveRecord
in class DBObject
transNr
- The current transaction number.@CheckReturnValue public int compare(@Nonnull java.lang.Object inValue, @Nonnull java.lang.Object inCmpValue)
compare
in interface java.util.Comparator
inValue
- first valueinCmpValue
- second value@CheckReturnValue @Nonnull public java.lang.String getName()
@CheckReturnValue @Nonnull public java.lang.String getDescription()
@CheckReturnValue public final int getType()
@CheckReturnValue public final boolean isSearchable()
@CheckReturnValue public final boolean isIndexable()
@CheckReturnValue public final boolean isRuntimeEval()
@CheckReturnValue public boolean isIncremental()
@CheckReturnValue public final boolean isKey()
@CheckReturnValue public boolean isUnique()
@CheckReturnValue public final boolean isObscure()
@CheckReturnValue public final boolean isEncrypted()
@CheckReturnValue public final boolean isMandatory()
@CheckReturnValue public final boolean isArray()
@CheckReturnValue public final boolean isLazyLoad()
@CheckReturnValue @Nonnull public java.lang.String getAutoFillValue()
@CheckReturnValue @Nonnull public java.lang.String getAutoFillPredefinedValue()
@CheckReturnValue @Nullable public DBField getUpdateOnChangeField()
@CheckReturnValue @Nonnull public java.lang.String getUpdateOnChangeValue()
@CheckReturnValue @Nullable public Path getUpdateOnChangePath() throws InvalidPathException
InvalidPathException
- The path is not valid@CheckReturnValue @Nullable public DBFormula getUpdateOnChangeFormula() throws java.lang.Exception
java.lang.Exception
- A serious problem@CheckReturnValue @Nullable public GlobalKeyId getLinkedDBClassRootId()
@CheckReturnValue @Nullable public DBClass getLinkedDBClass()
@CheckReturnValue @Nonnull public DBClass findLinkedDBClass() throws NotFoundException
NotFoundException
- no such class@CheckReturnValue @Nullable public DBClassConcrete getLinkedDBClassConcrete()
@CheckReturnValue @Nullable public DBClassAbstract getLinkedDBClassAbstract()
@CheckReturnValue public final boolean isRecordingRecentLinks()
@CheckReturnValue public final boolean isLinked()
@CheckReturnValue @Nullable public final DBFormula getFormula() throws java.lang.Exception
java.lang.Exception
- A serious problem@CheckReturnValue public boolean hasAutoEnterFormula() throws java.lang.Exception
java.lang.Exception
- A serious problem@CheckReturnValue @Nullable public DBFormula getAutoEnterFormula() throws java.lang.Exception
java.lang.Exception
- A serious problem.@CheckReturnValue public boolean hasValidationFormula() throws java.lang.Exception
java.lang.Exception
- A serious problem@CheckReturnValue @Nullable public DBFormula getValidationFormula() throws java.lang.Exception
java.lang.Exception
- A serious problem@CheckReturnValue @Nonnull public java.lang.String toString()
@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class DBObject
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- a serious problem@CheckReturnValue @Nonnull public static java.lang.String makeDisplayName(@Nonnull java.lang.String fieldName)
fieldName
- The mixed case name to convert@OverridingMethodsMustInvokeSuper protected void clearCache(@Nullable GlobalKey changedKey)
clearCache
in class DBObject
changedKey
- The key that has changed.@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
extPreSaveRecord
in class DBObject
java.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extPreDeleteRecord() throws java.lang.Exception
extPreDeleteRecord
in class DBObject
java.lang.Exception
- a serious problem@CheckReturnValue public final long makeRowId()
@CheckReturnValue @Nonnull public FieldValueFactory makeFactory()
public static void sortLayerArray(@Nonnull LayerField[] array)
array
- The array to be sorted.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.