public class ConfigureService extends AppService implements ConfigureServiceRemote
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NAME_LENGTH
The maximum length of object name.
|
static java.lang.String |
VALIDATION_ALL
The Tenant delta validation type on ALL changes.
|
static java.lang.String |
VALIDATION_LENGTH
The Tenant delta validation type on LENGTH.
|
static java.lang.String |
VALIDATION_PENDINGCHG
The Tenant delta validation for pending changes.
|
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlCONFIGDB_NONE, CONFIGDB_NONSTRUCT, CONFIGDB_STRUCT, MAXTYPE_CHAR, MAXTYPE_DATE, MAXTYPE_MISC, MAXTYPE_NUM, MAXTYPE_UNKNOWN, MAXTYPE_YORNAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix| Constructor and Description |
|---|
ConfigureService() |
ConfigureService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigMsg(java.lang.String msg)
Allow ConfigDB to add a message to our map.
|
void |
applyTenantChanges(UserInfo tenantInfo,
int tenanatId)
Calls
applyTenantChanges |
void |
applyTenantChanges(UserInfo tenantInfo,
int tenantId,
boolean isPreview)
Calls
applyTenantChanges |
boolean |
areTenantsOnboarded()
Determine if tenants have been on boarded
|
boolean |
canDeleteFromConfigExtTable(java.lang.String attributeName,
java.lang.String objectName)
Checks to see whether a tenant is using a given column on the extension table before allowing the DA to delete the attribute
through the database configuration app.
|
void |
changeAmountFormat(int newLength,
int newScale)
Calls
changeAmountFormat,
and executes the statements returned, with the appropriate commit and rollback logic. |
void |
changeAmountFormat(int newLength,
int newScale,
int origLength,
int origScale)
Calls
changeAmountFormat,
and executes the statements returned, with the appropriate commit and rollback logic. |
void |
changeIntFormat(int newIntLength,
int newSmallintLength)
Updates maxattributecfg / maxobjectcfg for change of length for INTEGER and/or SMALLINT attributes.
|
void |
changeIntFormat(int newIntLength,
int newSmallintLength,
int origIntLength,
int origSmallintLength)
Updates maxattributecfg / maxobjectcfg for change of length for INTEGER and/or SMALLINT attributes.
|
java.lang.StringBuffer |
checkDomainLinks(UserInfo ui,
java.util.HashSet options)
Check the domain link records for all the attributes comparing to other metadata
of the attributes.
|
MXException |
checkDomainLinks(UserInfo ui,
MaxAttributeCfgRemote mac,
MboSetRemote domainLinks)
Checks the domainid on the maxattributecfg record to the maxdomainlink record.
|
MXException |
compare(java.util.HashSet byPass,
java.lang.String object,
java.lang.String attr,
java.util.HashSet domsOnMeta,
java.lang.String[] domsByLink,
java.lang.StringBuffer os,
UserInfo ui,
boolean genInsertStatement)
Compare the MAXDOMAINLINK record and the domain id specified in field valiation class and domainid on maxattribute.
|
boolean |
configIsRunning()
Identifies whether the ConfigDB thread is running.
|
java.lang.String |
convertToLocale(java.lang.String inputValue,
java.lang.String maxtype,
java.util.Locale fromLocale,
java.util.TimeZone fromTimeZone,
java.util.Locale toLocale,
java.util.TimeZone toTimeZone)
Convert the input value into the specified Locale.
|
boolean |
createExtensionTable(UserInfo masterInfo,
java.lang.String tableName)
Calls
createTable
for each extension table to be created. |
void |
createSelectedExtensionViews(java.util.Map objectNames,
java.util.Set deleteObjects,
java.sql.Connection masterCon,
int tenantId)
Calls
createTable
for each extension table to be created. |
boolean |
descendingIndexesSupported()
Indicates whether this database supports descending indexes.
|
void |
discardALLTenantDeltas() |
void |
doSql(java.util.List list)
Loops through an array and calls
doSql for each element. |
void |
doSql(java.lang.String sql)
Execute a sql statement, using our connection.
|
void |
dropBackup(MboSetRemote tableSet)
Call
dropBackup for each selected table in the set. |
void |
dropBackup(java.lang.String tablenames)
Drop backup tables that were created via ConfigDB, after their data has been restored.
|
java.util.HashSet |
getAllCommonAttributes(MboSetRemote object1Attrs,
MboSetRemote object2Attrs)
If this is a view joining two tables, get the names of the attributes that exist in both objects
(ExtendsObject and JoinObject).
|
int |
getConfigLevel() |
int |
getConfigLevel(UserInfo ui)
Determine whether there are any pending configuration changes, and if there are,
whether they are structural or non-structural.
|
int |
getDBPlatform()
Get the database platform.
|
java.lang.String |
getDefaultStoragePartition()
Calls
getDefaultStoragePartition
(with valuelist check). |
int |
getGLMaxtypeLengthFromGLConfigure(UserInfo userInfo)
Get the correct column length for a GL field.
|
java.util.HashMap |
getGrants(java.lang.String dbUserID,
java.lang.String entityname)
Get grant info for a given user.
|
java.util.HashMap |
getJoinAttributes(MboRemote object1,
MboSetRemote object1Attrs,
MboRemote object2,
MboSetRemote object2Attrs)
For a view joining two tables, get the names of the attributes used in the join.
|
int |
getMaxColumnLength(java.lang.String tablename,
java.lang.String columnname)
Calls
getMaxColumnLength
to determine the maximum length of data currently in this column. |
int |
getMaxLengthColumnInIndex()
Get the maximum allowed for the length of any one column in an index.
|
int |
getMaxLengthIndex()
Get the maximum allowed for the sum of lengths of all columns in an index.
|
int |
getMaxtypeCategory(java.lang.String maxtype)
Identify the general category of maxtype.
|
int |
getNumConfigMsgs()
Get the number of messages that have been added by ConfigDB.
|
MboSetRemote |
getOldBackupTables(UserInfo userInfo)
Return set of MaxTableCfg that have old backup tables.
|
MboSetRemote |
getUnrestoredTables(UserInfo userInfo)
Return set of MaxTableCfg that need data copied into them from backup tables.
|
void |
grantNative(java.lang.String dbUserID,
java.lang.String entityname,
java.lang.String privilege,
boolean grant)
Grant or revoke native database access for a given suer and table/view.
|
void |
init()
Initialize the Application Service.
|
boolean |
isActiveExtTable(java.lang.String objectName)
/**
Determines if the current object is an active extension table, meaning that it
hosts extended attirbutes defined against a base object.
|
boolean |
isReservedWord(java.lang.String testWord)
Test whether this is a reserved word on the native database.
|
boolean |
isValidChar(java.lang.String checkString)
Checks to see if the input string contains valid characters for the database.
|
void |
listenToConfigDB(MboRemote listenerMbo,
boolean listen)
Register another listener for ConfigDB.
|
java.util.HashMap |
loadDomainLinks(UserInfo ui)
Load maxdomainlink records to a HashMap.
|
void |
logException(java.lang.Exception e)
If
configLogger is error enabled, write error to log,
else printStackTrace. |
boolean |
nativeTableExists(java.lang.String tablename)
Indicates whether the table exists on the native database.
|
boolean |
nativeTypesAreCompatible(java.lang.String oldNativeType,
java.lang.String newNativeType)
Identifies whether data can be copied from old native datatype to new native datatype
without any conversion activity, or with Oracle to_char for date-to-string, or
with SqlServer convert function.
|
boolean |
nativeViewExists(java.lang.String viewname)
Indicates whether the view exists on the native database.
|
boolean |
noDeltaRows(MboRemote masterMbo,
java.lang.String validationType)
Validates tenant delta rows for length,required and default value.
|
boolean |
pendingDeltaRowExist()
Validates tenant delta rows for length,required and default value.
|
void |
refreshIndexMetadata(MboSetRemote objectSet)
Call
refreshIndexMetadata for each table in the set. |
void |
refreshIndexMetadata(java.lang.String tablename)
Calls
getSysIndexRefresh
and adjustPrimaryKeyColSeq,
executing the statements returned, with the appropriate commit and rollback logic. |
void |
removeChanges()
Calls
getRemoveChanges
for each storage partition in the valuelist,
and executes the statements returned, with the appropriate commit and rollback logic. |
void |
removeTenantChanges(UserInfo tenantInfo,
int tenanatId)
Calls
getRemoveChanges
for each storage partition in the valuelist,
and executes the statements returned, with the appropriate commit and rollback logic. |
void |
runConfigDB(MboRemote listenerMbo) |
void |
runConfigDB(MboRemote listenerMbo,
java.util.HashMap params)
Run ConfigDB.
|
void |
setConfigStatus(int status)
Set value for "completionstatus" on ProcessMonitor.
|
boolean |
spaceIsSysManaged(java.lang.String spaceName)
Determine whether the specified tablespace is system-managed.
|
void |
updateStatistics(MboSetRemote objectSet)
Call
updateStatistics for each table in the set. |
void |
updateStatistics(java.lang.String tablename)
Calls
getUpdateStatistics
for tables/indexes in the Maximo metadata, and executes the statements returned. |
boolean |
validateFormat(java.util.Locale locale,
java.util.TimeZone timezone,
java.lang.String value,
java.lang.String maxtype,
int length,
int scale,
boolean checkCase)
Validate the string value against the specified maxtype, length and scale.
|
void |
verifyView(java.lang.String objectname)
Check the Cfg metadata for a view to see if it is properly formed.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic static int MAX_NAME_LENGTH
public static final java.lang.String VALIDATION_LENGTH
public static final java.lang.String VALIDATION_ALL
public static final java.lang.String VALIDATION_PENDINGCHG
public ConfigureService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic ConfigureService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void init()
AppServiceinit in interface Serviceinit in class AppServiceServicepublic boolean isValidChar(java.lang.String checkString)
throws MXException,
java.rmi.RemoteException
isValidChar in interface ConfigureServiceRemotecheckString - the string to be checkedMXExceptionjava.rmi.RemoteExceptionConfigureService.isValidChar(java.lang.String)public boolean validateFormat(java.util.Locale locale,
java.util.TimeZone timezone,
java.lang.String value,
java.lang.String maxtype,
int length,
int scale,
boolean checkCase)
throws MXException,
java.rmi.RemoteException
validateFormat in interface ConfigureServiceRemotelocale - Locale for numeric and datetime validations.timezone - Timezone for datetime validations.value - The string value to be tested.maxtype - The maxtype to verify the value against.length - The length to verify the value against.scale - The scale to verify the value against.checkCase - True to check for proper case for UPPER and LOWER maxtypes.
False to not check for case.MXFormat or MaxType.MXExceptionjava.rmi.RemoteExceptionMXFormat,
MaxTypepublic java.lang.String convertToLocale(java.lang.String inputValue,
java.lang.String maxtype,
java.util.Locale fromLocale,
java.util.TimeZone fromTimeZone,
java.util.Locale toLocale,
java.util.TimeZone toTimeZone)
throws MXException,
java.rmi.RemoteException
convertToLocale in interface ConfigureServiceRemoteinputValue - The input value.maxtype - The maxtype of the inputValue.fromLocale - The Locale of the inputValue.fromTimeZone - The TimeZone of the inputValue.toLocale - The Locale to convert to.toTimeZone - The TimeZone to convert to.MXExceptionjava.rmi.RemoteExceptionMaxType.asLocaleString(java.util.Locale)public void removeChanges()
throws MXException,
java.rmi.RemoteException
getRemoveChanges
for each storage partition in the valuelist,
and executes the statements returned, with the appropriate commit and rollback logic.removeChanges in interface ConfigureServiceRemote"configure" - "RemoveChangesFailure"MXExceptionjava.rmi.RemoteExceptionUtil.getRemoveChanges(),
Util.rebuildMetadataSequences()public void removeTenantChanges(UserInfo tenantInfo, int tenanatId) throws MXException, java.rmi.RemoteException
getRemoveChanges
for each storage partition in the valuelist,
and executes the statements returned, with the appropriate commit and rollback logic."configure" - "RemoveChangesFailure"MXExceptionjava.rmi.RemoteExceptionUtil.getRemoveChanges(),
Util.rebuildMetadataSequences()public void applyTenantChanges(UserInfo tenantInfo, int tenanatId) throws MXException, java.rmi.RemoteException
applyTenantChangestenantInfo - The tenant's UserInfotenanatId - The tenant ID"configure" - "RemoveChangesFailure"MXExceptionjava.rmi.RemoteExceptionpsdi.configure.Util#applyTenantChangespublic void applyTenantChanges(UserInfo tenantInfo, int tenantId, boolean isPreview) throws MXException, java.rmi.RemoteException
applyTenantChangestenantInfo - The tenant's UserInfotenanatId - The tenant IDisPreview - Changes will only be committed when the value is True"configure" - "RemoveChangesFailure"MXExceptionjava.rmi.RemoteExceptionpsdi.configure.Util#applyTenantChangespublic void createSelectedExtensionViews(java.util.Map objectNames,
java.util.Set deleteObjects,
java.sql.Connection masterCon,
int tenantId)
throws MXException,
java.rmi.RemoteException
createTable
for each extension table to be created.masterInfo - system configurator user infotableName - name of the base table for which we want to create extension"configure" - "RemoveChangesFailure"MXExceptionjava.rmi.RemoteExceptionpsdi.configure.Util#createTablepublic boolean createExtensionTable(UserInfo masterInfo, java.lang.String tableName) throws MXException, java.rmi.RemoteException
createTable
for each extension table to be created.createExtensionTable in interface ConfigureServiceRemotemasterInfo - system configurator user infotableName - name of the base table for which we want to create extension"configure" - "RemoveChangesFailure"MXExceptionjava.rmi.RemoteExceptionpsdi.configure.Util#createTablepublic void changeAmountFormat(int newLength,
int newScale,
int origLength,
int origScale)
throws MXException,
java.rmi.RemoteException
changeAmountFormat,
and executes the statements returned, with the appropriate commit and rollback logic.
This does not update maxvars (that should be done by AmountFormat object.)changeAmountFormat in interface ConfigureServiceRemotenewLength - The new amount field length.newScale - The new amount field scale.origLength - The original amount field length.origScale - The original amount field scale."configure" - "AmountFormatChangeFailure"MXExceptionjava.rmi.RemoteExceptionUtil.changeAmountFormat(int, int)public void changeAmountFormat(int newLength,
int newScale)
throws MXException,
java.rmi.RemoteException
changeAmountFormat,
and executes the statements returned, with the appropriate commit and rollback logic.
This does not update maxvars (that should be done by AmountFormat object.)changeAmountFormat in interface ConfigureServiceRemotenewLength - The new amount field length.newScale - The new amount field scale."configure" - "AmountFormatChangeFailure"MXExceptionjava.rmi.RemoteExceptionUtil.changeAmountFormat(int, int)public void changeIntFormat(int newIntLength,
int newSmallintLength,
int origIntLength,
int origSmallintLength)
throws MXException,
java.rmi.RemoteException
changeIntFormat in interface ConfigureServiceRemotenewIntLength - The new Integer field length. If it's not changing, pass 0 or the current value.newSmallintLength - The new Smallint field length. If it's not changing, pass 0 or the current value.origIntLength - The original Integer field length.origSmallintLength - The original Smallint field length."configure" - "AmountFormatChangeFailure"MXExceptionjava.rmi.RemoteExceptionConfigureService.changeIntFormat(int, int, int, int)public void changeIntFormat(int newIntLength,
int newSmallintLength)
throws MXException,
java.rmi.RemoteException
changeIntFormat in interface ConfigureServiceRemotenewIntLength - The new Integer field length. If it's not changing, pass 0 or the current value.newSmallintLength - The new Smallint field length. If it's not changing, pass 0 or the current value."configure" - "AmountFormatChangeFailure"MXExceptionjava.rmi.RemoteExceptionConfigureService.changeIntFormat(int, int)public void updateStatistics(MboSetRemote objectSet) throws MXException, java.rmi.RemoteException
updateStatistics for each table in the set.updateStatistics in interface ConfigureServiceRemoteobjectSet - Set of MaxObjectCfg.MXExceptionjava.rmi.RemoteExceptionConfigureService.updateStatistics(String)public void updateStatistics(java.lang.String tablename)
throws MXException,
java.rmi.RemoteException
getUpdateStatistics
for tables/indexes in the Maximo metadata, and executes the statements returned.updateStatistics in interface ConfigureServiceRemotetablename - The table name (optional).
If this is not null, then only the indexes for this table will have
statistics updated.
If this is null, then they will be updated for all tables."configure" - "UpdateStatisticsFailure"MXExceptionjava.rmi.RemoteExceptionConfigureService.nativeTableExists(java.lang.String),
Util.getIndexMeta(java.lang.String, boolean),
Util.getUpdateStatistics(java.util.TreeMap, java.util.TreeMap)public void refreshIndexMetadata(MboSetRemote objectSet) throws MXException, java.rmi.RemoteException
refreshIndexMetadata for each table in the set.refreshIndexMetadata in interface ConfigureServiceRemoteobjectSet - Set of MaxObjectCfg.MXExceptionjava.rmi.RemoteExceptionConfigureService.refreshIndexMetadata(String)public void refreshIndexMetadata(java.lang.String tablename)
throws MXException,
java.rmi.RemoteException
getSysIndexRefresh
and adjustPrimaryKeyColSeq,
executing the statements returned, with the appropriate commit and rollback logic.refreshIndexMetadata in interface ConfigureServiceRemotetablename - The table name (optional).
If this is not null, then only the indexes for this table will have
metadata refreshed.
If this is null, then they will be refreshed for all tables
(for each storage partition in the valuelist)."configure" - "RefreshIndexMetaFailure"MXExceptionjava.rmi.RemoteExceptionUtil.longIndexNamesExist(java.lang.String),
Util.dupIndexNamesExist(java.lang.String, java.lang.String),
Util.getDBStoragePartitions(),
Util.getSysIndexRefresh(java.lang.String, java.lang.String),
Util.fixMetadataForDescendingKeys(java.lang.String, java.lang.String),
Util.adjustPrimaryKeyColSeq(java.util.TreeMap),
MaximoDD.reload(String)public MboSetRemote getUnrestoredTables(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo - UserInfo for getting the MboSet.MXExceptionjava.rmi.RemoteExceptionUtil.getUnrestoredTables(java.lang.String)public MboSetRemote getOldBackupTables(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo - UserInfo for getting the MboSet.MXExceptionjava.rmi.RemoteExceptionUtil.getOldBackupTables(java.lang.String)public void dropBackup(MboSetRemote tableSet) throws MXException, java.rmi.RemoteException
dropBackup for each selected table in the set.dropBackup in interface ConfigureServiceRemotetableSet - Set of DrpOldTabSet or MaxTableCfg .MXExceptionjava.rmi.RemoteExceptionConfigureService.dropBackup(String)public void dropBackup(java.lang.String tablenames)
throws MXException,
java.rmi.RemoteException
dropBackup in interface ConfigureServiceRemotetablenames - Optional list of table names (separated by commas) to be restored.
If none specified, then all eligible tables will be dropped.
For example, if this parameter equals EQUIPMENT,
then if the backup table XXEQUIPMENT is eligible to be dropped,
it will be dropped.MXExceptionjava.rmi.RemoteExceptionDropBackuppublic int getConfigLevel()
throws MXException,
java.rmi.RemoteException
getConfigLevel in interface ConfigureServiceRemoteMXExceptionjava.rmi.RemoteExceptionConfigureService.getConfigLevel(UserInfo)public int getConfigLevel(UserInfo ui) throws MXException, java.rmi.RemoteException
Both structural and non-structural changes are applied via ConfigDB.
The difference is the state required of MXServer.
MXExceptionjava.rmi.RemoteExceptionConfigureServiceRemote.CONFIGDB_NONE,
ConfigureServiceRemote.CONFIGDB_NONSTRUCT,
ConfigureServiceRemote.CONFIGDB_STRUCTpublic void runConfigDB(MboRemote listenerMbo) throws MXException, java.rmi.RemoteException
runConfigDB in interface ConfigureServiceRemoteMXExceptionjava.rmi.RemoteExceptionConfigureService.runConfigDB(MboRemote, HashMap)public void runConfigDB(MboRemote listenerMbo, java.util.HashMap params) throws MXException, java.rmi.RemoteException
dropBackup for all tables.
ConfigDBThread
to run ConfigDB and do finish-up tasks.
runConfigDB in interface ConfigureServiceRemotelistenerMbo - ProcessMonitor mbo that will be updated with any messages from ConfigDB.
If null then nothing will be listening.params - Parameters for ConfigDB. Normally this will be null.
If non-null then whatever values are in this map will be input to ConfigDB.MXExceptionjava.rmi.RemoteExceptionDropBackup,
ConfigDB,
RestoreFromBackup,
ConfigureService.ConfigDBThreadpublic void listenToConfigDB(MboRemote listenerMbo, boolean listen) throws MXException, java.rmi.RemoteException
listenToConfigDB in interface ConfigureServiceRemotelistenerMbo - ProcessMonitor mbo.listen - True to start listening, False to stop listeningMXExceptionjava.rmi.RemoteExceptionConfigureService.listenToConfigDB(psdi.mbo.MboRemote, boolean)public boolean configIsRunning()
throws MXException,
java.rmi.RemoteException
configIsRunning in interface ConfigureServiceRemoteMXExceptionjava.rmi.RemoteExceptionConfigureService.configIsRunning()public void addConfigMsg(java.lang.String msg)
throws MXException,
java.rmi.RemoteException
addConfigMsg in interface ConfigureServiceRemotemsg - MXExceptionjava.rmi.RemoteExceptionConfigureService.configMsgs,
ConfigureService.configdbListenerspublic void setConfigStatus(int status)
ProcessMonitor.status - PROCESS_RUNNING, PROCESS_SUCCESS, or PROCESS_ERRORConfigureService.configMsgs,
ConfigureService.configdbListenerspublic int getNumConfigMsgs()
getNumConfigMsgs in interface ConfigureServiceRemoteConfigureService.getNumConfigMsgs()public int getMaxColumnLength(java.lang.String tablename,
java.lang.String columnname)
throws MXException,
java.rmi.RemoteException
getMaxColumnLength
to determine the maximum length of data currently in this column.getMaxColumnLength in interface ConfigureServiceRemotetablename - Table name.columnname - Column name."configure" - "MaxLengthFailure"MXExceptionjava.rmi.RemoteExceptionUtil.getMaxColumnLength(java.lang.String, java.lang.String)public int getGLMaxtypeLengthFromGLConfigure(UserInfo userInfo) throws MXException, java.rmi.RemoteException
GLConfigure.getGLMaxtypeLengthFromGLConfigure in interface ConfigureServiceRemoteuserInfo - UserInfoMXExceptionjava.rmi.RemoteExceptionGLConfigureSet.getGLMaxtypeLength()public java.lang.String getDefaultStoragePartition()
throws MXException,
java.rmi.RemoteException
getDefaultStoragePartition
(with valuelist check).getDefaultStoragePartition in interface ConfigureServiceRemote"configure" - "MiscUtilFailure"MXExceptionjava.rmi.RemoteExceptionUtil.getDefaultStoragePartition(boolean)public boolean nativeTableExists(java.lang.String tablename)
throws MXException,
java.rmi.RemoteException
nativeTableExists in interface ConfigureServiceRemotetablename - The table to check for.MXExceptionjava.rmi.RemoteExceptionUtil.nativeTableExists(java.lang.String)public boolean nativeViewExists(java.lang.String viewname)
throws MXException,
java.rmi.RemoteException
nativeViewExists in interface ConfigureServiceRemoteviewname - The view to check for.MXExceptionjava.rmi.RemoteExceptionUtil.nativeViewExists(java.lang.String)public boolean descendingIndexesSupported()
throws MXException
MXExceptionUtil.descendingIndexesSupported()public int getMaxLengthColumnInIndex()
throws MXException,
java.rmi.RemoteException
getMaxLengthColumnInIndex in interface ConfigureServiceRemoteMXExceptionjava.rmi.RemoteExceptionUtil.getMaxLengthColumnInIndex()public int getMaxLengthIndex()
throws MXException,
java.rmi.RemoteException
getMaxLengthIndex in interface ConfigureServiceRemoteMXExceptionjava.rmi.RemoteExceptionUtil.getMaxLengthIndex()public boolean spaceIsSysManaged(java.lang.String spaceName)
throws MXException,
java.rmi.RemoteException
spaceIsSysManaged in interface ConfigureServiceRemotespaceName - Name of the tablespace to be checked.MXExceptionjava.rmi.RemoteExceptionUtil.spaceIsSysManaged(java.lang.String)public java.util.HashMap getGrants(java.lang.String dbUserID,
java.lang.String entityname)
throws MXException,
java.rmi.RemoteException
getGrants in interface ConfigureServiceRemotedbUserID - User Name on the native database (databaseuserid).entityname - Table or view name, if only one is to be queried.
If this is null then all maximo entities will be queried.MXExceptionjava.rmi.RemoteExceptionUtil.getGrants(java.lang.String, java.lang.String)public void grantNative(java.lang.String dbUserID,
java.lang.String entityname,
java.lang.String privilege,
boolean grant)
throws MXException,
java.rmi.RemoteException
grantNative in interface ConfigureServiceRemotedbUserID - User Name on the native database (databaseuserid).entityname - Table or view name, if only one is to be queried.
If this is null then all maximo entities will be queried.privilege - READ, INSERT, UPDATE, or DELETEgrant - True to grant, False to revokeMXExceptionjava.rmi.RemoteExceptionUtil.getGrants(java.lang.String, java.lang.String)public int getDBPlatform()
throws MXException,
java.rmi.RemoteException
getDBPlatform in interface ConfigureServiceRemoteMXExceptionjava.rmi.RemoteExceptionConfigureService.getDBPlatform()public boolean isReservedWord(java.lang.String testWord)
throws MXException,
java.rmi.RemoteException
isReservedWord in interface ConfigureServiceRemotetestWord - The word to be tested.
If this is SqlServer, this method will also test uppercase and lowercase of the testWord.MXExceptionjava.rmi.RemoteExceptionUtil.isReservedWord(java.lang.String)public void doSql(java.util.List list)
throws MXException,
java.rmi.RemoteException
doSql for each element.list - Any instance or extension of AbstractList, including ArrayList, etc.MXExceptionjava.rmi.RemoteExceptionConfigureService.doSql(String)public void doSql(java.lang.String sql)
throws MXException,
java.rmi.RemoteException
sql - The Sql statement"configure" - "DoSqlFailure"MXExceptionjava.rmi.RemoteExceptionpublic java.util.HashMap getJoinAttributes(MboRemote object1, MboSetRemote object1Attrs, MboRemote object2, MboSetRemote object2Attrs) throws MXException, java.rmi.RemoteException
object1 - MaxObjectCfg mbo for extendsobjectobject1Attrs - Set of maxattributecfg from extendsobjectobject2 - MaxObjectCfg for joinobjectobject2Attrs - Set of maxattributecfg from joinobjectMXExceptionjava.rmi.RemoteExceptionConfigureService.getMaxAttribute(java.lang.String, java.lang.String, psdi.mbo.MboSetRemote),
ConfigureService.attributesAreEquivalent(psdi.mbo.MboRemote, psdi.mbo.MboRemote)public java.util.HashSet getAllCommonAttributes(MboSetRemote object1Attrs, MboSetRemote object2Attrs) throws MXException, java.rmi.RemoteException
object1Attrs - Set of maxattributecfg from extendsobjectobject2Attrs - Set of maxattributecfg from joinobjectMXExceptionjava.rmi.RemoteExceptionpublic int getMaxtypeCategory(java.lang.String maxtype)
throws MXException,
java.rmi.RemoteException
getMaxtypeCategory in interface ConfigureServiceRemotemaxtype - The maxtype to be evaluated.MAXTYPE_CHAR,
MAXTYPE_NUM,
MAXTYPE_DATE,
MAXTYPE_YORN,
MAXTYPE_MISC, or
MAXTYPE_UNKNOWN.MXExceptionjava.rmi.RemoteExceptionConfigureService.getMaxtypeCategory(java.lang.String)public boolean nativeTypesAreCompatible(java.lang.String oldNativeType,
java.lang.String newNativeType)
throws MXException,
java.rmi.RemoteException
FldMaxAttributeCfgMaxType.nativeTypesAreCompatible in interface ConfigureServiceRemoteoldNativeType - Old native datatypenewNativeType - New native datatypeMXExceptionjava.rmi.RemoteExceptionUtil.nativeTypesAreCompatible(java.lang.String, java.lang.String),
Util.getOracleConvertString(java.lang.String, java.lang.String, java.lang.String),
Util.explicitConversionSupported(java.lang.String, java.lang.String)public void logException(java.lang.Exception e)
configLogger is error enabled, write error to log,
else printStackTrace.public java.lang.StringBuffer checkDomainLinks(UserInfo ui, java.util.HashSet options) throws MXException, java.rmi.RemoteException
checkDomainLinks in interface ConfigureServiceRemoteui - UserInfo objectoptions - A HashSet for option strings. -s for generate insert statement, -d for checking against dataMXExceptionjava.rmi.RemoteExceptionpsdi.app.configure.ConfigureService#checkDomainLinks(UserInfo, HashSet) public MXException compare(java.util.HashSet byPass, java.lang.String object, java.lang.String attr, java.util.HashSet domsOnMeta, java.lang.String[] domsByLink, java.lang.StringBuffer os, UserInfo ui, boolean genInsertStatement) throws MXException, java.rmi.RemoteException
byPass - object - attr - domsOnMeta - domsByLink - os - ui - UserInfogenInsertStatement - True or falseMXExceptionjava.rmi.RemoteExceptionpublic MXException checkDomainLinks(UserInfo ui, MaxAttributeCfgRemote mac, MboSetRemote domainLinks) throws MXException, java.rmi.RemoteException
checkDomainLinks in interface ConfigureServiceRemoteui - UserInfomac - MaxAttributeCfgRemotedomainLinks - MboSetRemoteMXExceptionjava.rmi.RemoteExceptionConfigureService.checkDomainLinks(UserInfo, MaxAttributeCfgRemote, MboSetRemote)public java.util.HashMap loadDomainLinks(UserInfo ui) throws MXException, java.rmi.RemoteException
ui - UserInfoMXExceptionjava.rmi.RemoteExceptionpublic void verifyView(java.lang.String objectname)
throws MXException,
java.rmi.RemoteException
verifyView in interface ConfigureServiceRemoteobjectname - MXExceptionjava.rmi.RemoteExceptionConfigureService.verifyView(java.lang.String)public boolean noDeltaRows(MboRemote masterMbo, java.lang.String validationType) throws MXApplicationException
noDeltaRows in interface ConfigureServiceRemotemasterMbo - MboRemotevalidationType - String - valid are LENGTH and ALLMXApplicationExceptionConfigureService.noDeltaRows(psdi.mbo.MboRemote, java.lang.String)public boolean pendingDeltaRowExist()
throws MXApplicationException
pendingDeltaRowExist in interface ConfigureServiceRemotemasterMbo - MboRemotevalidationType - String - valid are LENGTH and ALLMXApplicationExceptionConfigureService.pendingDeltaRowExist()public void discardALLTenantDeltas()
throws MXApplicationException
discardALLTenantDeltas in interface ConfigureServiceRemoteMXApplicationExceptionConfigureService.discardALLTenantDeltas()public boolean isActiveExtTable(java.lang.String objectName)
throws MXApplicationException,
java.rmi.RemoteException
isActiveExtTable in interface ConfigureServiceRemoteobjectName - the name of the objectMXApplicationExceptionjava.rmi.RemoteExceptionConfigureService.isActiveExtTable(java.lang.String)public boolean canDeleteFromConfigExtTable(java.lang.String attributeName,
java.lang.String objectName)
throws MXException,
java.rmi.RemoteException
canDeleteFromConfigExtTable in interface ConfigureServiceRemoteattributeName - objectName - MXExceptionjava.rmi.RemoteExceptionConfigureService.canDeleteFromConfigExtTable(java.lang.String, java.lang.String)public boolean areTenantsOnboarded()
throws java.rmi.RemoteException,
MXException
areTenantsOnboarded in interface ConfigureServiceRemotetrue if tenants are on boarded other than the Global Administrator and System MonitorMXApplicationException - if MXServer is not multi tenancy enabledjava.rmi.RemoteExceptionMXExceptionConfigureService.areTenantsOnboarded()