|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cle.persistence.DeploymentConnector | +--oracle.cle.persistence.DeploymentAutoConnector | +--oracle.cle.persistence.Handler | +--oracle.clex.persistence.handler.MessageLogHandler
Logs errors to a database table named ERROR_LOG described below. There must be a JDBCConnectionProvider available through the ConnectionManager mechanism.
Name Null? Type
-------------------------------------- -------- ----------------
PROCESS_NAME VARCHAR2(100)
MESSAGE VARCHAR2(2000)
STACK_TRACE VARCHAR2(2000)
DATE_CREATED DATE
TIME_CREATED VARCHAR2(20)
USER_CREATED VARCHAR2(20)
Here is the DDL for the table:
CREATE TABLE MESSAGE_LOG
(PROCESS_NAME VARCHAR2(100), MESSAGE VARCHAR2(2000),
STACK_TRACE VARCHAR2(2000), DATE_CREATED DATE,
TIME_CREATED VARCHAR2(20), USER_CREATED VARCHAR2(20))
/
Field Summary | |
protected static java.lang.String |
MESSAGE_LOG_STRING
Deprecated. The string to use for looking up the deploymentKey through the DeploymentManager. |
static java.lang.String |
NO_PROCESS
Deprecated. |
static java.lang.String |
NO_STACK_TRACE
Deprecated. |
static java.lang.String |
NO_USER_ID
Deprecated. |
protected static java.lang.String |
preparedSqlStatement
Deprecated. The prepared SQL Statement to run if we are logging to a database table: |
Constructor Summary | |
MessageLogHandler()
Deprecated. |
Method Summary | |
void |
deleteObject(java.lang.Object key,
java.lang.Object sessionId)
Deprecated. Dummy Implementation |
void |
deleteObject(Resource aResource,
java.lang.Object sessionId)
Deprecated. Dummy Implementation |
java.util.Vector |
getAllObjects(java.lang.Object sessionId)
Deprecated. Returns all the objects of the Resource for which this Handler was built. |
Resource |
getObject(java.lang.Object key,
java.lang.Object sessionId)
Deprecated. Does nothing..Returns null |
java.lang.Class |
getReferenceClass()
Deprecated. Returns null because this Handler goes through JDBC and doesn't use a Resource object/class. |
void |
logMessage(java.lang.Exception anException,
java.lang.String processName,
java.lang.String userId,
User aUser)
Deprecated. Logs an error for the specified Exception, processName and userId |
void |
logMessage(java.lang.Exception anException,
User aUser)
Deprecated. Logs an error for the specified Exception |
void |
logMessage(java.lang.String processName,
java.lang.String message,
java.lang.String stackTrace,
java.lang.String userCreated,
User aUser)
Deprecated. Logs a message. |
static void |
main(java.lang.String[] args)
Deprecated. |
Resource |
newObject(java.lang.Object sessionId)
Deprecated. Does nothing.. |
Methods inherited from class oracle.cle.persistence.Handler |
commitChanges, createObject, createObject, deleteObject, findObject, findObject, getAllObjects, registerForChanges, registerForChanges, startTransaction, startTransaction |
Methods inherited from class oracle.cle.persistence.DeploymentAutoConnector |
getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection |
Methods inherited from class oracle.cle.persistence.DeploymentConnector |
deploymentKeyNotFound, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getDeploymentKey, getDeploymentKey, getDeploymentKey, getProvider, getProvider, providerNotSupported, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NO_PROCESS
public static final java.lang.String NO_USER_ID
public static final java.lang.String NO_STACK_TRACE
protected static final java.lang.String preparedSqlStatement
Name Null? Type
-------------------------------------- -------- ----------------
PROCESS_NAME VARCHAR2(100)
MESSAGE VARCHAR2(2000)
STACK_TRACE VARCHAR2(2000)
DATE_CREATED DATE
TIME_CREATED VARCHAR2(20)
USER_CREATED VARCHAR2(20)
protected static final java.lang.String MESSAGE_LOG_STRING
deployment.properties
file must have an entry like this:
messagelog=<a deployment key>
DeploymentManager
,
ConnectionManager
,
logMessage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, oracle.cle.resource.User)
Constructor Detail |
public MessageLogHandler()
Method Detail |
public java.lang.Class getReferenceClass()
getReferenceClass
in class DeploymentAutoConnector
public void logMessage(java.lang.String processName, java.lang.String message, java.lang.String stackTrace, java.lang.String userCreated, User aUser) throws java.lang.Exception
public void logMessage(java.lang.Exception anException, User aUser) throws java.lang.Exception
public void logMessage(java.lang.Exception anException, java.lang.String processName, java.lang.String userId, User aUser) throws java.lang.Exception
public java.util.Vector getAllObjects(java.lang.Object sessionId)
Handler
If this method is not implemented for a given concrete Handler, then it will throw an UnsupportedOperationException
getAllObjects
in class Handler
oracle.cle.persistence.HandlerDefinition
public static void main(java.lang.String[] args)
public Resource newObject(java.lang.Object sessionId)
newObject
in class Handler
public Resource getObject(java.lang.Object key, java.lang.Object sessionId)
getObject
in class Handler
public void deleteObject(Resource aResource, java.lang.Object sessionId)
deleteObject
in class Handler
public void deleteObject(java.lang.Object key, java.lang.Object sessionId)
deleteObject
in class Handler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |