|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.impl.config.ds.hsql.AbstractHSqlDataSourceProxy de.smartics.properties.impl.config.ds.hsql.HSqlDataSourceProxy
public final class HSqlDataSourceProxy
Data source proxy to create HSQL data sources.
Please note that the password passed to this instance is stored. This is necessary in the case of deserialisation where the wrapped data source instance must be recreated. If this provides a security problem, please consider using the JndiDataSourceProxy
.
Method Summary | |
---|---|
static HSqlDataSourceProxy |
create() Factory method to create with URL jdbc:hsqldb:mem:configmemdb . |
static HSqlDataSourceProxy |
create(String connectionUrl) Factory method to create with the given connection URL using user SA and no password. |
static HSqlDataSourceProxy |
create(String connectionUrl, String userName, String password) Factory method to create with the given connection URL using the given credentials. |
DataSource |
getDataSource() Returns the reference to the data source. |
String |
getDataSourceId() Returns the identifier of the data source. |
String |
toString() |
Methods inherited from class de.smartics.properties.impl.config.ds.hsql.AbstractHSqlDataSourceProxy |
---|
getCreateTableSqlTemplate, getInsertOrUpdateSqlTemplate, setInsertOrUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static HSqlDataSourceProxy create()
jdbc:hsqldb:mem:configmemdb
.
public static HSqlDataSourceProxy create(String connectionUrl)
SA
and no password.
connectionUrl
- the JDBC URL to connect to te database. E.g.
jdbc:hsqldb:file:target/testdb;shutdown=true
.
public static HSqlDataSourceProxy create(String connectionUrl, String userName, String password)
connectionUrl
- the JDBC URL to connect to te database. E.g.
jdbc:hsqldb:file:target/testdb;shutdown=true
.
userName
- the name of the database user to connect to the database.
password
- the password to the user.
public String getDataSourceId()
DataSourceProxy
public DataSource getDataSource()
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |