|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.data.DataSource
A data source. This object encapsulates a database connection that is used during for a set of data operations.
| Constructor Summary | |
DataSource(DatabaseConnection connection)
Creates a new data source. |
|
DataSource(DatabaseConnector database)
Creates a new data source. |
|
| Method Summary | |
void |
close()
Closes the connection to the data source. |
protected void |
finalize()
Calls the close() method to free resources. |
protected DatabaseConnection |
getConnection()
Returns the database connection. |
boolean |
isOpen()
Checks if this object has an open connection to its data source. |
void |
open()
Opens a connection to the data source. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataSource(DatabaseConnector database)
database - the database connector to usepublic DataSource(DatabaseConnection connection)
connection - the database connection to use| Method Detail |
public boolean isOpen()
public void open()
throws DataObjectException
DataObjectException - if no data source connection could
be establishedclose()public void close()
open()
protected DatabaseConnection getConnection()
throws DataObjectException
DataObjectException - if no database connection could be
establishedprotected void finalize()
close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||