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, wait
getAttributesExcludeList, getMainObjectName, getObjectNameDomainExcludeList, getObjectNameDomainID, getObjectSpecPairs, getReconLinkAttributeNamesForLink, getReconResultAttributeNamesForComparison, getReconResultAttributeNamesForLink, getTaskFilterAttributesDomainID
public void setContext(DataSetContext context)
setContext
in interface DataSet
context
- The ReconContext passed in from recon engine.DataSet.setContext
public java.lang.String getDataSetName()
DataSet
getDataSetName
in interface DataSet
DataSet.getDataSetName
public void setDataSetName(java.lang.String datasetName)
setDataSetName
in interface DataSet
datasetName
- The name that's assigned to this data set.DataSet.setDataSetName
public java.lang.String[] getMainObjectPrimaryKeys() throws MXException, java.rmi.RemoteException
getMainObjectPrimaryKeys
in interface DataSet
MXException
java.rmi.RemoteException
DataSet.getMainObjectPrimaryKeys
public java.lang.String getMainObjectUID() throws java.rmi.RemoteException
getMainObjectUID
in interface DataSet
java.rmi.RemoteException
DataSet.getMainObjectUID
public java.lang.String getObjectUID(java.lang.String objectName) throws MXException, java.rmi.RemoteException
getObjectUID
in interface DataSet
objectName
- The object name whose unique ID is to be obtainedMXException
java.rmi.RemoteException
DataSet.getObjectUID
public java.lang.String getMasterForSpec(java.lang.String objectname)
getMasterForSpec
in interface DataSet
objectname
- The name of the spec object whose master object name is to be obtainedDataSet.getMasterForSpec
public java.lang.String getSpecForMaster(java.lang.String objectname)
getSpecForMaster
in interface DataSet
objectname
- The name of the master object whose spec object name is to be obtainedDataSet.getSpecForMaster
public java.lang.String getFixedTaskFilterWhereClause() throws MXException, java.rmi.RemoteException, java.sql.SQLException
getFixedTaskFilterWhereClause
in interface DataSet
MXException
java.rmi.RemoteException
java.sql.SQLException
DataSet.getFixedTaskFilterWhereClause
public java.lang.String getRootClassstructureID(java.lang.String objectName) throws MXException, java.rmi.RemoteException
getRootClassstructureID
in interface DataSet
objectName
- The name of the object whose root class structure id is to be retrievedMXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException
public 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 DataSet
tableName
- 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.MXException
java.rmi.RemoteException
java.sql.SQLException
DataSet.getTableJoinWhereClauseForComparison
public java.lang.String getTableNameForTaskFilter(java.lang.String attributeName)
getTableNameForTaskFilter
in interface DataSet
attributeName
- The attribute name whose table name is inquiredDataSet.getTableNameForTaskFilter
public java.lang.String getTableColumnNameForTaskFilter(java.lang.String attributeName)
getTableColumnNameForTaskFilter
in interface DataSet
attributeName
- The attribute name whose table column name is inquiredDataSet.getTableColumnNameForTaskFilter
public java.lang.String[] getExtraTableNamesForComparison(java.lang.String tableName)
getExtraTableNamesForComparison
in interface DataSet
tableName
- The name of the table from which data is to be retrieved.DataSet.getExtraTableNamesForComparison
public java.lang.String getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
getTableJoinWhereClauseForTaskFilter
in interface DataSet
tableName
- The name of the table that needs to be joined with the main table.DataSet.getTableJoinWhereClauseForTaskFilter
public 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 DataSet
uidKeys
- 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 objectMXException
java.rmi.RemoteException
java.sql.SQLException
DataSet.getRecordCount
public boolean isUnitOfMeasureAllowed(java.lang.String objectName)
isUnitOfMeasureAllowed
in interface DataSet
objectName
- The name of a subset.public java.lang.String getTaskFilterClause()
DataSet
getTaskFilterClause
in interface DataSet
public void setTaskFilterClause(java.lang.String filterClause)
setTaskFilterClause
in interface DataSet
public ReconLinkerI getReconLinker()
DataSet
getReconLinker
in interface DataSet