public class AssetDataSet extends CommonDataSet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ASSET_ATTRIBUTES_EXCLUDE |
protected java.lang.Boolean |
hasPartitoins |
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 |
protected static java.lang.String |
partitionSynonyms |
static java.lang.String[] |
RECON_LINK_DOMAIN_EXCLUDE |
static java.lang.String |
ROOTMAXVAR |
context, datasetName, filterClause, objectSpecPairs, rootClassStructureId| 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.
|
protected boolean |
hasPartitions()
Check once and see if there is any partitions in the system.
|
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.
|
buildClassStructureFilteringWhere, getDataSetName, getMainObjectPrimaryKeys, getMasterForSpec, getObjectUID, getReconLinker, getRootClassstructureID, getSpecForMaster, getTaskFilterClause, getTheOtherDataSet, getUID, readMaxVar, setContext, setDataSetName, setTaskFilterClausepublic 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
protected static java.lang.String partitionSynonyms
protected java.lang.Boolean hasPartitoins
public java.lang.String getMainObjectName()
DataSetpublic java.lang.String getMainObjectUID()
throws java.rmi.RemoteException
CommonDataSetgetMainObjectUID in interface DataSetgetMainObjectUID in class CommonDataSetjava.rmi.RemoteExceptionDataSet.getMainObjectUIDpublic java.lang.String getTaskFilterAttributesDomainID()
DataSetpublic java.lang.String getFixedTaskFilterWhereClause()
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
CommonDataSetgetFixedTaskFilterWhereClause in interface DataSetgetFixedTaskFilterWhereClause in class CommonDataSetMXExceptionjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataSet.getFixedTaskFilterWhereClauseprotected boolean hasPartitions()
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
MXExceptionjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic java.lang.String getObjectNameDomainID()
DataSetpublic int getRecordCount(java.util.Map uidKeys,
java.lang.String objectName,
java.lang.String classStructureID)
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
CommonDataSetgetRecordCount in interface DataSetgetRecordCount in class CommonDataSetuidKeys - 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 ResultTableAttributes getReconResultAttributeNamesForComparison(boolean isDataSet1)
DataSetResultTableAttributespublic ResultTableAttributes getReconLinkAttributeNamesForLink(boolean isDataSet1)
ResultTableAttributespublic ResultTableAttributes getReconResultAttributeNamesForLink(boolean isDataSet1)
ResultTableAttributespublic java.lang.String getTableColumnNameForTaskFilter(java.lang.String attributeName)
getTableColumnNameForTaskFilter in interface DataSetgetTableColumnNameForTaskFilter in class CommonDataSet- - String the column name.DataSet.getTableColumnNameForTaskFilterpublic java.lang.String getTableJoinWhereClauseForTaskFilter(java.lang.String tableName)
getTableJoinWhereClauseForTaskFilter in interface DataSetgetTableJoinWhereClauseForTaskFilter in class CommonDataSetthe - name of the table to get the joining table for.DataSet.getTableJoinWhereClauseForTaskFilterpublic java.lang.String getTableNameForTaskFilter(java.lang.String attributeName)
getTableNameForTaskFilter in interface DataSetgetTableNameForTaskFilter in class CommonDataSetattributeName - - the String the column name.DataSet.getTableNameForTaskFilterpublic java.lang.String[] getExtraTableNamesForComparison(java.lang.String tableName)
CommonDataSetgetExtraTableNamesForComparison in interface DataSetgetExtraTableNamesForComparison in class CommonDataSettableName - The name of the table from which data is to be retrieved.DataSet.getExtraTableNamesForComparisonpublic java.lang.String getTableJoinWhereClauseForComparison(java.lang.String tableName,
java.util.Map uidKeys)
throws MXException,
java.rmi.RemoteException,
java.sql.SQLException
CommonDataSetgetTableJoinWhereClauseForComparison in interface DataSetgetTableJoinWhereClauseForComparison in class CommonDataSettableName - 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 getRootSpecMaxVar(java.lang.String objectname)
CommonDataSetgetRootSpecMaxVar in class CommonDataSetpublic java.lang.String[] getAttributesExcludeList(java.lang.String objectname)
DataSetgetObjectNameDomainIDpublic java.lang.String[][] getObjectSpecPairs()
DataSetpublic java.lang.String[] getObjectNameDomainExcludeList(java.lang.String objectName)
objectName - Name of object that uses the domain.getObjectNameDomainIDpublic boolean isUnitOfMeasureAllowed(java.lang.String objectName)
isUnitOfMeasureAllowed in interface DataSetisUnitOfMeasureAllowed in class CommonDataSetobjectName - The name of a subset.