public class ImportedAndExportedKeysSearchCallbackFilteredByPKs extends ImportedAndExportedKeysSearchCallback
EXPORT, FK_INDEXES, IMPORT, PK_INDEXES, SCHEMANAME_INDEXES, TABLENAME_INDEXES
ALLOW_MODE, DENY_MODE, NO_MODE
Constructor and Description |
---|
ImportedAndExportedKeysSearchCallbackFilteredByPKs(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...
|
getEdges
createFKEdge, getConnection, getNodesFromExportedKeys, getNodesFromImportAndExportKeys, getNodesFromImportedKeys
getFilteredNodes, getFilteringMode, searchNode, setAllowedNodes, setAllowedNodes, setDeniedNodes, setDeniedNodes
public ImportedAndExportedKeysSearchCallbackFilteredByPKs(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
AbstractNodesFilterSearchCallback
nodeAdded
in interface ISearchCallback
nodeAdded
in class AbstractNodesFilterSearchCallback
node
- node that has been added.SearchException
protected IEdge newEdge(ResultSet rs, int type, String from, String to, String fkColumn, String pkColumn) throws SearchException
AbstractMetaDataBasedSearchCallback
newEdge
in class AbstractMetaDataBasedSearchCallback
rs
- 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–2016. All rights reserved.