|
||||||||||
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.mysql.AbstractMySqlDataSourceProxy de.smartics.properties.impl.config.ds.mysql.MySqlDataSourceProxy
public final class MySqlDataSourceProxy
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 MySqlDataSourceProxy |
create() Factory method to create with URL jdbc:mysql://localhost:3306/properties . |
static MySqlDataSourceProxy |
create(String connectionUrl) Factory method to create with the given connection URL using user properties and password properties . |
static MySqlDataSourceProxy |
create(String connectionUrl, String userName, String password) Factory method to create with the given connection URL using the given credentials. |
DataSource |
getDataSource() Provides access 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.mysql.AbstractMySqlDataSourceProxy |
---|
getCreateTableSqlTemplate, getInsertOrUpdateSqlTemplate, setInsertOrUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static MySqlDataSourceProxy create()
jdbc:mysql://localhost:3306/properties
.
public static MySqlDataSourceProxy create(String connectionUrl)
properties
and password
properties
.
connectionUrl
- the JDBC URL to connect to te database. E.g.
jdbc:mysql://localhost:3306/properties
.
public static MySqlDataSourceProxy create(String connectionUrl, String userName, String password)
connectionUrl
- the JDBC URL to connect to te database. E.g.
jdbc:mysql://localhost:3306/properties
.
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()
DataSourceProxy
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |