|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.datatypes.DatabaseSource
public class DatabaseSource
This class is a wrapper for a DataSource. It allows millscript to share a database connection between multiple functions, as created by the SQL loader.
| Constructor Summary | |
|---|---|
DatabaseSource(java.lang.String n,
javax.sql.DataSource ds,
java.io.File lf)
Constructs a new DatabaseSource using the supplied DataSource. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Returns a connection to the database detailed in this DataSource. |
java.lang.String |
toString()
Returns a string representation of this database source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseSource(java.lang.String n,
javax.sql.DataSource ds,
java.io.File lf)
n - the DataSource nameds - the DataSource to wrap.lf - the DataSource lockfile, or null if there is no
lockfile| Method Detail |
|---|
public java.sql.Connection getConnection()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||