public static class IlvJDBCDataSource.QueryParameters extends IlvJDBCQueryParameters
| Constructor and Description |
|---|
QueryParameters(Element parentElement,
Element queryElement)
Reads the query parameters from an XML element.
|
QueryParameters(String query,
IlvJDBCConnectionParameters connection,
IlvTableModelMapper mapper,
String defaultTag,
boolean defaultIsLinks)
Creates new query parameters.
|
QueryParameters(String query,
IlvJDBCConnectionParameters connection,
IlvTableModelMapper mapper,
String defaultTag,
boolean defaultIsLinks,
boolean mapAllColumns)
Creates new query parameters.
|
QueryParameters(String query,
Object[] queryParameters,
IlvJDBCConnectionParameters connection,
IlvTableModelMapper mapper,
String defaultTag,
boolean defaultIsLinks,
boolean mapAllColumns)
Creates new query parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDefaultIsLinks()
Returns true if the query returns links.
|
String |
getDefaultTag()
Returns the default tag.
|
boolean |
isMapAllColumns()
Returns true if all the columns must be mapped to properties.
|
Element |
serialize(Element element)
Writes the query parameters to an XML element.
|
deserialize, getConnection, getMapper, getQuery, getQueryParameterspublic QueryParameters(String query, IlvJDBCConnectionParameters connection, IlvTableModelMapper mapper, String defaultTag, boolean defaultIsLinks)
query - The SQL query string. In this query, every parameter should be
validated, to prevent SQL injection attacks.connection - The parameters of the database connection.mapper - The table mapper used to map the results of the query
to a Swing TableModel.public QueryParameters(String query, IlvJDBCConnectionParameters connection, IlvTableModelMapper mapper, String defaultTag, boolean defaultIsLinks, boolean mapAllColumns)
query - The SQL query string. In this query, every parameter should be
validated, to prevent SQL injection attacks.connection - The parameters of the database connection.mapper - The table mapper used to map the results of the query
to a Swing TableModel.public QueryParameters(String query, Object[] queryParameters, IlvJDBCConnectionParameters connection, IlvTableModelMapper mapper, String defaultTag, boolean defaultIsLinks, boolean mapAllColumns)
query - The query to execute, with a question mark placeholder for
each parameter.queryParameters - Parameters of the query.connection - The parameters of the database connection.mapper - The table mapper used to map the results of the query
to a Swing TableModel.public String getDefaultTag()
public boolean getDefaultIsLinks()
public boolean isMapAllColumns()
public Element serialize(Element element) throws SQLException
serialize in class IlvJDBCQueryParameterselement - The DOM element to save to.SQLException© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.