public abstract class CommonDataSet extends java.lang.Object implements DataSet
| Constructor and Description |
|---|
CommonDataSet() |
| Modifier and Type | Method and Description |
|---|---|
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)
Returns null.
|
java.lang.String |
getFixedTaskFilterWhereClause()
Returns the where clause for filtering the main object to ensure that it's classtructureid, if there is one,
is a decendant of the root classtructureid as defined in a maxvar.
|
java.lang.String[] |
getMainObjectPrimaryKeys()
Retrieves the primary key attributes of the main object from Maximo meta data.
|
java.lang.String |
getMainObjectUID()
Retrieves the unique ID of the main object from Maximo meta data.
|
java.lang.String |
getMasterForSpec(java.lang.String objectname)
Implementation that searches the object-spec pairs obtained from getObjectSpecPairs() and returns the master
object name for the matching spec name.
|
java.lang.String |
getObjectUID(java.lang.String objectName)
Retrieves the unique ID of a given object from Maximo meta data.
|
ReconLinkerI |
getReconLinker()
whether the data set wants to handle linking...
|
int |
getRecordCount(java.util.Map uidKeys,
java.lang.String objectName,
java.lang.String classStructureID)
Returns -1.
|
java.lang.String |
getRootClassstructureID(java.lang.String objectName)
Helpers function that retrieves the root class structure id for a given object, using the maxvar that's
defined for it.
|
abstract java.lang.String |
getRootSpecMaxVar(java.lang.String objectname)
In many cases the root classstructure id for class specs of a data set is defined in a maxvar.
|
java.lang.String |
getSpecForMaster(java.lang.String objectname)
Implementation that searches the object-spec pairs obtained from getObjectSpecPairs() and returns the spec
name for the matching master object name.
|
java.lang.String |
getTableColumnNameForTaskFilter(java.lang.String attributeName)
Sinmply returns the attributeName itself.
|
java.lang.String |
getTableJoinWhereClauseForComparison(java.lang.String tableName,
java.util.Map uidKeys)
Throws IllegalArgumentException exception
|
java.lang.String |
getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
Returns null.
|
java.lang.String |
getTableNameForTaskFilter(java.lang.String attributeName)
Returns main object name.
|
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.
|
java.lang.String |
readMaxVar(java.lang.String varName,
boolean hasDefaultValue)
Get value of maxvar from database.
|
void |
setContext(DataSetContext context)
Saves the ReconContext object passed in to a protected data member context to be used by sub-classes.
|
void |
setDataSetName(java.lang.String datasetName)
Saves the ReconContext object passed in to a protected data member datasetName.
|
void |
setTaskFilterClause(java.lang.String filterClause) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributesExcludeList, getMainObjectName, getObjectNameDomainExcludeList, getObjectNameDomainID, getObjectSpecPairs, getReconLinkAttributeNamesForLink, getReconResultAttributeNamesForComparison, getReconResultAttributeNamesForLink, getTaskFilterAttributesDomainIDpublic void setContext(DataSetContext context)
setContext in interface DataSetcontext - The ReconContext passed in from recon engine.DataSet.setContextpublic java.lang.String getDataSetName()
DataSetgetDataSetName in interface DataSetDataSet.getDataSetNamepublic void setDataSetName(java.lang.String datasetName)
setDataSetName in interface DataSetdatasetName - The name that's assigned to this data set.DataSet.setDataSetNamepublic java.lang.String[] getMainObjectPrimaryKeys()
throws MXException,
java.rmi.RemoteException
getMainObjectPrimaryKeys in interface DataSetMXExceptionjava.rmi.RemoteExceptionDataSet.getMainObjectPrimaryKeyspublic java.lang.String getMainObjectUID()
throws java.rmi.RemoteException
getMainObjectUID in interface DataSetjava.rmi.RemoteExceptionDataSet.getMainObjectUIDpublic java.lang.String getObjectUID(java.lang.String objectName)
throws MXException,
java.rmi.RemoteException
getObjectUID in interface DataSetobjectName - The object name whose unique ID is to be obtainedMXExceptionjava.rmi.RemoteExceptionDataSet.getObjectUIDpublic java.lang.String getMasterForSpec(java.lang.String objectname)
getMasterForSpec in interface DataSetobjectname - The name of the spec object whose master object name is to be obtainedDataSet.getMasterForSpecpublic java.lang.String getSpecForMaster(java.lang.String objectname)
getSpecForMaster in interface DataSetobjectname - The name of the master object whose spec object name is to be obtainedDataSet.getSpecForMasterpublic java.lang.String getFixedTaskFilterWhereClause()
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
getFixedTaskFilterWhereClause in interface DataSetMXExceptionjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataSet.getFixedTaskFilterWhereClausepublic java.lang.String getRootClassstructureID(java.lang.String objectName)
throws MXException,
java.rmi.RemoteException
getRootClassstructureID in interface DataSetobjectName - The name of the object whose root class structure id is to be retrievedMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String readMaxVar(java.lang.String varName,
boolean hasDefaultValue)
throws MXException,
java.rmi.RemoteException
varname - Name of the maxvar.getDefault - If True, gets default value of maxvar from maxvartype table.
If False, gets value of maxvar from maxvars table, with
orgid and siteid both null.MXExceptionjava.rmi.RemoteExceptionpublic abstract java.lang.String getRootSpecMaxVar(java.lang.String objectname)
objectName - The name of the object whose root class structure id is to be retrievedpublic java.lang.String getTableJoinWhereClauseForComparison(java.lang.String tableName,
java.util.Map uidKeys)
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
getTableJoinWhereClauseForComparison in interface DataSettableName - The name of the table from which data is to be retrieved.uidKeys - 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.MXExceptionjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataSet.getTableJoinWhereClauseForComparisonpublic java.lang.String getTableNameForTaskFilter(java.lang.String attributeName)
getTableNameForTaskFilter in interface DataSetattributeName - The attribute name whose table name is inquiredDataSet.getTableNameForTaskFilterpublic java.lang.String getTableColumnNameForTaskFilter(java.lang.String attributeName)
getTableColumnNameForTaskFilter in interface DataSetattributeName - The attribute name whose table column name is inquiredDataSet.getTableColumnNameForTaskFilterpublic java.lang.String[] getExtraTableNamesForComparison(java.lang.String tableName)
getExtraTableNamesForComparison in interface DataSettableName - The name of the table from which data is to be retrieved.DataSet.getExtraTableNamesForComparisonpublic java.lang.String getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
getTableJoinWhereClauseForTaskFilter in interface DataSettableName - The name of the table that needs to be joined with the main table.DataSet.getTableJoinWhereClauseForTaskFilterpublic int getRecordCount(java.util.Map uidKeys,
java.lang.String objectName,
java.lang.String classStructureID)
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
getRecordCount in interface DataSetuidKeys - The top level main object key values for this comparison.objectName - The name of the table to be counted.classStructureID - The class structure ID if the table involved is a spec objectMXExceptionjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataSet.getRecordCountpublic boolean isUnitOfMeasureAllowed(java.lang.String objectName)
isUnitOfMeasureAllowed in interface DataSetobjectName - The name of a subset.public java.lang.String getTaskFilterClause()
DataSetgetTaskFilterClause in interface DataSetpublic void setTaskFilterClause(java.lang.String filterClause)
setTaskFilterClause in interface DataSetpublic ReconLinkerI getReconLinker()
DataSetgetReconLinker in interface DataSet