|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.p13n.property.SqlBundle
public class SqlBundle
Utility class to externalize SQL statements in a ResourceBundle.
Field Summary | |
---|---|
static String |
SQL_BUNDLE the property to read to find the name of our sql bundle |
Constructor Summary | |
---|---|
SqlBundle() Default constructor |
|
SqlBundle(String defaultBundleName) Construct a SqlBundle with a default bundle name |
Method Summary | |
---|---|
PreparedStatement |
getStatement(Connection conn, String key) Use the provided connection to prepare the SQL statement named by the provided key. |
void |
init() Initialize the ResourceBundle that backs up this bundle. |
void |
init(String defaultSqlBundle) Initialize the ResourceBundle that backs up this bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SQL_BUNDLE
Constructor Detail |
---|
public SqlBundle()
public SqlBundle(String defaultBundleName)
defaultBundleName
- the default base name for ResourceBundle if "SqlBundle" environment not defined in dd.Method Detail |
---|
public void init()
public void init(String defaultSqlBundle)
defaultSqlBundle
- the default name to use for the ResourceBundlepublic PreparedStatement getStatement(Connection conn, String key) throws SQLException
conn
- a valid database connectionkey
- the key to lookup a SQL statement withSQLException
- if an error occurs creating the statement
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.