|
© 2002 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.
Field Summary | |
protected static WebLogicHelper |
cc
Deprecated. Singleton instance. |
protected static boolean |
debug
Deprecated. Compile out the debug code. |
protected java.lang.String |
serverUrl
Deprecated. The weblogic server url. |
protected weblogic.common.T3ServicesDef |
t3Services
Deprecated. Handle to the Weblogic T3 client class. |
Constructor Summary | |
protected |
WebLogicHelper()
Deprecated. Default constructor. |
Method Summary | |
void |
finalize()
Deprecated. Destructor. |
int |
getBuild()
Deprecated. Services that need this should provide internal implementation |
java.sql.Connection |
getConnection()
Deprecated. Use JdbcHelper.getConnection(javax.sql.DataSource, int, long) |
static WebLogicHelper |
getInstance()
Deprecated. Get the singleton instance. |
java.sql.Connection |
getJDBCConnection()
Deprecated. Use JdbcHelper.getConnection(javax.sql.DataSource, int, long) |
java.sql.Connection |
getJtsConnection()
Deprecated. Use JdbcHelper.getConnection(javax.sql.DataSource, int, long) |
long |
getNewId()
Deprecated. Use JdbcSequencer |
long |
getNewId(java.lang.String anId)
Deprecated. Use JdbcSequencer |
java.lang.Object |
getService(java.lang.String aLookupName)
Deprecated. Use JndiHelper to get the
Context and do the lookup. |
weblogic.common.T3ServicesDef |
getT3Services()
Deprecated. Services that need this functionality should implement it internally, and not expose it via a public API. |
weblogic.time.common.TimeServicesDef |
getTime()
Deprecated. Services that need this functionality should implement it internally, and not expose it via a public API. |
protected void |
init()
Deprecated. |
void |
log(int aLevel,
java.lang.String aMsg)
Deprecated. Use Weblogic i18n message logging |
void |
log(int aLevel,
java.lang.String appName,
java.lang.String aMsg)
Deprecated. Use Weblogic i18n message logging |
void |
log(java.lang.String aMsg)
Deprecated. Use Weblogic i18n message logging |
void |
setupConnection()
Deprecated. Services that need this functionality should implement it internally, and not expose it via a public API. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final boolean debug
protected static WebLogicHelper cc
protected weblogic.common.T3ServicesDef t3Services
protected java.lang.String serverUrl
Constructor Detail |
protected WebLogicHelper()
Method Detail |
public void finalize() throws java.lang.Throwable
public static WebLogicHelper getInstance()
public weblogic.common.T3ServicesDef getT3Services()
public weblogic.time.common.TimeServicesDef getTime()
protected void init()
public void setupConnection() throws ToolkitException
public java.lang.Object getService(java.lang.String aLookupName) throws ToolkitException
JndiHelper
to get the
Context and do the lookup.
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
JdbcHelper.getConnection(javax.sql.DataSource, int, long)
public java.sql.Connection getJDBCConnection() throws ToolkitException, java.sql.SQLException
JdbcHelper.getConnection(javax.sql.DataSource, int, long)
Connection
ToolkitException
- SQLException
- public java.sql.Connection getJtsConnection() throws ToolkitException, java.sql.SQLException
JdbcHelper.getConnection(javax.sql.DataSource, int, long)
Connection
ToolkitException
- SQLException
- public long getNewId() throws ToolkitException
JdbcSequencer
public long getNewId(java.lang.String anId) throws ToolkitException
JdbcSequencer
anId
- the table name, bean name, whatever you want to keep
track of unique ids for.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |