public class DBImport extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Stores details about the import of data into the system.
|
static java.lang.String |
DBCLASS_NAME
Stores details about the import of data into the system.
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBImport(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
protected ImportFieldDef |
buildFieldDef(DBImportField fld,
DBClass baseClass) |
protected void |
extFixUp()
The extended fix up routine for known problems.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
DBClassAbstract |
findBaseClass(java.lang.String... args)
Base Class.
|
Person |
findEnteredBy(java.lang.String... args)
Entered By.
|
DBFieldDelimiter |
findFieldDelimiter(java.lang.String... args)
Character that seperates fields in the file to be imported.
|
static DBImport |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBClassAbstract |
getBaseClass(java.lang.String... args) |
java.util.Date |
getCreatedDateTime(java.lang.String... args) |
java.lang.String |
getDatasourcePlugin(java.lang.String... args) |
java.lang.Class |
getDataSourcePluginClass() |
java.lang.String |
getDateFormat(java.lang.String... args) |
Person |
getEnteredBy(java.lang.String... args) |
DBFieldDelimiter |
getFieldDelimiter(java.lang.String... args) |
int |
getID(java.lang.String... args) |
Importer |
getImporter(DBClass baseClass,
Login login,
ImportSource is) |
java.lang.Object |
getPlugin() |
int |
getStartAtLine(java.lang.String... args) |
java.lang.String |
getTimeFormat(java.lang.String... args) |
boolean |
isOverwrite(java.lang.String... args) |
static DBQuery<DBImport> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBImport |
setBaseClass(com.aspc.dal.dbobj.DBClassAbstract value,
java.lang.String... args) |
DBImport |
setCreatedDateTime(java.util.Date value,
java.lang.String... args) |
DBImport |
setDatasourcePlugin(java.lang.String value,
java.lang.String... args) |
DBImport |
setDateFormat(java.lang.String value,
java.lang.String... args) |
DBImport |
setEnteredBy(com.aspc.dal.layers.aspc_app.contact.Person value,
java.lang.String... args) |
DBImport |
setFieldDelimiter(com.aspc.dal.dbobj.misc.DBFieldDelimiter value,
java.lang.String... args) |
DBImport |
setID(int value,
java.lang.String... args) |
DBImport |
setOverwrite(boolean value,
java.lang.String... args) |
DBImport |
setPlugin(java.lang.String value,
java.lang.String... args) |
DBImport |
setStartAtLine(int value,
java.lang.String... args) |
DBImport |
setTimeFormat(java.lang.String 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, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, 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 DBImport(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 public int getID(java.lang.String... args)
@Nonnull public DBImport setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBClassAbstract getBaseClass(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBClassAbstract findBaseClass(java.lang.String... args) throws NotFoundException
DBClassAbstract
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBClassAbstract was not found@Nonnull public DBImport setBaseClass(com.aspc.dal.dbobj.DBClassAbstract value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getCreatedDateTime(java.lang.String... args)
@Nonnull public DBImport setCreatedDateTime(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDatasourcePlugin(java.lang.String... args)
@Nonnull public DBImport setDatasourcePlugin(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDateFormat(java.lang.String... args)
@Nonnull public DBImport setDateFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Person getEnteredBy(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findEnteredBy(java.lang.String... args) throws NotFoundException
Person
(Integer, Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public DBImport setEnteredBy(com.aspc.dal.layers.aspc_app.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFieldDelimiter getFieldDelimiter(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFieldDelimiter findFieldDelimiter(java.lang.String... args) throws NotFoundException
DBFieldDelimiter
(String, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBFieldDelimiter was not found@Nonnull public DBImport setFieldDelimiter(com.aspc.dal.dbobj.misc.DBFieldDelimiter value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isOverwrite(java.lang.String... args)
@Nonnull public DBImport setOverwrite(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBImport setPlugin(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getStartAtLine(java.lang.String... args)
@Nonnull public DBImport setStartAtLine(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getTimeFormat(java.lang.String... args)
@Nonnull public DBImport setTimeFormat(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBQuery<DBImport> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBImport 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 problempublic Importer getImporter(DBClass baseClass, Login login, ImportSource is) throws java.lang.Exception
baseClass
- The base classlogin
- is
- java.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problemprotected ImportFieldDef buildFieldDef(DBImportField fld, DBClass baseClass) throws java.lang.Exception
fld
- baseClass
- The base classjava.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 problempublic java.lang.Object getPlugin() throws java.lang.Exception
java.lang.Exception
- a serious problempublic java.lang.Class getDataSourcePluginClass() throws java.lang.Exception
java.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.