java.lang.Objectru.pan.magpie.Configuration
public class Configuration
| Constructor Summary | |
|---|---|
Configuration(java.lang.String configFileName)
Creates a new oracle-magpie Configuration instance. |
|
Configuration(java.lang.String configFileName,
javax.sql.DataSource ds)
Creates a new oracle-magpie Configuration instance. |
|
| Method Summary | |
|---|---|
javax.sql.DataSource |
getDataSource()
Returns data source object currently using by the library |
java.lang.Object |
getObjectTypeProxy(java.lang.Class clazz,
java.lang.Object baseObject)
Create a new instance of the oracle object type proxy for the java class instance mapped to this type |
java.lang.Object |
getPackageProxy(java.lang.Class clazz)
Creates a new instance of the oracle package proxy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration(java.lang.String configFileName)
throws java.sql.SQLException,
ru.pan.magpie.exceptions.InitConfigurationException
configFileName - file name of the main xml configuration file
java.sql.SQLException
ru.pan.magpie.exceptions.InitConfigurationException
public Configuration(java.lang.String configFileName,
javax.sql.DataSource ds)
throws java.sql.SQLException,
ru.pan.magpie.exceptions.InitConfigurationException
configFileName - file name of the main xml configuration fileds - data source, this argument value overwrites java.sql.SQLException
ru.pan.magpie.exceptions.InitConfigurationException| Method Detail |
|---|
public javax.sql.DataSource getDataSource()
public java.lang.Object getObjectTypeProxy(java.lang.Class clazz,
java.lang.Object baseObject)
throws ru.pan.magpie.exceptions.ProxyCreationException
clazz - interface mapped to the required oracle object typebaseObject - instance of the entity class, proxy base
ru.pan.magpie.exceptions.ProxyCreationException
public java.lang.Object getPackageProxy(java.lang.Class clazz)
throws ru.pan.magpie.exceptions.ProxyCreationException
clazz - interface mapped to the required oracle package
ru.pan.magpie.exceptions.ProxyCreationException