public class DBFileStore extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
A location in which internal documents can be stored.
|
static java.lang.String |
DBCLASS_NAME
A location in which internal documents can be stored.
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBFileStore(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static DBFileStore |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected GlobalKey |
extGetDerivedGlobalKey(DBField field,
FldParams params)
Calculate the derived global key for this field.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Gets the value for the given field, using the given params, if any.
|
static DBFileStore |
find(DataSource ds)
Find the default file store for this layer.
|
DBFileStoreVolume |
findCurrentVolume(java.lang.String... args)
The current volume where files are to be stored.
|
static DBFileStore |
findKey(DataSource ds,
java.lang.String key)
Find the target for this class by the primary key
|
DBLocation |
findLocation(java.lang.String... args)
The location of the DBFileStore.
|
static DBFileStore[] |
findPreferred(DataSource ds)
Finds the list of preferred file stores for the login associated with the
given datasource, sorted by sequence.
|
static DBFileStore[] |
findPreferred(VirtualDB layer,
Login login,
DBTimeZone tz)
Finds the list of preferred file stores for the login passed .
|
static DBFileStore[] |
getActiveFileStoreAndItsAlternate(DBFileStore[] fs)
This function will check and populate the primary file store and its alternate into the lst object.
|
DBObject[] |
getAlternateStores()
get alternative store
|
java.lang.String |
getCode(java.lang.String... args) |
DBFileStoreVolume |
getCurrentVolume(java.lang.String... args) |
java.lang.String |
getLabel(java.lang.String... args) |
DBLocation |
getLocation(java.lang.String... args) |
java.lang.String |
getURLs(boolean requireAdminURL,
boolean haMode,
int layerID)
Returns the connection URL to the current storage location.
|
DBObject[] |
getVolumes()
get the volumes
|
boolean |
isActive(java.lang.String... args) |
static DBQuery<DBFileStore> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
static void |
populateActiveFileStoreAndItsAlternate(java.util.Set lst,
DBFileStore fs)
This function will check and populate the primary file sotre and its alternate into the lst object.
|
DBFileStore |
setCode(java.lang.String value,
java.lang.String... args) |
DBFileStore |
setLabel(java.lang.String value,
java.lang.String... args) |
DBFileStore |
setLocation(com.aspc.dal.dbobj.misc.DBLocation 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, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, 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, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBFileStore(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 getCode(java.lang.String... args)
@Nonnull public DBFileStore setCode(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isActive(java.lang.String... args)
@CheckReturnValue @Nullable public DBFileStoreVolume getCurrentVolume(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFileStoreVolume findCurrentVolume(java.lang.String... args) throws NotFoundException
DBFileStoreVolume
(Integer, Derived, Searchable)args
- the optional argumentsNotFoundException
- DBFileStoreVolume was not found@CheckReturnValue @Nonnull public java.lang.String getLabel(java.lang.String... args)
@Nonnull public DBFileStore setLabel(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBLocation getLocation(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBLocation findLocation(java.lang.String... args) throws NotFoundException
DBLocation
(String,
Unique, Searchable)args
- the optional argumentsNotFoundException
- DBLocation was not found@Nonnull public DBFileStore setLocation(com.aspc.dal.dbobj.misc.DBLocation value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBFileStore 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<DBFileStore> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBFileStore 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 protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedGlobalKey
in class DBObject
field
- The field that is being changedparams
- The extra parametersjava.lang.Exception
- A serious problem. In general validation is done later.@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
field
- the field to get the value ofparams
- the field paramsjava.lang.Exception
- a serious problempublic static DBFileStore find(DataSource ds) throws java.lang.Exception
ds
- The layerjava.lang.Exception
- A serious problempublic static DBFileStore[] findPreferred(DataSource ds) throws java.lang.Exception
ds
- The datasoure ( including timezone)java.lang.Exception
- A serious problempublic static DBFileStore[] getActiveFileStoreAndItsAlternate(DBFileStore[] fs)
fs
- DBFileStore a list of primary file storespublic static void populateActiveFileStoreAndItsAlternate(java.util.Set lst, DBFileStore fs)
lst
- Set filestore should populate all the filestores in this objectfs
- DBFileStore the primary file storepublic static DBFileStore[] findPreferred(VirtualDB layer, Login login, DBTimeZone tz) throws java.lang.Exception
layer
- The layerlogin
- the logintz
- the timezonejava.lang.Exception
- A serious problempublic java.lang.String getURLs(boolean requireAdminURL, boolean haMode, int layerID) throws java.lang.Exception
requireAdminURL
- Return the URL for connecting as a administrator rather then as a userhaMode
- Returns multiple urls if required for HA (high availability)layerID
- The layer of the filejava.lang.Exception
- Serious errorpublic DBObject[] getAlternateStores()
public DBObject[] getVolumes()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.