public class DataStore extends ClassificationFactory<DataStore.Data>
DataObjectFactory
for storing named data fixtures in the database.
Intended for semi-dynamic data like cryptographic material that should not be embedded in the application
or needs to be replicated in a multi-server deployment.Modifier and Type | Class and Description |
---|---|
class |
DataStore.Data |
ClassificationFactory.ClassificationCodeListInput, ClassificationFactory.ClassificationCreator, ClassificationFactory.ClassificationUpdater<C extends Classification>, ClassificationFactory.NameItemInput
DataObjectFactory.AbstractDataObjectInput, DataObjectFactory.AbstractFinder<X>, DataObjectFactory.DataObjectAcceptFilter, DataObjectFactory.DataObjectInput, DataObjectFactory.DataObjectIntegerInput, DataObjectFactory.DestAcceptFilter<T extends DataObject>, DataObjectFactory.FilterAdapter, DataObjectFactory.FilterCounter, DataObjectFactory.FilterExists, DataObjectFactory.FilterIterator, DataObjectFactory.FilterSelector, DataObjectFactory.FilterSet, DataObjectFactory.Finder, DataObjectFactory.MakeRemoteFilterVisitor<R extends DataObject>, DataObjectFactory.MatchFilter, DataObjectFactory.ReferencedAdapter<I extends Indexed>, DataObjectFactory.ReferenceIterator<I extends Indexed>, DataObjectFactory.SortingDataObjectInput, DataObjectFactory.TimeAcceptFilter<T extends DataObject>, DataObjectFactory.TimeFilter
AUTO_CREATE_TABLES_FEATURE, COMPOSITES_SUFFIX, REJECT_MULTIPLE_RESULT_FEATURE, res
Constructor and Description |
---|
DataStore(AppContext conn) |
Modifier and Type | Method and Description |
---|---|
TableSpecification |
getDefaultTableSpecification(AppContext c,
java.lang.String table)
Get the default table specification if the table is to be created.
|
protected java.util.Map<java.lang.String,Selector> |
getSelectors()
Get a Map of selectors to use for forms of this type.
|
java.lang.Class<DataStore.Data> |
getTarget()
Get a bound on the type of object produced by this factory for run-time checking.
|
protected DataStore.Data |
makeBDO(Repository.Record res)
Construct a new Blank DataObject of the correct Class
This method takes a Record as an argument.
|
addToHistorySpecification, allowNameChange, allowSpacesInName, compareTo, customiseForm, findFromString, getAutocompleteInput, getCanonicalName, getDataCache, getFormCreator, getFormUpdate, getHistoryFactory, getInput, getNameInput, getNameInput, getOptional, getOrder, getStringFinderFilter, getTranslations, makeFromString, postCreateTableSetup, postMakeByName, useAutoCompleteInput, validateNameFormat
all, allowPreSelect, canCreate, canUpdate, checkComposite, convertToDestinationFilter, equals, exists, find, find, find, find, find, getAllIterator, getComposite, getComposites, getComposites, getConfigTag, getContext, getCount, getDefaultRelationshipFilter, getDefaults, getDestFilter, getExcludeFilter, getFieldConstraints, getFieldHelp, getFilter, getFilter, getFilter, getFinalSelectFilter, getFinalTableSpecification, getFindFilter, getID, getIndex, getInput, getInput, getLogger, getMaxIdentifierLength, getNullable, getProperty, getReferenced, getReferenceFieldType, getReferenceFieldType, getRemoteFilter, getRemoteSQLFilter, getResult, getResult, getSelectFilter, getSelector, getSelector, getSupress, getTableSpecification, getTableStructureContributers, getTag, getUniqueIdName, hasComposite, hashCode, isMine, isMine, isMyReference, isValid, makeBDO, makeObject, makeRecord, makeReference, makeReference, matches, narrowSelector, narrowSelector, observeComposite, OrderBy, postSetContext, release, restrictDefaultInput, setComposites, setContext, setContext, setContextWithMake, setProperty, toString, updateTable
public DataStore(AppContext conn)
public TableSpecification getDefaultTableSpecification(AppContext c, java.lang.String table)
DataObjectFactory
getDefaultTableSpecification
in class ClassificationFactory<DataStore.Data>
c
- AppContexttable
- String table name.public java.lang.Class<DataStore.Data> getTarget()
DataObjectFactory
IndexedProducer.getTarget()
. Normally this method should be overridden
each time we make a sub-class that narrows the produced type. However
checks should still pass if the super-type method is retained.getTarget
in interface IndexedProducer<DataStore.Data>
getTarget
in interface Targetted<DataStore.Data>
getTarget
in class ClassificationFactory<DataStore.Data>
protected java.util.Map<java.lang.String,Selector> getSelectors()
DataObjectFactory
getSelectors
in class DataObjectFactory<DataStore.Data>
DataObjectFormFactory
protected DataStore.Data makeBDO(Repository.Record res) throws DataFault
DataObjectFactory
makeBDO
in class ClassificationFactory<DataStore.Data>
res
- Record to create object fromDataFault