org.hdpagination.dataaccess.support
Interface Restriction

All Superinterfaces:
java.io.Serializable

public interface Restriction
extends java.io.Serializable

This interface represents a restriction applied to the query SELECT .. FROM .. statement to filter the search result. Positioned parameter (JDBC-style ? parameters) is used to bind the query.

Since:
1.3.1
Author:
Liangfeng Ren

Method Summary
 java.lang.String getClause()
          Generate the WHERE clause fragment (after prefixing "WHERE" or "AND" keywords) that will be appended to the SELECT statement.
 java.util.List getParameters()
          List of parameters (each parameter element is the type of Parameter).
 

Method Detail

getClause

java.lang.String getClause()
Generate the WHERE clause fragment (after prefixing "WHERE" or "AND" keywords) that will be appended to the SELECT statement. The key words "WHERE" and "AND" is be excluded from this clause fragment. The clause fragment can contain multiple '?' IN parameter placeholders

Returns:

getParameters

java.util.List getParameters()
List of parameters (each parameter element is the type of Parameter). The number of parameters should be the same as the number of IN parameter placeholders in the returned clause fragment.

Returns:


Copyright © 2008 HDPagination All Rights Reserved.