Allow JDBCStoreManager to avail configuration different than that of its StoreContext

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2007-12-14 22:35:06 +00:00
parent 787b57a486
commit 2c18b555c7
1 changed files with 5 additions and 1 deletions

View File

@ -105,8 +105,12 @@ public class JDBCStoreManager
} }
public void setContext(StoreContext ctx) { public void setContext(StoreContext ctx) {
setContext(ctx, (JDBCConfiguration) ctx.getConfiguration());
}
public void setContext(StoreContext ctx, JDBCConfiguration conf) {
_ctx = ctx; _ctx = ctx;
_conf = (JDBCConfiguration) ctx.getConfiguration(); _conf = conf;
_dict = _conf.getDBDictionaryInstance(); _dict = _conf.getDBDictionaryInstance();
_sql = _conf.getSQLFactoryInstance(); _sql = _conf.getSQLFactoryInstance();