|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.loaders.Loader
org.millscript.millscript.loaders.ValueLoader
org.millscript.millscript.loaders.JdbcConnectionLoader
public class JdbcConnectionLoader
This class implements a JDBC connection file loader. The idea is to take a Java properties file containing all the properties required to establish a JDBC connection and construct a new DataSource. The Java properties file is expected to look something like:
data.source.name = The name of this DataSource host = ahost.somewhere.org port = 5432 username = testuser password = testpassword db.name = test max.connections = 10where
port and max.connections are optional.
ValueLoader,
DataSource| Field Summary |
|---|
| Fields inherited from class org.millscript.millscript.loaders.Loader |
|---|
entry, pack, symbol |
| Constructor Summary | |
|---|---|
JdbcConnectionLoader()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
loadValue()
Causes this loader to load it's value. |
| Methods inherited from class org.millscript.millscript.loaders.ValueLoader |
|---|
loadBindings |
| Methods inherited from class org.millscript.millscript.loaders.Loader |
|---|
getInstance, getLineNumber, getOrigin, getSymbol, newLoader, setContext, setLineNumber, setLoader, setOrigin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcConnectionLoader()
| Method Detail |
|---|
public java.lang.Object loadValue()
throws java.io.IOException
Loader
loadValue in class Loaderjava.io.IOException - if something goes wrong reading from the sourceLoader.loadValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||