public class PublicationTemplate extends DBObject
DESIGN
Process Publication Command
The process publication command will take the following form:
JOB SCHEDULE { process_cmd } QUEUE process_queue
ON_COMPLETE {
UPDATE PublicationEditionFile
SET status = ok
WHERE key IS $id$
}
ON_ERROR {
UPDATE PublicationEditionFile
SET status = 'failed'
WHERE key IS $id$
}
This command will be run for all PublicationTemplate classes linked to the Publication. The process_cmd and process_queue fields correspond to fields on the PublicationTemplate class. When the job is run it will create the PublicationEditionFile record.
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
The template used to generate a publication, which is running on "DROID
".
|
static java.lang.String |
DBCLASS_NAME
The template used to generate a publication, which is running on "DROID
".
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
PublicationTemplate(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static PublicationTemplate |
create(MutableDataSource mds)
Make a new instance of this class.
|
DBFile |
findFile(java.lang.String... args)
The file the template is stored as.
|
static PublicationTemplate |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
Publication |
findPublication(java.lang.String... args)
link to Publication object, the publication generated by the template.
|
DBQueue |
findQueue(java.lang.String... args)
The queue to submit this template for processing.
|
java.lang.String |
getCommand(java.lang.String... args) |
DBFile |
getFile(java.lang.String... args) |
int |
getID(java.lang.String... args) |
Publication |
getPublication(java.lang.String... args) |
DBQueue |
getQueue(java.lang.String... args) |
static DBQuery<PublicationTemplate> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
PublicationTemplate |
setCommand(java.lang.String value,
java.lang.String... args) |
PublicationTemplate |
setFile(com.aspc.dal.file.DBFile value,
java.lang.String... args) |
PublicationTemplate |
setID(int value,
java.lang.String... args) |
PublicationTemplate |
setPublication(com.aspc.dal.publication.Publication value,
java.lang.String... args) |
PublicationTemplate |
setQueue(com.aspc.dal.job.DBQueue 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, extGetDerivedGlobalKey, extGetDerivedValue, 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 PublicationTemplate(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 PublicationTemplate setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getCommand(java.lang.String... args)
@Nonnull public PublicationTemplate setCommand(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 PublicationTemplate setFile(com.aspc.dal.file.DBFile value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Publication getPublication(java.lang.String... args)
@CheckReturnValue @Nonnull public final Publication findPublication(java.lang.String... args) throws NotFoundException
Publication
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- Publication was not found@Nonnull public PublicationTemplate setPublication(com.aspc.dal.publication.Publication value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBQueue getQueue(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBQueue findQueue(java.lang.String... args) throws NotFoundException
DBQueue
(String, Searchable)args
- the optional argumentsNotFoundException
- DBQueue was not found@Nonnull public PublicationTemplate setQueue(com.aspc.dal.job.DBQueue value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static PublicationTemplate 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<PublicationTemplate> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static PublicationTemplate 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 problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.