| java.lang.Object com.knowgate.dataobjs.DBAudit
DBAudit | public class DBAudit (Code) | | Keeps an operations log at a file or database table.
author: Sergio Montoro ten version: 3.0 |
Method Summary | |
public static String | analyze(String sFile) | protected void | finalize() | public static void | log(JDCConnection oConn, short iIdEntity, String sCoOp, String sGUUser, String sGUEntity1, String sGUEntity2, int iIdTransact, int iIPAddr, String sTxParams1, String sTxParams2) Write a log entry into k_auditing database table
Parameters: oConn - Database connection, if null then data if dumped to a flat file. Parameters: iIdEntity - - Internal ClassId short nombre for audited class. Parameters: sCoOp - - Operation Code (4 alphanumeric digits) Parameters: sGUUser - - GUID of user performing the operation (máx. | public static void | log(short iIdEntity, String sCoOp, String sGUUser, String sGUEntity1, String sGUEntity2, int iIdTransact, String sIPAddr, String sTxParams1, String sTxParams2) Write a log entry into javatrx.txt file
Parameters: iIdEntity - - Internal ClassId short nombre for audited class. Parameters: sCoOp - - Operation Code (4 alphanumeric digits) Parameters: sGUUser - - GUID of user performing the operation (máx. | public static void | main(String[] argv) | public static void | setAuditFile(String sFilePath) |
log | public static void log(JDCConnection oConn, short iIdEntity, String sCoOp, String sGUUser, String sGUEntity1, String sGUEntity2, int iIdTransact, int iIPAddr, String sTxParams1, String sTxParams2) throws SQLException(Code) | | Write a log entry into k_auditing database table
Parameters: oConn - Database connection, if null then data if dumped to a flat file. Parameters: iIdEntity - - Internal ClassId short nombre for audited class. Parameters: sCoOp - - Operation Code (4 alphanumeric digits) Parameters: sGUUser - - GUID of user performing the operation (máx. 32 characters) Parameters: sGUEntity1 - - GUID of primary entity (or source entitity) for the operation (máx. 32 characters) Parameters: sGUEntity2 - - GUID of secondary entity (or target entitity) for the operation (máx. 32 characters) Parameters: iIdTransact - - Transaction Identifier Parameters: iIPAddr - - User IP address Parameters: sTxParams1 - - Aditional parameters related to entity 1 (máx 255 characters) Parameters: sTxParams2 - - Aditional parameters related to entity 2 (máx 255 characters) throws: SQLException - throws: SecurityException - |
log | public static void log(short iIdEntity, String sCoOp, String sGUUser, String sGUEntity1, String sGUEntity2, int iIdTransact, String sIPAddr, String sTxParams1, String sTxParams2)(Code) | | Write a log entry into javatrx.txt file
Parameters: iIdEntity - - Internal ClassId short nombre for audited class. Parameters: sCoOp - - Operation Code (4 alphanumeric digits) Parameters: sGUUser - - GUID of user performing the operation (máx. 32 characters) Parameters: sGUEntity1 - - GUID of primary entity (or source entitity) for the operation (máx. 32 characters) Parameters: sGUEntity2 - - GUID of secondary entity (or target entitity) for the operation (máx. 32 characters) Parameters: iIdTransact - - Transaction Identifier Parameters: iIPAddr - - User IP address Parameters: sTxParams1 - - Aditional parameters related to entity 1 (máx 255 characters) Parameters: sTxParams2 - - Aditional parameters related to entity 2 (máx 255 characters) throws: SecurityException - if there aren't sufficient permissions for writting at javatrc.txt file |
setAuditFile | public static void setAuditFile(String sFilePath) throws IOException(Code) | | Set path to log output file
Parameters: sFilePath - Physical file path throws: IOException - |
|
|