|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 ResourceBundle
public PreparedStatement getStatement(Connection conn,
String key)
throws SQLException
conn - a valid database connectionkey - the key to lookup a SQL statement with
SQLException - if an error occurs creating the statement
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||