public class AssetDataSet extends CommonDataSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ASSET_ATTRIBUTES_EXCLUDE |
static java.lang.String[] |
ITEM_ATTRIBUTES_EXCLUDE |
static java.lang.String |
OBJECT_ASSET |
static java.lang.String |
OBJECT_ASSETSPEC |
static java.lang.String |
OBJECT_ITEM |
static java.lang.String |
OBJECT_ITEMSPEC |
static java.lang.String[] |
RECON_LINK_DOMAIN_EXCLUDE |
static java.lang.String |
ROOTMAXVAR |
Constructor and Description |
---|
AssetDataSet() |
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[] |
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 |
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 |
getMainObjectUID()
Retrieves the unique ID of the main object from Maximo meta data.
|
java.lang.String[] |
getObjectNameDomainExcludeList(java.lang.String objectName)
Returns a list of elements to exclude from the domain.
|
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.
|
ResultTableAttributes |
getReconLinkAttributeNamesForLink(boolean isDataSet1)
Returns the mapping between the actual columns in the reconlink table
and this data set's proxy names for them.
|
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)
Returns the mapping between the actual columns in the reconresult table
and this data set's proxy names for them.
|
int |
getRecordCount(java.util.Map uidKeys,
java.lang.String objectName,
java.lang.String classStructureID)
Returns -1.
|
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 |
getTableColumnNameForTaskFilter(java.lang.String attributeName)
Returns the column name based on an attribute name encountered in the
task filter being used with the data set.
|
java.lang.String |
getTableJoinWhereClauseForComparison(java.lang.String tableName,
java.util.Map uidKeys)
Throws IllegalArgumentException exception
|
java.lang.String |
getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
Returns the joining clause for task filter based on a table name.
|
java.lang.String |
getTableNameForTaskFilter(java.lang.String attributeName)
Returns the table name in which the passed in attribute name resides.
|
java.lang.String |
getTaskFilterAttributesDomainID()
The available attributes of task filters for any data set are defined by synonym domain.
|
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.
|
getDataSetName, getMainObjectPrimaryKeys, getMasterForSpec, getObjectUID, getReconLinker, getRootClassstructureID, getSpecForMaster, getTaskFilterClause, readMaxVar, setContext, setDataSetName, setTaskFilterClause
public static final java.lang.String OBJECT_ASSET
public static final java.lang.String OBJECT_ASSETSPEC
public static final java.lang.String OBJECT_ITEM
public static final java.lang.String OBJECT_ITEMSPEC
public static final java.lang.String ROOTMAXVAR
public static final java.lang.String[] RECON_LINK_DOMAIN_EXCLUDE
public static final java.lang.String[] ASSET_ATTRIBUTES_EXCLUDE
public static final java.lang.String[] ITEM_ATTRIBUTES_EXCLUDE
public java.lang.String getMainObjectName()
DataSet
public java.lang.String getMainObjectUID() throws java.rmi.RemoteException
CommonDataSet
getMainObjectUID
in interface DataSet
getMainObjectUID
in class CommonDataSet
java.rmi.RemoteException
DataSet.getMainObjectUID
public java.lang.String getTaskFilterAttributesDomainID()
DataSet
public java.lang.String getFixedTaskFilterWhereClause() throws MXException, java.rmi.RemoteException, java.sql.SQLException
CommonDataSet
getFixedTaskFilterWhereClause
in interface DataSet
getFixedTaskFilterWhereClause
in class CommonDataSet
MXException
java.rmi.RemoteException
java.sql.SQLException
DataSet.getFixedTaskFilterWhereClause
public java.lang.String getObjectNameDomainID()
DataSet
public int getRecordCount(java.util.Map uidKeys, java.lang.String objectName, java.lang.String classStructureID) throws MXException, java.rmi.RemoteException, java.sql.SQLException
CommonDataSet
getRecordCount
in interface DataSet
getRecordCount
in class CommonDataSet
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 ResultTableAttributes getReconResultAttributeNamesForComparison(boolean isDataSet1)
DataSet
ResultTableAttributes
public ResultTableAttributes getReconLinkAttributeNamesForLink(boolean isDataSet1)
ResultTableAttributes
public ResultTableAttributes getReconResultAttributeNamesForLink(boolean isDataSet1)
ResultTableAttributes
public java.lang.String getTableColumnNameForTaskFilter(java.lang.String attributeName)
getTableColumnNameForTaskFilter
in interface DataSet
getTableColumnNameForTaskFilter
in class CommonDataSet
-
- String the column name.DataSet.getTableColumnNameForTaskFilter
public java.lang.String getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
getTableJoinWhereClauseForTaskFilter
in interface DataSet
getTableJoinWhereClauseForTaskFilter
in class CommonDataSet
the
- name of the table to get the joining table for.DataSet.getTableJoinWhereClauseForTaskFilter
public java.lang.String getTableNameForTaskFilter(java.lang.String attributeName)
getTableNameForTaskFilter
in interface DataSet
getTableNameForTaskFilter
in class CommonDataSet
attributeName
- - the String the column name.DataSet.getTableNameForTaskFilter
public java.lang.String[] getExtraTableNamesForComparison(java.lang.String tableName)
CommonDataSet
getExtraTableNamesForComparison
in interface DataSet
getExtraTableNamesForComparison
in class CommonDataSet
tableName
- The name of the table from which data is to be retrieved.DataSet.getExtraTableNamesForComparison
public java.lang.String getTableJoinWhereClauseForComparison(java.lang.String tableName, java.util.Map uidKeys) throws MXException, java.rmi.RemoteException, java.sql.SQLException
CommonDataSet
getTableJoinWhereClauseForComparison
in interface DataSet
getTableJoinWhereClauseForComparison
in class CommonDataSet
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 getRootSpecMaxVar(java.lang.String objectname)
CommonDataSet
getRootSpecMaxVar
in class CommonDataSet
public java.lang.String[] getAttributesExcludeList(java.lang.String objectname)
DataSet
getObjectNameDomainID
public java.lang.String[][] getObjectSpecPairs()
DataSet
public java.lang.String[] getObjectNameDomainExcludeList(java.lang.String objectName)
objectName
- Name of object that uses the domain.getObjectNameDomainID
public boolean isUnitOfMeasureAllowed(java.lang.String objectName)
isUnitOfMeasureAllowed
in interface DataSet
isUnitOfMeasureAllowed
in class CommonDataSet
objectName
- The name of a subset.