public class TextSearchScript extends CommonShell implements UpgConstants
The commandline parameters for TextSearchScript are as follows, in addition to those in the superclass
CommonShell
.
Parameter ID | Parameter Value | Description |
---|---|---|
-t | Table names delimited by commas | This is optional. If this parameter is
used, then the names of the Maximo tables to be adjusted
will appear after this parameter, delimited by commas.
For example: -tITEM,TOOL,WORKORDER
If not specified, then all tables will be adjusted. |
CommonShell
listStream
DB2, doNotUpdateACTION, doNotUpdateALNDOMAIN, doNotUpdateAPPLICATIONAUTH, doNotUpdateAUTOKEY, doNotUpdateCONDITION, doNotUpdateCONTRACTPROPERTY, doNotUpdateCONTRACTTYPE, doNotUpdateCROSSOVERDOMAIN, doNotUpdateDOCTYPES, doNotUpdateLANGUAGE, doNotUpdateMAXAPPS, doNotUpdateMAXCONDDETAIL, doNotUpdateMAXCONTROLVALUE, doNotUpdateMAXDOMAIN, doNotUpdateMAXLOGAPPENDER, doNotUpdateMAXLOGGER, doNotUpdateMAXMENU, doNotUpdateMAXMESSAGES, doNotUpdateMAXMODULES, doNotUpdateMAXPROP, doNotUpdateMAXPROPVALUE, doNotUpdateMAXROLE, doNotUpdateMAXSEQUENCE, doNotUpdateMAXSERSECURITY, doNotUpdateMAXSERVICE, doNotUpdateMAXTABLEDOMAIN, doNotUpdateMAXVARS, doNotUpdateMAXVARTYPE, doNotUpdateMXCOLLAB, doNotUpdateMXCOLLABREF, doNotUpdateNUMERICDOMAIN, doNotUpdateNUMRANGEDOMAIN, doNotUpdatePORTLET, doNotUpdatePRICALC, doNotUpdateSECURITYRESTRICT, doNotUpdateSIGOPTION, doNotUpdateSYNONYMDOMAIN, doNotUpdateTAXTYPE, doNotUpdateWORKPRIORITY, doNotUpdateWORKTYPE, doNotUpdateWPEDITSETTING, messageCache, NEWONLY, OLDANDNEW, OLDONLY, ORACLE, SQLINET, SQLMICROSOFT, SQLSERVER, SYSDATATABLES, SYSTEMTABLES, UNKNOWN
Constructor and Description |
---|
TextSearchScript()
This constructor does nothing.
|
TextSearchScript(MXServer server)
This constructor accepts parameter for MXServer and
sets value for
mxs . |
Modifier and Type | Method and Description |
---|---|
void |
endSetupInstance(java.lang.String outdir,
java.lang.String outfile,
java.util.HashMap params)
Process
-t parameter,
set values for tbnames . |
static void |
main(java.lang.String[] argv)
Main
|
void |
process()
Main processing method for this program.
|
createOutfile, doCall, doDB2TextSearchCall, doSql, doSql, doSql, doSql, doWait, endProcess, endProcessInstance, endSetup, execRuntime, getDisplayMessage, getDisplayMessage, getOutfile, getOutstream, getProperty, getRootDirName, logSql, reformatForDB2, reformatForSqlsvr, setConnection, setDB2TextOutput, setup, setupFromPropfile, setupInstance, setupNested, setupNestedInstance, setUserLangCode, showMsg, showMXException, showMXException
public TextSearchScript()
public void process() throws java.lang.Exception
Get metadata for all tables (or for the specified tables if using the -t parameter).
For each table, call TextSearch method
adjustTextSearchOneTable
.
This will examine the flags on maxobject and maxattribute, and enable or disable text search
as needed. It will execute any sql statements and output any db2text statements to a file.
process
in class CommonShell
java.lang.Exception
TextSearch.adjustTextSearchOneTable(java.util.HashMap)
,
Util.db2textAlterIndexes()
public void endSetupInstance(java.lang.String outdir, java.lang.String outfile, java.util.HashMap params) throws java.lang.Exception
-t
parameter,
set values for tbnames
.endSetupInstance
in class CommonShell
outdir
- Output directoryoutfile
- Log fileparams
- Parameters (see class javadocs).java.lang.Exception
public static void main(java.lang.String[] argv)