public interface DataSet
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAttributesExcludeList(java.lang.String objectname)
Not all attributes of an object may be available for linking, comparison filtering, or comparison.
|
java.lang.String |
getDataSetName()
Returns the data set name that's assign to the data set by the engine through setDataSetName().
|
java.lang.String[] |
getExtraTableNamesForComparison(java.lang.String tableName)
When retrieving data from a table for comparison, other tables may need to be joined in in order to
get the correct results.
|
java.lang.String |
getFixedTaskFilterWhereClause()
The recon engine calls this method to check if the data set wants to impose a global where clause for
filtering the root objects for all recon tasks at link time, in addition to task filters.
|
java.lang.String |
getMainObjectName()
The data set class needs to implement this method to provide the name of its main object that will be
reconciled.
|
java.lang.String[] |
getMainObjectPrimaryKeys()
Returns the names of the primary keys of the main object of this data set, in the order of primary key
sequence as defined in MAXATTRIBUTES.
|
java.lang.String |
getMainObjectUID()
Returns the name of the Maximo unique ID of the main object of this data set.
|
java.lang.String |
getMasterForSpec(java.lang.String specObjectName)
Convenience method that returns the master object name of a spec object, consistent with the information
provided by getObjectSpecPairs.
|
java.lang.String[] |
getObjectNameDomainExcludeList(java.lang.String objectName)
Not all objects defined in the object name domain may be available for linking, comparison filtering, records
comparison or attribute comparison.
|
java.lang.String |
getObjectNameDomainID()
All objects, including class spec objects, that can be linked or compared with the data set must be defined
in a synonym domain.
|
java.lang.String[][] |
getObjectSpecPairs()
If the reconciliation can be performed on a class specification of an object, the recon engine will read in
the spec object data along with that of the master object.
|
java.lang.String |
getObjectUID(java.lang.String objectName)
Convenience function that returns the Maximo unique ID of a given object.
|
ResultTableAttributes |
getReconLinkAttributeNamesForLink(boolean isDataSet1)
The data set uses this method to map database table columns that are specific to the data set to the ones
in the RECONLINK db table for the successful results of the linking phase.
|
ReconLinkerI |
getReconLinker()
whether the data set wants to handle linking...
|
ResultTableAttributes |
getReconResultAttributeNamesForComparison(boolean isDataSet1)
The data set uses this method to map database table columns that are specific to the data set to the ones
in the RECONRESULT table for the successful or unsuccessful results of the comparison phase.
|
ResultTableAttributes |
getReconResultAttributeNamesForLink(boolean isDataSet1)
The data set uses this method to map database table columns that are specific to the data set to the ones
in the RECONRESULT table for the successful results of the linking phase.
|
int |
getRecordCount(java.util.Map rootValues,
java.lang.String tableName,
java.lang.String classStructureID)
For record match comparison, the recon engine reads in the proper data and count the numbers of them for
comparison.
|
java.lang.String |
getRootClassstructureID(java.lang.String objectname)
If the reconciliation can be performed on a class specification of an object, it may be desired that only
decendants of a root class are included in the reconciliation process.
|
java.lang.String |
getSpecForMaster(java.lang.String masterObjectName)
Convenience method that returns the spec object name of a master object, consistent with the information
provided by getObjectSpecPairs.
|
java.lang.String |
getTableColumnNameForTaskFilter(java.lang.String attributeName)
Returns the true table column name for an attribute name defined in the task filter attribute domain.
|
java.lang.String |
getTableJoinWhereClauseForComparison(java.lang.String tableName,
java.util.Map parentValues)
At the comparison phase the recon engine needs to read in more data using the top level main objects calculated
from the linking process.
|
java.lang.String |
getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
In case that one or more attributes of the task filter attribute domain are from database tables other than
the main table, the data set class needs to implement this method to tell the recon engine, in the form of a
SQL where clause, how to join those other tables with the main table.
|
java.lang.String |
getTableNameForTaskFilter(java.lang.String attributeName)
Returns the table name for an attribute name defined in the task filter attribute domain.
|
java.lang.String |
getTaskFilterAttributesDomainID()
The available attributes of task filters for any data set are defined by synonym domain.
|
java.lang.String |
getTaskFilterClause()
Set a where clause to add to the task filter
|
boolean |
isUnitOfMeasureAllowed(java.lang.String objectName)
Determines whether the dataset allows use of the "Unit of Measure" attribute for
all or part of its subtypes.
|
void |
setContext(DataSetContext context)
The recon engine calls this method to pass a ReconContext object to the data set.
|
void |
setDataSetName(java.lang.String datasetName)
The recon engine calls this method to assign a name to the data set.
|
void |
setTaskFilterClause(java.lang.String filterClause) |
void setContext(DataSetContext context)
context
- The ReconContext passed in from recon engine.ReconContext
void setDataSetName(java.lang.String datasetName)
datasetName
- The name that's assigned to this data set.java.lang.String getDataSetName()
java.lang.String getMainObjectName()
java.lang.String[] getMainObjectPrimaryKeys() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.String getMainObjectUID() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.String getObjectUID(java.lang.String objectName) throws MXException, java.rmi.RemoteException
objectName
- The object name whose unique ID is to be obtainedMXException
java.rmi.RemoteException
java.lang.String getFixedTaskFilterWhereClause() throws MXException, java.rmi.RemoteException, java.sql.SQLException
MXException
java.rmi.RemoteException
java.sql.SQLException
java.lang.String getTaskFilterAttributesDomainID()
java.lang.String getTableColumnNameForTaskFilter(java.lang.String attributeName)
attributeName
- The attribute name whose table column name is inquiredgetTaskFilterAttributesDomainID.
java.lang.String getTableNameForTaskFilter(java.lang.String attributeName)
attributeName
- The attribute name whose table name is inquiredgetTaskFilterAttributesDomainID.
java.lang.String getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
tableName
- The name of the table that needs to be joined with the main table.getTaskFilterAttributesDomainID.
java.lang.String getObjectNameDomainID()
java.lang.String[] getObjectNameDomainExcludeList(java.lang.String objectName)
objectName
- Name of object that uses the domain. This is used to distiguish the circumstance of the call.
The value "RECONLINKCLAUSE" is for linking, "RECONCOMPFLTRAST" or "RECONCOMPFLTRDPA" is for comparison filter,
"RECONRCDCLAUSE" is for records comparison and "RECONATTRCLAUSE" is for attribute comparison.getObjectNameDomainID
java.lang.String[] getAttributesExcludeList(java.lang.String objectname)
objectName
- Name of object whose attributes are to be excluded.getObjectNameDomainID
java.lang.String getRootClassstructureID(java.lang.String objectname) throws MXException, java.rmi.RemoteException
objectName
- Name of spec object whose root class structure id is defined.MXException
java.rmi.RemoteException
java.lang.String[][] getObjectSpecPairs()
java.lang.String getMasterForSpec(java.lang.String specObjectName)
specObjectName
- The name of the spec object whose master object name is to be obtainedgetObjectSpecPairs
java.lang.String getSpecForMaster(java.lang.String masterObjectName)
masterObjectName
- The name of the master object whose spec object name is to be obtainedgetObjectSpecPairs
ResultTableAttributes getReconLinkAttributeNamesForLink(boolean isDataSet1)
ResultTableAttributes
ResultTableAttributes getReconResultAttributeNamesForLink(boolean isDataSet1)
ResultTableAttributes
ResultTableAttributes getReconResultAttributeNamesForComparison(boolean isDataSet1)
ResultTableAttributes
java.lang.String getTableJoinWhereClauseForComparison(java.lang.String tableName, java.util.Map parentValues) throws MXException, java.rmi.RemoteException, java.sql.SQLException
tableName
- The name of the table from which data is to be retrieved.parentValues
- The key values of the main table. this should at least include the unique IDs and
primary key values. This parameter maps attribute names to attribute values.MXException
java.rmi.RemoteException
java.sql.SQLException
java.lang.String[] getExtraTableNamesForComparison(java.lang.String tableName)
tableName
- The name of the table from which data is to be retrieved.getTableJoinWhereClauseForComparison
int getRecordCount(java.util.Map rootValues, java.lang.String tableName, java.lang.String classStructureID) throws MXException, java.rmi.RemoteException, java.sql.SQLException
rootValues
- The top level main object key values for this comparison.tableName
- The name of the table to be counted.classStructureID
- The class structure ID if the table involved is a spec objectMXException
java.rmi.RemoteException
java.sql.SQLException
boolean isUnitOfMeasureAllowed(java.lang.String objectName)
objectName
- The name of a subset.java.lang.String getTaskFilterClause()
filter
- void setTaskFilterClause(java.lang.String filterClause)
ReconLinkerI getReconLinker()