org.melati.poem
Class PreparedTailoredQuery
java.lang.Object
org.melati.poem.TailoredQuery
org.melati.poem.PreparedTailoredQuery
- Direct Known Subclasses:
- CachedTailoredQuery
public class PreparedTailoredQuery
- extends TailoredQuery
A TailoredQuery
which uses a PreparedStatement
.
PreparedTailoredQuery
public PreparedTailoredQuery(String modifier,
Column[] selectedColumns,
Table[] otherTables,
String whereClause,
String orderByClause)
- Full constructor.
- Parameters:
modifier
- SQL modifier eg DISTINCTselectedColumns
- an array of columns we know we needotherTables
- tables other than the one we belong towhereClause
- raw SQL where clauseorderByClause
- raw SQL order by clasue
PreparedTailoredQuery
public PreparedTailoredQuery(Column[] selectedColumns,
Table[] otherTables,
String whereClause,
String orderByClause)
- Constructor with null modifier.
- Parameters:
selectedColumns
- an array of columns we know we needotherTables
- tables other than the one we belong towhereClause
- raw SQL where clauseorderByClause
- raw SQL order by clasue
selection
public Enumeration<Object> selection()
- The results of the query.
- Overrides:
selection
in class TailoredQuery
- Returns:
- the results (a TailoredResultSetEnumeration) as an Enumeration.
- See Also:
TailoredQuery.selection()
selection_firstRaw
public Enumeration<Object> selection_firstRaw()
- Overrides:
selection_firstRaw
in class TailoredQuery
- Returns:
- an enumeration of the Columns in the first row of a ResultSet
the first row of this
TailoredQuery
- See Also:
TailoredQuery.selection_firstRaw()
Copyright © 2000-2010 PanEris. All Rights Reserved.