org.apache.ojb.broker.accesslayer.sql
Interface SelectStatement

All Superinterfaces:
SqlStatement
All Known Implementing Classes:
SqlSelectByPkStatement, SqlSelectStatement

public interface SelectStatement
extends SqlStatement

This class

Version:
$Id: SelectStatement.java,v 1.1 2007-08-24 22:17:39 ewestfal Exp $
Author:
Armin Waibel

Method Summary
 int getColumnIndex(FieldDescriptor fld)
          Returns the column index of the specified FieldDescriptor in the ResultSet after performing the query.
 Query getQueryInstance()
          Returns the Query instance this statement based on.
 
Methods inherited from interface org.apache.ojb.broker.accesslayer.sql.SqlStatement
getStatement
 

Method Detail

getQueryInstance

Query getQueryInstance()
Returns the Query instance this statement based on.

Returns:
The Query instance or null if no query is used to generate the select string.

getColumnIndex

int getColumnIndex(FieldDescriptor fld)
Returns the column index of the specified FieldDescriptor in the ResultSet after performing the query.

Parameters:
fld - The FieldDescriptor.
Returns:
The column index or JdbcType.MIN_INT if column index is not supported.


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.