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