public class ImportedKeysSearchCallbackFilteredByPKs extends ImportedKeysSearchCallback
EXPORT, FK_INDEXES, IMPORT, PK_INDEXES, SCHEMANAME_INDEXES, TABLENAME_INDEXESALLOW_MODE, DENY_MODE, NO_MODE| Constructor and Description |
|---|
ImportedKeysSearchCallbackFilteredByPKs(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap allowedPKs)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ITableFilter |
getFilter()
Get the primary key filter associated with the call back
|
protected IEdge |
newEdge(ResultSet rs,
int type,
String from,
String to,
String fkColumn,
String pkColumn)
This method can be overwritten by the sub-classes if they need to decorate
the edge (for instance, providing an Edge that contains the primary and
foreign keys used).
|
void |
nodeAdded(Object node)
Do nothing...
|
getEdgescreateFKEdge, getConnection, getNodesFromExportedKeys, getNodesFromImportAndExportKeys, getNodesFromImportedKeysgetFilteredNodes, getFilteringMode, searchNode, setAllowedNodes, setAllowedNodes, setDeniedNodes, setDeniedNodespublic ImportedKeysSearchCallbackFilteredByPKs(IDatabaseConnection connection, PrimaryKeyFilter.PkTableMap allowedPKs)
connection - database connectionallowedPKs - map of allowed rows, based on the primary keys (key is the name
of a table; value is a Set with allowed primary keys for that table)public ITableFilter getFilter()
public void nodeAdded(Object node) throws SearchException
AbstractNodesFilterSearchCallbacknodeAdded in interface ISearchCallbacknodeAdded in class AbstractNodesFilterSearchCallbacknode - node that has been added.SearchExceptionprotected IEdge newEdge(ResultSet rs, int type, String from, String to, String fkColumn, String pkColumn) throws SearchException
AbstractMetaDataBasedSearchCallbacknewEdge in class AbstractMetaDataBasedSearchCallbackrs - database meta-data result settype - type of relationship (IMPORT or EXPORT)from - name of the table representing the 'from' nodeto - name of the table representing the 'to' nodefkColumn - name of the foreign key columnpkColumn - name of the primary key columnSearchException - not thrown in this method (but might on sub-classes)Copyright © 2002-2017. All Rights Reserved.