A - B - public class Relationship<A extends AppUser,B extends DataObject> extends AbstractRelationship<A,B,Relationship.Link<A,B>> implements TableContentProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
Relationship.Link<A extends AppUser,B extends DataObject> |
LinkManager.JoinLinkFilterIterator, LinkManager.JoinLinkMapper, LinkManager.LeftAcceptFilter, LinkManager.LinkInput, LinkManager.LinkResult, LinkManager.RightAcceptFilterIndexedLinkManager.LinkFilter, IndexedLinkManager.LinkProvider<T extends IndexedLinkManager.Link<L,R>,L extends Indexed,R extends Indexed>, IndexedLinkManager.LinkUpdater, IndexedLinkManager.SQLLinkFilterDataObjectFactory.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.TimeFilterUSE_JOINAUTO_CREATE_TABLES_FEATURE, COMPOSITES_SUFFIX, REJECT_MULTIPLE_RESULT_FEATURE, res| Modifier | Constructor and Description |
|---|---|
|
Relationship(AppContext c,
java.lang.String tag) |
protected |
Relationship(AppContext c,
java.lang.String tag,
DataObjectFactory<B> target_fac)
Constructor to allow sub-classes to set factory
|
protected |
Relationship(AppContext c,
java.lang.String tag,
DataObjectFactory<B> b_fac,
java.lang.String field)
Extension constructor to allow sub-classes to set factory and field
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSummaryContent(ContentBuilder cb) |
protected java.lang.String[] |
getDefaultRoles(AppContext c,
java.lang.String table)
generate a list of the default roles to create when bootstrapping a table.
|
protected TableSpecification |
getDefaultTableSpecification(AppContext c,
java.lang.String table,
IndexedProducer<A> leftFac,
java.lang.String leftField,
IndexedProducer<B> rightFac,
java.lang.String rightField) |
protected SQLFilter<Relationship.Link<A,B>> |
getFilterFromRole(java.lang.String role)
get a filter corresponding to the role.
|
static java.lang.String |
getReferenceProp(java.lang.String tag) |
java.util.Set<java.lang.String> |
getRelationships()
Get the set of relationships supported by this type.
|
protected Relationship.Link<A,B> |
makeBDO(Repository.Record res)
Construct a new Blank DataObject of the correct Class
This method takes a Record as an argument.
|
static void |
makeTable(AppContext conn,
java.lang.String my_table,
java.lang.String peer_table) |
canCreate, hasRole, selectLink, setRoleaddRelationships, getTargetFactory, getTargetFilter, getTargetRoleFilter, getUserFilter, getUserFilter, getUserRoleFilter, hasRelationFilter, personInRelationFilter, providesRelationshipfind, find, getFilter, getFilterResult, getInput, getLeftFactory, getLeftFilter, getLeftFilter, getLeftInput, getLeftJoinFilter, getLeftRemoteFilter, getLinkCount, getLinkIterator, getRightFactory, getRightFilter, getRightFilter, getRightInput, getRightJoinFilter, getRightRemoteFilter, getSelectors, getTarget, isLeft, isRightaddLeftSet, addRightSet, getDefaultTableSpecification, getFinalTableSpecification, getFormUpdate, getHistoryHandler, getLeftField, getLeftFilter, getLeftProducer, getLeftSet, getLink, getRightField, getRightFilter, getRightProducer, getRightSet, getTableSpecification, makeHistoryHandler, makeLink, modifyHistoryTable, setContext, setHistoryHandler, updateHistory, useAutoHistoryall, allowPreSelect, 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, getID, getIndex, getInput, getInput, getLogger, getMaxIdentifierLength, getNullable, getOptional, getOrder, getProperty, getReferenced, getReferenceFieldType, getReferenceFieldType, getRemoteFilter, getRemoteSQLFilter, getResult, getResult, getSelectFilter, getSelector, getSelector, getSupress, 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, updateTableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextpublic Relationship(AppContext c, java.lang.String tag)
protected Relationship(AppContext c, java.lang.String tag, DataObjectFactory<B> b_fac, java.lang.String field)
protected Relationship(AppContext c, java.lang.String tag, DataObjectFactory<B> target_fac)
c - tag - target_fac - public static java.lang.String getReferenceProp(java.lang.String tag)
protected TableSpecification getDefaultTableSpecification(AppContext c, java.lang.String table, IndexedProducer<A> leftFac, java.lang.String leftField, IndexedProducer<B> rightFac, java.lang.String rightField)
getDefaultTableSpecification in class LinkManager<Relationship.Link<A extends AppUser,B extends DataObject>,A extends AppUser,B extends DataObject>protected java.lang.String[] getDefaultRoles(AppContext c, java.lang.String table)
c - table - protected Relationship.Link<A,B> makeBDO(Repository.Record res) throws DataFault
DataObjectFactorymakeBDO in class DataObjectFactory<Relationship.Link<A extends AppUser,B extends DataObject>>res - Record to create object fromDataFaultprotected SQLFilter<Relationship.Link<A,B>> getFilterFromRole(java.lang.String role) throws UnknownRelationshipException
RelationshipLinkManagergetFilterFromRole in class RelationshipLinkManager<A extends AppUser,B extends DataObject,Relationship.Link<A extends AppUser,B extends DataObject>>role - UnknownRelationshipExceptionpublic static void makeTable(AppContext conn, java.lang.String my_table, java.lang.String peer_table) throws DataFault
DataFaultpublic java.util.Set<java.lang.String> getRelationships()
RelationshipProvidergetRelationships in interface RelationshipProvider<A extends AppUser,B extends DataObject>public void addSummaryContent(ContentBuilder cb)
addSummaryContent in interface TableContentProvider