9.5 ACIpsDBAccess Class
class ACIpsDBAccess: public ACIpsBufInstance 12
Extention ACIpsBufInstance for databaseaccess
Defined in: ACIPSDB.hpp
|
Class Members
|
public members
ACIpsDBAccess()
Constructor.
virtual ~ACIpsDBAccess()
Copy constructor.
virtual ~ACIpsDBAccess()
Destructor.
LONG DispatchFunction( LONG, LONG*, DOUBLE*, SCString* )
The virtual RuntimeFunctions executes the scriptfunctions.
CDBClient* GetCDBClient()
Returns the pointer to DBClient
VOID SetDBCredentials( char* )
Sets the DBCredentials informations
protected members
SCString scsClass
Stores the name of object for errorhandling
CDBClient* pCDBCl
Pointer to DBClientobject
LONG DbsInitAccess( XI_SDbsInitAccess& )
Prepares the DBClient for database access
LONG DbsInitAccess()
Prepares the DBClient for database access
LONG DbsCheckLogin()
Checks login to infra:Database
LONG DbsConnect( unsigned long )
Connects to Database using existing db connection
LONG DbsConnect( pUSHORT =NULL )
Connects to Database I: DatenQuelle I: Login Name I: Login PW O: DB-Client Handle (Index)
LONG DbsConnect( pUSHORT =NULL )
Connects to Database
LONG Disconnect()
Disconnects from Database
LONG DisAndConnect()
Reconnects to Database
LONG BufSetKey( const SCString&,LONG, const SCString& )
Clears the buffer an sets a key
LONG BufAddKey( const SCString&,LONG, const SCString& )
Adds a key to buffer previously prepared with BufSetKey
LONG BufSetKeys( const SCString&,const SCString&, LONG )
Clears the buffer an calculates the field to set the keys
LONG QueryKeyFields( const SCString& , LONG , LONG* )
Returns all keyfields
LONG BufSetPartField( const SCString&, LONG,LONG,LONG, const SCString& )
Set a value at offset in field
KS_RET DeleteAll()
Deletes the database
KS_RET LockTable( const SCString& )
Locks an InfraTable
KS_RET UnlockTable( const SCString& )
Unlocks an InfraTable
KS_RET LockDB()
Locks the database
KS_RET UnlockDB()
Unlocks the database
LONG DDp( LONG, LONG )
Return the position of a field in a buffer
LONG DDl( LONG, LONG )
Return the length of a field
KS_RET SysQueryAnzUsers( pLONG )
Return the actually login users
KS_RET FilWriteRecord
Directly writing to database
KS_RET FilReadRecord
Directly reading from database
KS_RET OpenTable
Opens an Infra Database table
KS_RET CloseTable
Close an Infra Database table
KS_RET DDQueryTable
Query table information from DataDictionary
KS_RET DDQueryIndex
Query index information from DataDictionary
KS_RET DDQueryFieldFormat
Query field format information from DataDictionary
KS_RET DDQueryField
Query field information from DataDictionary
KS_RET DDQueryTableNames
Query table information from DataDictionary
LONG ReorgTable( const SCString&, ULONG, const SCString& )
Reorganizes a table
LONG DBcreate( const SCString&, LONG, LONG, LONG, LONG, LONG, LONG, LONG, SCString& )
Creates an Infra DataBase file with infos from DataDictionary
LONG DBreclength( const SCString&, LONG )
Enlarge the length of user records of an Infra DateBase file
KS_RET Delete()
Quick delete of infra:database, clears only the indexpart
LONG CS_UpdateServerKO()
Quick delete of a infra:DB - table, clears only the indexpart I: Datei-Index
LONG CS_UpdateServerKO()
Copies KO.dat to all infra DB servers
LONG CS_CopyDataDict()
Copies sibdd.bin from infra:DB Server to infra:client
LONG CS_QueryServerValue( ULONG, LONG*, LONG* )
Returns admin values of infra:DB on infra:Server
LONG CS_ChangeRecordLen( const SCString& )
Copies Table on infra:Server and add number to tablename 4
LONG CS_ChangeRecordLen( const SCString& )
Change recordlength of infra:DB on infra:Server
LONG CS_CreateDD( ULONG* )
Creates DD on infra:DBServer
LONG CS_DBcreate( const SCString&, LONG, LONG, LONG, LONG, LONG, LONG, LONG, SCString&, ULONG* )
Creates an Infra DataBase table using infra:CS - function
LONG CS_ReorgTable( const SCString&, ULONG, ULONG* )
Reorganizises a table using infra:CS (asyncron call)
LONG CS_RunReorgTable( const SCString&, REORGDATASTRUCT&, ULONG* )
Executes ReorgTable - function
LONG CS_WaitSessionTermination( LONG, ULONG )
Waits the end of given session
LONG CS_QuerySessionState( LONG, ULONG, ULONG& )
Wait method of asyncron CS - function call
LONG CS_IsReplicate( LONG& )
Checks if infra:DB is replicated
LONG CS_IsLCD()
Checks if infra:DB is a LCD version
LONG CS_IsLCD( LONG& )
Checks if infra:DB is a LCD version
LONG CS_IsCS( LONG& )
Checks if infra:DB is a CS version 4
LONG CS_GetUHV32()
Checks if infra:DB is a CS version 4
LONG CS_GetUHV32()
Returns infra:highvalue
LONG CS_PutFile(const SCString&, const SCString&, LONG )
Gets file from infra:server to infra:client 8
KS_RET SysQueryTableInfo( SSysTableInfo& )
Puts file from infra:client to infra:server 8 8
KS_RET SysQueryTableInfo( SSysTableInfo& )
Sets the values of SSysTableInfo
KS_RET SysQueryTableInfo( const SSysTableInfo& ,DBSVORLAUF&, DBSVERWALT& )
Gets admin values directly from InfraDBFile
VOID OpenFile( const SCString&, ULONG, LONG& )
Opens a file for reading or writing 13 VOID OpenFile( SCString&, ULONG, LONG& );
LONG ReplaceOrgFile( ACIpsErrorElement&, const SCString&, const SCString& )
Replace a file by an new one
LONG RunAppl( const SCString&, const SCString&, LONG )
Starts a process
SCString FormateValue( const SCString&, LONG, const SCString& )
Formates the given value according field formate from DD
SCString GetIndexStringAtEnd( const SCString&, SCString&, ULONG& )
Seperates Index from String
VOID CloseFile( ULONG )
Close a file previously opend by OpenFile
BOOL EnoughDiskSpace( const SCString&, ULONG )
Check the necessary Diskspace
ULONG CalcMemNeed( const SSysTableInfo& )
Calculate the memory to operate on database
VOID SplitPath( SCString&,SCString&, SCString& )
Splits a complete path into its items
VOID ReplaceFileExt( SCString&, const SCString& )
Replace the extension of a file
SCString QueryDataPath( const SCString& )
Returns the path of database from sibdb.ini
SCString QueryDataPath()
Returns the path of database from sibdb.ini
SCString QueryConfigFile()
Returns path and file to ko.dat
SCString QueryDDFile()
Returns path and file to ddfdf.dat
SCString QueryIniPath()
Returns the path of Infra inifiles
SCString QueryDBIniFile()
Returns the path and filename of database ini file
LONG QueryDataSourceDescr( SCString& )
Returns the names of all the database descriptions
SCString QueryDataSourceFromDescr( const SCString& )
Returns the database name from descrition
SCString QueryToken( LONG , const SCString& )
Retruns a token
LONG LoadINISection( SCNode&, SCNode&, const SCString&, const SCString& )
Loads an inifile section to memory
LONG QueryTableNr( const SCString& )
Returns the tableident from tablename
ACIpsBuf* QueryIpsBuf( const SCString&, const SCString&, LONG& )
Returns a pointer to ipsbuffer to a buffername
LONG QueryISN( const SCString& )
Returns the ISN of actual buffer
SCTable* QuerySCTable( LONG )
Returns the SCTable from table
private:
Returns the SCDataBase from table 7
private members
XI_SDbsCredentials sInfraDBCred
Stores the info for an InfraDB access
XI_SDbsCredentials sInfraDBCred_IE
Stores the info for an InfraDB reaccess
bool bDisconnectAtEnd
true disconnects from db in destructor
|
