|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.data.IlvJDBCQueryParameters
public class IlvJDBCQueryParameters
A class that holds the parameters of an SQL query.
| Constructor Summary | |
|---|---|
IlvJDBCQueryParameters(Element parentElement,
Element queryElement)
Creates query parameters from a DOM element. |
|
IlvJDBCQueryParameters(String query,
IlvJDBCConnectionParameters connection,
IlvTableModelMapper mapper)
Creates a new set of parameters for an SQL query. |
|
| Method Summary | |
|---|---|
static IlvJDBCQueryParameters |
deserialize(Element parentElement,
Element queryElement)
Loads query parameters from a DOM element. |
IlvJDBCConnectionParameters |
getConnection()
Returns the database connection parameters. |
IlvTableModelMapper |
getMapper()
Returns the table mapper used to map the results of the query to a Swing TableModel. |
String |
getQuery()
Returns the SQL query string. |
Element |
serialize(Element element)
Saves these query parameters to a DOM element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvJDBCQueryParameters(String query,
IlvJDBCConnectionParameters connection,
IlvTableModelMapper mapper)
query - The SQL query string.connection - The parameters of the database connection.mapper - The table mapper used to map the results of the query
to a Swing TableModel.
public IlvJDBCQueryParameters(Element parentElement,
Element queryElement)
throws Exception
parentElement - The DOM element to where the connection parameters
where saved (that is, the element parameters that was
passed to serialize(org.w3c.dom.Element) when the query parameters were saved).queryElement - The DOM element to read the query parameters from.
Exception - If an error occurred while loading the parameters.| Method Detail |
|---|
public final String getQuery()
public final IlvJDBCConnectionParameters getConnection()
public final IlvTableModelMapper getMapper()
public Element serialize(Element element)
element - The DOM element to save to.
public static IlvJDBCQueryParameters deserialize(Element parentElement,
Element queryElement)
throws Exception
parentElement - The DOM element to where the connection parameters
where saved (that is, the element parameters that was
passed to serialize(org.w3c.dom.Element) when the query parameters were saved).queryElement - The DOM element to read the query parameters from.
Exception - If an error occurred while loading the parameters.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||