public class BadKeyFactory extends DataObjectFactory<BadKeyFactory.BadKey> implements FieldValidator<java.lang.String>, TableTransitionContributor
| Modifier and Type | Class and Description |
|---|---|
class |
BadKeyFactory.BadKey |
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| Modifier and Type | Field and Description |
|---|---|
static TableTransitionKey |
REFINGERPRINT |
AUTO_CREATE_TABLES_FEATURE, COMPOSITES_SUFFIX, REJECT_MULTIPLE_RESULT_FEATURE, res| Constructor and Description |
|---|
BadKeyFactory(AppContext conn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allow(java.lang.String key)
Should the specified key be allowed
|
void |
forbid(java.lang.String key) |
protected TableSpecification |
getDefaultTableSpecification(AppContext c,
java.lang.String table)
Get the default table specification if the table is to be created.
|
SQLFilter<BadKeyFactory.BadKey> |
getKeyFilter(java.lang.String key) |
protected java.util.Map<java.lang.String,Selector> |
getSelectors()
Get a Map of selectors to use for forms of this type.
|
java.util.Map<TableTransitionKey,Transition> |
getTableTransitions() |
java.lang.Class<BadKeyFactory.BadKey> |
getTarget()
Get a bound on the type of object produced by this factory for run-time checking.
|
protected BadKeyFactory.BadKey |
makeBDO(Repository.Record res)
Construct a new Blank DataObject of the correct Class
This method takes a Record as an argument.
|
void |
reFingerprint() |
void |
validate(java.lang.String data) |
all, allowPreSelect, canCreate, canUpdate, checkComposite, convertToDestinationFilter, customiseForm, 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, getFormCreator, getFormUpdate, getID, getIndex, getInput, getInput, getInput, getLogger, getMaxIdentifierLength, getNullable, getOptional, getOrder, getProperty, getReferenced, getReferenceFieldType, getReferenceFieldType, getRemoteFilter, getRemoteSQLFilter, getResult, getResult, getSelectFilter, getSelector, getSelector, getSupress, getTableSpecification, getTableStructureContributers, getTag, getTranslations, getUniqueIdName, hasComposite, hashCode, isMine, isMine, isMyReference, isValid, makeBDO, makeObject, makeRecord, makeReference, makeReference, matches, narrowSelector, narrowSelector, observeComposite, OrderBy, postCreateTableSetup, postSetContext, release, restrictDefaultInput, setComposites, setContext, setContext, setContextWithMake, setProperty, toString, updateTablepublic static final TableTransitionKey REFINGERPRINT
public BadKeyFactory(AppContext conn)
protected java.util.Map<java.lang.String,Selector> getSelectors()
DataObjectFactorygetSelectors in class DataObjectFactory<BadKeyFactory.BadKey>DataObjectFormFactorypublic java.lang.Class<BadKeyFactory.BadKey> getTarget()
DataObjectFactoryIndexedProducer.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<BadKeyFactory.BadKey>getTarget in interface Targetted<BadKeyFactory.BadKey>getTarget in class DataObjectFactory<BadKeyFactory.BadKey>protected BadKeyFactory.BadKey makeBDO(Repository.Record res) throws DataFault
DataObjectFactorymakeBDO in class DataObjectFactory<BadKeyFactory.BadKey>res - Record to create object fromDataFaultprotected TableSpecification getDefaultTableSpecification(AppContext c, java.lang.String table)
DataObjectFactorygetDefaultTableSpecification in class DataObjectFactory<BadKeyFactory.BadKey>c - AppContexttable - String table name.public boolean allow(java.lang.String key)
throws DataException,
ParseException
key - DataExceptionParseExceptionpublic SQLFilter<BadKeyFactory.BadKey> getKeyFilter(java.lang.String key)
public void forbid(java.lang.String key)
throws ParseException,
DataFault,
DataException,
java.security.NoSuchAlgorithmException,
ValidateException
ParseExceptionDataFaultDataExceptionjava.security.NoSuchAlgorithmExceptionValidateExceptionpublic void validate(java.lang.String data)
throws FieldException
validate in interface FieldValidator<java.lang.String>FieldExceptionpublic java.util.Map<TableTransitionKey,Transition> getTableTransitions()
getTableTransitions in interface TableTransitionContributor