*****************************************************************************
*** Class : cCLIHandler ***
*** Purpose: An instance of this class can be used as a broker object to ***
*** call several CLI releated methods. ***
*****************************************************************************
Construct_Object(Integer iImage)
- String
psDriverID
- String
CKRevision()
***
*** Fucntion: CKRevsion
*** Purpose : The revsion of a CLI Connectivity Kit
***
- String
sDriverID - String
sRevision - String
sVoid - Integer
iRetval
- Integer
ExtractPartFromRevision(Integer iPartNum String sRevision)
***
*** Function: ExtractPartFromRevision
*** Purpose : Extarct the Nth part of a a.b.c.d revsion string.
***
*** Returns : The part version number or -1 if there is no such part number.
***
- Integer
iPartRev - Integer
iCurrentPart - Integer
iSeparatorPos
- Integer
CKMajorRevision()
***
*** Function: CKMajorRevision
*** Purpose : Returns the major revision of the CK
***
- Integer
CKMinorRevision()
***
*** Function: CKMinorRevision
*** Purpose : Returns the minor revision of the CK
***
- Integer
CKReleaseRevision()
***
*** Function: CKReleaseRevision
*** Purpose : Returns the release revision of the CK
***
- Integer
CKBuildRevision()
***
*** Function: CKBuildRevision
*** Purpose : Returns the major revision of the CK
***
- Integer
IsMinimalRevision(Integer iMajor Integer iMinor Integer iRelease Integer iBuild)
***
*** Function: IsMinimalRevision
*** Purpose : Determines if the CK conforms to a passed minimal revsion.
***
- String
RegistrationName()
***
*** Function: RegistrationName
*** Purpose : Returns the Connectiivty Kit registration name.
***
- String
sRegistration - String
sDRiverId - String
sVoid - Integer
iRetval
- Integer
SerialNumber()
***
*** Function: SerialNumber
*** Purpose : Returns the Connectiivty Kit serial number.
***
- String
sDRiverId - String
sVoid - Integer
iRetval
- Integer
MaxUsers()
***
*** Function: MaxUsers
*** Purpose : Returns the Connectiivty Kit maximum number of users.
***
- String
sDRiverId - String
sVoid - Integer
iRetval
DumpStatus(String sFileName)
***
*** Procedure: DumpStatus
*** Purpose : Dump the current status of the drver in the passed disk file.
***
- String
sVoid - String
sDriverID - Integer
iVoid
ReadConfiguration()
***
*** Procedure: ReadConfiguration
*** Purpose : Reset all driver level configurable attributes to the
*** default value and then reread the configuration.
***
- String
sVoid - String
sDriverID - Integer
iVoid
- Integer
TextToRIMValue(String sText)
***
*** Function: TextToRIMValue
*** Purpose : Convert a text to the corresponding
*** Generate_Record_ID_Method attribute value
***
- String
RIMValueToText(Integer iAttrValue)
***
*** Function: RIMValueTotext
*** Purpose : Convert a Generate_Record_ID_Method attribute value to the
*** corresponding text.
***
- Integer
TextToROValue(String sText)
***
*** Function: TextToROValue
*** Purpose : Convert a text to the corresponding
*** Generate_Record_ID_Method attribute value
***
- String
ROValueToText(Integer iAttrValue)
***
*** Function: ROValueTotext
*** Purpose : Convert a Generate_Record_ID_Method attribute value to the
*** corresponding text.
***
- String
LastDriverError()
***
*** Function: LastDriverError
*** Purpose : Return the text f the last error geneated by the driver.
***
- String
sDriverID - String
sLastError - String
sLastErrorLength - Integer
iLastErrorLength - Integer
iVoid
- Integer
EnumerateTables(String sLogin)
***
*** Function: EnumerateTables
*** Purpose : Enumerate the tables in a database
***
- String
sDriver - String
sVoid - Integer
iNumTables - Integer
iVoid
- String
TableName(Integer iIndex)
***
*** Function: TableName
*** Purpose : Returns the name of the table enumerated at the given position
***
- String
sDriver - String
sTableName - String
sVoid - Integer
iVoid
- String
SchemaName(Integer iIndex)
***
*** Function: SchemaName
*** Purpose : Returns the name of the schema of the table enumerated at the given position
***
- String
sDriver - String
sSchemaName - String
sVoid - Integer
iVoid
- String
TableType(Integer iIndex)
***
*** Function: TableType
*** Purpose : Returns the type of the table enumerated at the given position.
*** Types can be "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY",
*** "LOCAL TEMPORARY", "ALIAS", "SYNONYM"
***
- String
sDriver - String
sTableType - String
sVoid - Integer
iVoid
- String
TableComment(Integer iIndex)
***
*** Function: TableComment
*** Purpose : Returns the comment of the table enumerated at the given position
***
- String
sDriver - String
sTableComment - String
sVoid - Integer
iVoid
- Integer
EnumerateColumns(String sLogin String sTableName)
***
*** Function: EnumerateColumns
*** Purpose : Enumerate the columns in a table
***
- String
sDriver - Integer
iNumColumns - Integer
iVoid
- String
ColumnName(Integer iIndex)
***
*** Function: ColumnName
*** Purpose : Returns the name of the column enumerated at the given position
***
- String
sDriver - String
sColumnName - String
sVoid - Integer
iVoid
- String
CLIDFDateToSQLDate(String sDRiver Date dDFDate)
***
*** Function: CLIDFDateToSQLDate
*** Purpose : Convert a DataFlex date to a SQL date using the dummy zero date value.
***
- String
sSQLDate - Integer
iOrgDateFmt - Integer
iOrgDateSep
- Date
CLISQLDateToDFDate(String sDRiver String sSQLDate)
***
*** Function: CLISQLDateToDFDate
*** Purpose : Convert a SQL date to a DataFlex date using the dummy zero date value.
***
- Date
dDFDate - String
sDummyDateValue - Integer
iOrgDateFmt - Integer
iOrgDateSep
- Integer
RedirectConnection(String sOldConnection String sNewConnection)
***
*** Function: RedirectConnection
*** Purpose : Redirect an exisitng connection. The existing connection
*** will point to another database but all tables will stay
*** open!
***
- String
sDriver - String
sVoid - Integer
iResult - Integer
iVoid
- Integer
CreateConnectionID(String sID String sConnStr Integer iOpt)
***
*** Function: CreateConnectionID
*** Purpose : Create a DataFlex side connection id that can be used later on.
***
- String
sDriver - Integer
iResult - Integer
iOptions
- Integer
DeleteConnectionID(String sID Integer iIndex)
***
*** Function: DeleteConnectionID
*** Purpose : Delete a DataFlex side connection id.
***
- String
sDriver - Integer
iResult - String
sVoid