public class DBFileLocation extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONST_STATUS_RENAME_LOGIC_DONE
A public const variable to indicate the execution status of a particular code segment
|
static java.lang.String |
CONST_STATUS_RESET
A public const variable to indicate the execution status of a particular code segment
|
static GlobalId |
DBCLASS_GID
The physical location of a version of a file.
|
static java.lang.String |
DBCLASS_NAME
The physical location of a version of a file.
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBFileLocation(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addDocsDir(java.lang.String url)
append docs dir to url
|
static DBFileLocation |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
Additional business logic when a field is updated.
|
protected void |
extCheckModifyAccess(DBField field)
Additional access checking for write access of this object.
|
protected void |
extFixUp()
The extended fix up routine
|
protected void |
extPreSaveRecord()
Additional functionality WHILE saving this record to the database.
|
protected void |
extPreValidate()
OVERRIDE To add functionality to before validation is called.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
DBFile |
findFile(java.lang.String... args)
The file that is stored at this location.
|
static DBFileLocation |
findKey(DataSource ds,
java.lang.String key)
Find the target for this class by the primary key
|
DBFileStoreVolume |
findVolume(java.lang.String... args)
The volume that the file is stored on.
|
DBFile |
getFile(java.lang.String... args) |
java.lang.String |
getID(java.lang.String... args) |
java.lang.String |
getImportPath(java.lang.String... args) |
java.lang.String |
getImportURL(java.lang.String... args) |
static java.lang.String |
getRenameLogicExecutionStatus()
Provide a public read only property for selftest to verify whether a particular code segment was executed.
|
DBFileStore |
getStore()
Retrieves the file store the the associated volume is located on
|
java.lang.String |
getURLs(boolean requireAdminURL,
boolean haMode)
Get this list of URLs that file exists on
|
java.lang.String |
getVersion(java.lang.String... args) |
DBFileStoreVolume |
getVolume(java.lang.String... args) |
static DBQuery<DBFileLocation> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBFileLocation |
setFile(com.aspc.dal.file.DBFile value,
java.lang.String... args) |
DBFileLocation |
setID(java.lang.String value,
java.lang.String... args) |
DBFileLocation |
setImportPath(java.lang.String value,
java.lang.String... args) |
DBFileLocation |
setImportURL(java.lang.String value,
java.lang.String... args) |
DBFileLocation |
setVersion(java.lang.String value,
java.lang.String... args) |
DBFileLocation |
setVolume(com.aspc.dal.file.DBFileStoreVolume value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String CONST_STATUS_RESET
public static final java.lang.String CONST_STATUS_RENAME_LOGIC_DONE
public DBFileLocation(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue @Nonnull public java.lang.String getID(java.lang.String... args)
@Nonnull public DBFileLocation setID(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFile getFile(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFile findFile(java.lang.String... args) throws NotFoundException
DBFile
(Integer, Mandatory,
Searchable)args
- the optional argumentsNotFoundException
- DBFile was not found@Nonnull public DBFileLocation setFile(com.aspc.dal.file.DBFile value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getImportPath(java.lang.String... args)
@Nonnull public DBFileLocation setImportPath(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getImportURL(java.lang.String... args)
@Nonnull public DBFileLocation setImportURL(@MatchesPattern(value="[a-z]{3,5}://[\\-\\w\\*@\\./:\\\\~=]+(,[a-z]{3,5}://[\\w\\*@\\./:\\\\~=]+)*,*") java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getVersion(java.lang.String... args)
@Nonnull public DBFileLocation setVersion(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFileStoreVolume getVolume(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFileStoreVolume findVolume(java.lang.String... args) throws NotFoundException
DBFileStoreVolume
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBFileStoreVolume was not found@Nonnull public DBFileLocation setVolume(com.aspc.dal.file.DBFileStoreVolume value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBFileLocation 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<DBFileLocation> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBFileLocation findKey(@Nonnull DataSource ds, @Nonnull java.lang.String key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problem@CheckReturnValue @Nullable public DBFileStore getStore()
@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 problemDBObject.eventFieldUpdated( DBField, Object, GlobalKey, FldParams)
public java.lang.String getURLs(boolean requireAdminURL, boolean haMode) throws java.lang.Exception
requireAdminURL
- Require the admin URLhaMode
- Returns multiple URLs if required for HA (high availability)java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
extPreSaveRecord
in class DBObject
java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess(@Nonnull DBField field) throws DBAccessException
extCheckModifyAccess
in class DBObject
field
- the fieldDBAccessException
- No access to modify@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
extPreValidate
in class DBObject
java.lang.Exception
- a serious problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to be validatedjava.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
public static java.lang.String addDocsDir(java.lang.String url)
url
- url@CheckReturnValue public static java.lang.String getRenameLogicExecutionStatus()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.