|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mlw.vlh.adapter.jdbc.util.ConfigurableStatementBuilder
Copyright (c) 2003 held jointly by the individual authors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. > http://www.gnu.org/copyleft/lesser.html > http://www.opensource.org/licenses/lgpl-license.php
Constructor Summary | |
ConfigurableStatementBuilder()
|
Method Summary | |
PreparedStatement |
generate(Connection conn,
StringBuffer query,
Map whereClause,
boolean scrollable)
Populates the Query object with the given Map. |
Setter |
getSetter(String name)
Gets a setter for the given property. |
void |
init()
Initialize this bean with default values. |
void |
setDefaultSetter(Setter defaultSetter)
|
void |
setSetters(Map setters)
|
void |
setTextManipulators(List textManipulators)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurableStatementBuilder()
Method Detail |
public void init()
public PreparedStatement generate(Connection conn, StringBuffer query, Map whereClause, boolean scrollable) throws SQLException, ParseException
StatementBuilder
generate
in interface StatementBuilder
conn
- The conectionquery
- The query string.whereClause
- The where clause in a map form.scrollable
- Should this return a scrollable result set?
SQLException
- if an error occurs.
ParseException
StatementBuilder.generate(java.sql.Connection, java.lang.StringBuffer, java.util.Map, boolean)
public Setter getSetter(String name)
name
- The name of the property. Also the key in the Map.
public void setSetters(Map setters)
setters
- The setters to set.public void setDefaultSetter(Setter defaultSetter)
defaultSetter
- The defaultSetter to set.public void setTextManipulators(List textManipulators)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |