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.
|
CONFIGDB_NONE, CONFIGDB_NONSTRUCT, CONFIGDB_STRUCT, MAXTYPE_CHAR, MAXTYPE_DATE, MAXTYPE_MISC, MAXTYPE_NUM, MAXTYPE_UNKNOWN, MAXTYPE_YORN
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, 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
getRemoveChanges
for each storage partition in the valuelist,
and executes the statements returned, with the appropriate commit and rollback logic. |
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<java.lang.String> 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<java.lang.String> byPass,
java.lang.String object,
java.lang.String attr,
java.util.HashSet<java.lang.String> 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<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>> objectNames,
java.util.Set<java.lang.String> 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<java.lang.String,java.lang.String[]> |
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<java.lang.String,java.lang.String> 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, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public 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.RemoteException
public ConfigureService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public void init()
AppService
init
in interface Service
init
in class AppService
Service
public boolean isValidChar(java.lang.String checkString) throws MXException, java.rmi.RemoteException
isValidChar
in interface ConfigureServiceRemote
checkString
- the string to be checkedMXException
java.rmi.RemoteException
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 ConfigureServiceRemote
locale
- 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
.MXException
java.rmi.RemoteException
MXFormat
,
MaxType
public 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 ConfigureServiceRemote
inputValue
- 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.MXException
java.rmi.RemoteException
MaxType.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"
MXException
java.rmi.RemoteException
Util.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"
MXException
java.rmi.RemoteException
Util.getRemoveChanges()
,
Util.rebuildMetadataSequences()
public void applyTenantChanges(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"
MXException
java.rmi.RemoteException
Util.getRemoveChanges()
,
Util.rebuildMetadataSequences()
public void createSelectedExtensionViews(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>> objectNames, java.util.Set<java.lang.String> 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"
MXException
java.rmi.RemoteException
psdi.configure.Util#createTable
public boolean createExtensionTable(UserInfo masterInfo, java.lang.String tableName) throws MXException, java.rmi.RemoteException
createTable
for each extension table to be created.createExtensionTable
in interface ConfigureServiceRemote
masterInfo
- system configurator user infotableName
- name of the base table for which we want to create extension"configure"
- "RemoveChangesFailure"
MXException
java.rmi.RemoteException
psdi.configure.Util#createTable
public 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 ConfigureServiceRemote
newLength
- 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"
MXException
java.rmi.RemoteException
Util.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 ConfigureServiceRemote
newLength
- The new amount field length.newScale
- The new amount field scale."configure"
- "AmountFormatChangeFailure"
MXException
java.rmi.RemoteException
Util.changeAmountFormat(int, int)
public void changeIntFormat(int newIntLength, int newSmallintLength, int origIntLength, int origSmallintLength) throws MXException, java.rmi.RemoteException
changeIntFormat
in interface ConfigureServiceRemote
newIntLength
- 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"
MXException
java.rmi.RemoteException
changeIntFormat(int, int, int, int)
public void changeIntFormat(int newIntLength, int newSmallintLength) throws MXException, java.rmi.RemoteException
changeIntFormat
in interface ConfigureServiceRemote
newIntLength
- 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"
MXException
java.rmi.RemoteException
changeIntFormat(int, int)
public void updateStatistics(MboSetRemote objectSet) throws MXException, java.rmi.RemoteException
updateStatistics
for each table in the set.updateStatistics
in interface ConfigureServiceRemote
objectSet
- Set of MaxObjectCfg.MXException
java.rmi.RemoteException
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 ConfigureServiceRemote
tablename
- 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"
MXException
java.rmi.RemoteException
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 ConfigureServiceRemote
objectSet
- Set of MaxObjectCfg.MXException
java.rmi.RemoteException
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 ConfigureServiceRemote
tablename
- 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"
MXException
java.rmi.RemoteException
Util.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.MXException
java.rmi.RemoteException
Util.getUnrestoredTables(java.lang.String)
public MboSetRemote getOldBackupTables(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- UserInfo for getting the MboSet.MXException
java.rmi.RemoteException
Util.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 ConfigureServiceRemote
tableSet
- Set of DrpOldTabSet or MaxTableCfg .MXException
java.rmi.RemoteException
dropBackup(String)
public void dropBackup(java.lang.String tablenames) throws MXException, java.rmi.RemoteException
dropBackup
in interface ConfigureServiceRemote
tablenames
- 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.MXException
java.rmi.RemoteException
DropBackup
public int getConfigLevel() throws MXException, java.rmi.RemoteException
getConfigLevel
in interface ConfigureServiceRemote
MXException
java.rmi.RemoteException
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.
MXException
java.rmi.RemoteException
ConfigureServiceRemote.CONFIGDB_NONE
,
ConfigureServiceRemote.CONFIGDB_NONSTRUCT
,
ConfigureServiceRemote.CONFIGDB_STRUCT
public void runConfigDB(MboRemote listenerMbo) throws MXException, java.rmi.RemoteException
runConfigDB
in interface ConfigureServiceRemote
MXException
java.rmi.RemoteException
runConfigDB(MboRemote, HashMap)
public void runConfigDB(MboRemote listenerMbo, java.util.HashMap<java.lang.String,java.lang.String> params) throws MXException, java.rmi.RemoteException
dropBackup
for all tables.
ConfigDBThread
to run ConfigDB and do finish-up tasks.
runConfigDB
in interface ConfigureServiceRemote
listenerMbo
- 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.MXException
java.rmi.RemoteException
DropBackup
,
ConfigDB
,
RestoreFromBackup
,
ConfigureService.ConfigDBThread
public void listenToConfigDB(MboRemote listenerMbo, boolean listen) throws MXException, java.rmi.RemoteException
listenToConfigDB
in interface ConfigureServiceRemote
listenerMbo
- ProcessMonitor mbo.listen
- True to start listening, False to stop listeningMXException
java.rmi.RemoteException
listenToConfigDB(psdi.mbo.MboRemote, boolean)
public boolean configIsRunning() throws MXException, java.rmi.RemoteException
configIsRunning
in interface ConfigureServiceRemote
MXException
java.rmi.RemoteException
configIsRunning()
public void addConfigMsg(java.lang.String msg) throws MXException, java.rmi.RemoteException
addConfigMsg
in interface ConfigureServiceRemote
msg
- MXException
java.rmi.RemoteException
configMsgs
,
configdbListeners
public void setConfigStatus(int status)
ProcessMonitor
.status
- PROCESS_RUNNING, PROCESS_SUCCESS, or PROCESS_ERRORconfigMsgs
,
configdbListeners
public int getNumConfigMsgs()
getNumConfigMsgs
in interface ConfigureServiceRemote
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 ConfigureServiceRemote
tablename
- Table name.columnname
- Column name."configure"
- "MaxLengthFailure"
MXException
java.rmi.RemoteException
Util.getMaxColumnLength(java.lang.String, java.lang.String)
public int getGLMaxtypeLengthFromGLConfigure(UserInfo userInfo) throws MXException, java.rmi.RemoteException
GLConfigure
.getGLMaxtypeLengthFromGLConfigure
in interface ConfigureServiceRemote
userInfo
- UserInfoMXException
java.rmi.RemoteException
GLConfigureSet.getGLMaxtypeLength()
public java.lang.String getDefaultStoragePartition() throws MXException, java.rmi.RemoteException
getDefaultStoragePartition
(with valuelist check).getDefaultStoragePartition
in interface ConfigureServiceRemote
"configure"
- "MiscUtilFailure"
MXException
java.rmi.RemoteException
Util.getDefaultStoragePartition(boolean)
public boolean nativeTableExists(java.lang.String tablename) throws MXException, java.rmi.RemoteException
nativeTableExists
in interface ConfigureServiceRemote
tablename
- The table to check for.MXException
java.rmi.RemoteException
Util.nativeTableExists(java.lang.String)
public boolean nativeViewExists(java.lang.String viewname) throws MXException, java.rmi.RemoteException
nativeViewExists
in interface ConfigureServiceRemote
viewname
- The view to check for.MXException
java.rmi.RemoteException
Util.nativeViewExists(java.lang.String)
public boolean descendingIndexesSupported() throws MXException
MXException
Util.descendingIndexesSupported()
public int getMaxLengthColumnInIndex() throws MXException, java.rmi.RemoteException
getMaxLengthColumnInIndex
in interface ConfigureServiceRemote
MXException
java.rmi.RemoteException
Util.getMaxLengthColumnInIndex()
public int getMaxLengthIndex() throws MXException, java.rmi.RemoteException
getMaxLengthIndex
in interface ConfigureServiceRemote
MXException
java.rmi.RemoteException
Util.getMaxLengthIndex()
public boolean spaceIsSysManaged(java.lang.String spaceName) throws MXException, java.rmi.RemoteException
spaceIsSysManaged
in interface ConfigureServiceRemote
spaceName
- Name of the tablespace to be checked.MXException
java.rmi.RemoteException
Util.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 ConfigureServiceRemote
dbUserID
- 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.MXException
java.rmi.RemoteException
Util.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 ConfigureServiceRemote
dbUserID
- 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 revokeMXException
java.rmi.RemoteException
Util.getGrants(java.lang.String, java.lang.String)
public int getDBPlatform() throws MXException, java.rmi.RemoteException
getDBPlatform
in interface ConfigureServiceRemote
MXException
java.rmi.RemoteException
getDBPlatform()
public boolean isReservedWord(java.lang.String testWord) throws MXException, java.rmi.RemoteException
isReservedWord
in interface ConfigureServiceRemote
testWord
- The word to be tested.
If this is SqlServer, this method will also test uppercase and lowercase of the testWord.MXException
java.rmi.RemoteException
Util.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.MXException
java.rmi.RemoteException
doSql(String)
public void doSql(java.lang.String sql) throws MXException, java.rmi.RemoteException
sql
- The Sql statement"configure"
- "DoSqlFailure"
MXException
java.rmi.RemoteException
public 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 joinobjectMXException
java.rmi.RemoteException
getMaxAttribute(java.lang.String, java.lang.String, psdi.mbo.MboSetRemote)
,
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 joinobjectMXException
java.rmi.RemoteException
public int getMaxtypeCategory(java.lang.String maxtype) throws MXException, java.rmi.RemoteException
getMaxtypeCategory
in interface ConfigureServiceRemote
maxtype
- The maxtype to be evaluated.MAXTYPE_CHAR
,
MAXTYPE_NUM
,
MAXTYPE_DATE
,
MAXTYPE_YORN
,
MAXTYPE_MISC
, or
MAXTYPE_UNKNOWN
.MXException
java.rmi.RemoteException
getMaxtypeCategory(java.lang.String)
public boolean nativeTypesAreCompatible(java.lang.String oldNativeType, java.lang.String newNativeType) throws MXException, java.rmi.RemoteException
FldMaxAttributeCfgMaxType
.nativeTypesAreCompatible
in interface ConfigureServiceRemote
oldNativeType
- Old native datatypenewNativeType
- New native datatypeMXException
java.rmi.RemoteException
Util.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<java.lang.String> options) throws MXException, java.rmi.RemoteException
checkDomainLinks
in interface ConfigureServiceRemote
ui
- UserInfo objectoptions
- A HashSet for option strings. -s for generate insert statement, -d for checking against dataMXException
java.rmi.RemoteException
psdi.app.configure.ConfigureService#checkDomainLinks(UserInfo, HashSet)
public MXException compare(java.util.HashSet<java.lang.String> byPass, java.lang.String object, java.lang.String attr, java.util.HashSet<java.lang.String> 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 falseMXException
java.rmi.RemoteException
public MXException checkDomainLinks(UserInfo ui, MaxAttributeCfgRemote mac, MboSetRemote domainLinks) throws MXException, java.rmi.RemoteException
checkDomainLinks
in interface ConfigureServiceRemote
ui
- UserInfomac
- MaxAttributeCfgRemotedomainLinks
- MboSetRemoteMXException
java.rmi.RemoteException
checkDomainLinks(UserInfo, MaxAttributeCfgRemote, MboSetRemote)
public java.util.HashMap<java.lang.String,java.lang.String[]> loadDomainLinks(UserInfo ui) throws MXException, java.rmi.RemoteException
ui
- UserInfoMXException
java.rmi.RemoteException
public void verifyView(java.lang.String objectname) throws MXException, java.rmi.RemoteException
verifyView
in interface ConfigureServiceRemote
objectname
- MXException
java.rmi.RemoteException
verifyView(java.lang.String)
public boolean noDeltaRows(MboRemote masterMbo, java.lang.String validationType) throws MXApplicationException
noDeltaRows
in interface ConfigureServiceRemote
masterMbo
- MboRemotevalidationType
- String - valid are LENGTH and ALLMXApplicationException
noDeltaRows(psdi.mbo.MboRemote, java.lang.String)
public boolean pendingDeltaRowExist() throws MXApplicationException
pendingDeltaRowExist
in interface ConfigureServiceRemote
masterMbo
- MboRemotevalidationType
- String - valid are LENGTH and ALLMXApplicationException
pendingDeltaRowExist()
public void discardALLTenantDeltas() throws MXApplicationException
discardALLTenantDeltas
in interface ConfigureServiceRemote
MXApplicationException
discardALLTenantDeltas()
public boolean isActiveExtTable(java.lang.String objectName) throws MXApplicationException, java.rmi.RemoteException
isActiveExtTable
in interface ConfigureServiceRemote
objectName
- the name of the objectMXApplicationException
java.rmi.RemoteException
isActiveExtTable(java.lang.String)
public boolean canDeleteFromConfigExtTable(java.lang.String attributeName, java.lang.String objectName) throws MXException, java.rmi.RemoteException
canDeleteFromConfigExtTable
in interface ConfigureServiceRemote
attributeName
- objectName
- MXException
java.rmi.RemoteException
canDeleteFromConfigExtTable(java.lang.String, java.lang.String)
public boolean areTenantsOnboarded() throws java.rmi.RemoteException, MXException
areTenantsOnboarded
in interface ConfigureServiceRemote
true
if tenants are on boarded other than the Global Administrator and System MonitorMXApplicationException
- if MXServer is not multi tenancy enabledjava.rmi.RemoteException
MXException
areTenantsOnboarded()