|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.util.weblogic.helper.WebLogicHelper
Single point of access to the application server. This should make it easy to swap out servers, and processes.
Fields inherited from interface com.beasys.commerce.axiom.util.ToolkitConstants |
DEFAULT_ID_CACHE,
DEFAULT_ID_PROCEDURE,
DEFAULT_JDBC_POOL_NAME,
DEFAULT_JTS_POOL_NAME,
DEFAULT_LOGGING_LEVEL,
DEFAULT_WEBLOGIC_HOST,
DEFAULT_WEBLOGIC_PORT,
ID_CACHE,
ID_PROCEDURE,
JDBC_POOL_NAME,
JTS_POOL_NAME,
LOG_DEBUG,
LOG_ERROR,
LOG_FATAL,
LOG_INFO,
LOG_SECURITY,
LOG_WARNING,
LOGGING_LEVEL,
WEBLOGIC_HOST,
WEBLOGIC_PORT |
Method Summary | |
void |
finalize()
Destructor. |
int |
getBuild()
Get the WebLogic version. |
java.sql.Connection |
getConnection()
Get a connection to a pooled database connection in Weblogic. |
weblogic.event.common.EventServicesDef |
getEvents()
Get the T3 events service. |
static WebLogicHelper |
getInstance()
Get the singleton instance. |
java.sql.Connection |
getJDBCConnection()
Get a straight JDBC connection. |
java.sql.Connection |
getJDBCConnection(java.lang.String myPoolName)
Get a straight JDBC connection. |
java.sql.Connection |
getJtsConnection()
Get connection. |
long |
getNewId()
Get a unique id for a schema. |
long |
getNewId(java.lang.String anId)
Get a unique id for a given id. |
java.util.Properties |
getProperties(java.lang.String aPropertyName,
java.lang.String aPropertySubName)
Get properties for a weblogic entry. |
java.lang.Object |
getService(java.lang.String aLookupName)
Connect to a reference in JNDI referred to by the lookup name. |
weblogic.time.common.TimeServicesDef |
getTime()
Get the T3 time service. |
java.lang.String |
getWebLogicProperty(java.lang.String aPropertyName)
Helper method for getting a weblogic property. |
java.lang.String |
getWebLogicProperty(java.lang.String aPropertyName,
java.lang.String aDefault)
Helper method for getting a weblogic property. |
void |
log(int aLevel,
java.lang.String aMsg)
Write to the weblogic logs, with extra information added. |
void |
log(int aLevel,
java.lang.String appName,
java.lang.String aMsg)
Write to the weblogic logs, with extra information added. |
void |
log(java.lang.String aMsg)
Write to the weblogic logs, with extra information added. |
void |
setupConnection()
creates a T3Client connection to the Tengah server, creates a jndi context to lookup the TRVClientServices object, and creates a TRVClient |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public void finalize() throws java.lang.Throwable
public static WebLogicHelper getInstance()
public weblogic.event.common.EventServicesDef getEvents()
public weblogic.time.common.TimeServicesDef getTime()
public void setupConnection() throws ToolkitException
public java.lang.Object getService(java.lang.String aLookupName) throws ToolkitException
String
- the lookup name.public void log(java.lang.String aMsg)
String
- the message, if null it will ignore.public void log(int aLevel, java.lang.String aMsg)
int
- aLevel Possible error levels are:
FrameworkConstants.LOG_DEBUG
FrameworkConstants.LOG_INFO
FrameworkConstants.LOG_WARNING
FrameworkConstants.LOG_ERROR
FrameworkConstants.LOG_FATAL
FrameworkConstants.LOG_SECURITYString
- the message, if null it will ignore.public int getBuild()
public void log(int aLevel, java.lang.String appName, java.lang.String aMsg)
int
- aLevel Possible error levels are:
FrameworkConstants.LOG_DEBUG
FrameworkConstants.LOG_INFO
FrameworkConstants.LOG_WARNING
FrameworkConstants.LOG_ERROR
FrameworkConstants.LOG_FATAL
FrameworkConstants.LOG_SECURITYappName
- the name of the application logging the messageString
- the message, if null it will ignore.public java.sql.Connection getConnection() throws ToolkitException, java.sql.SQLException
public java.sql.Connection getJDBCConnection() throws ToolkitException, java.sql.SQLException
Connection
ToolkitException
- SQLException
- public java.sql.Connection getJDBCConnection(java.lang.String myPoolName) throws ToolkitException, java.sql.SQLException
myPoolName
- name of the JDBC pool to return a connection for.Connection
ToolkitException
- SQLException
- public java.sql.Connection getJtsConnection() throws ToolkitException, java.sql.SQLException
Connection
ToolkitException
- SQLException
- public long getNewId() throws ToolkitException
public long getNewId(java.lang.String anId) throws ToolkitException
anId
- the table name, bean name, whatever you want to keep
track of unique ids for.public java.lang.String getWebLogicProperty(java.lang.String aPropertyName, java.lang.String aDefault)
the
- property name.public java.lang.String getWebLogicProperty(java.lang.String aPropertyName)
the
- property name.public java.util.Properties getProperties(java.lang.String aPropertyName, java.lang.String aPropertySubName) throws java.io.IOException
aPropertyName
- handle to find all references for a property.aPropertySubName
- how to narrow all the references down to the one
you are looking for.Properties
the properties for a given entry.IOException
- error loading into java.util.Properties
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |