Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Interface FindActionQueryBuilder

All Known Implementing Classes:
NavbarFindActionQueryBuilder

public interface FindActionQueryBuilder

A interface which lets customize building WHERE clause. The FindAction class uses this interface to build and execute a query. This interface lets users customize the way the Query is built and also let's him to modify the query and re-execute it. The FindAction classes uses this interface in the following way. setFindItemModel(model);// column name,values used to construct query executeQuery(buildQuery()); setProperty(FindActionQueryBuilder.NEW_ROW_COUNT, ...); while(canReExecuteQuery()) { executeQuery(modifyQuery()); setProperty(FindActionQueryBuilder.NEW_ROW_COUNT, ...); }

Version:
INTERNAL
See Also:
FindAction

Field Summary
static java.lang.String CASE_SENSITIVE_SEARCH
           
static java.lang.String ROW_COUNT
          property used to indicate the number of rows in the record set after executing query returned from buildQuery or modifyQuery methods
 
Method Summary
 java.lang.String buildQuery()
          Build the WHERE clause for the query
 boolean canReExecuteQuery()
          The query can be modified and re-executed.
 FindItemModel[] getFindItemModel()
          get the model used to construct WHERE clause
 java.lang.Object getProperty(java.lang.String name)
          get property value
 java.lang.String modifyQuery()
          modify the WHERE clause
 void setFindItemModel(FindItemModel[] model)
          specify the model used to construct WHERE clause
 void setProperty(java.lang.String name, java.lang.Object value)
          set arbitary property value
 

Field Detail

ROW_COUNT

public static final java.lang.String ROW_COUNT
property used to indicate the number of rows in the record set after executing query returned from buildQuery or modifyQuery methods

CASE_SENSITIVE_SEARCH

public static final java.lang.String CASE_SENSITIVE_SEARCH
Method Detail

setFindItemModel

public void setFindItemModel(FindItemModel[] model)
specify the model used to construct WHERE clause
Parameters:
model - to retrive column values and SQL type

getFindItemModel

public FindItemModel[] getFindItemModel()
get the model used to construct WHERE clause
Returns:
model use to construct query

canReExecuteQuery

public boolean canReExecuteQuery()
The query can be modified and re-executed. Return a true value if the query has to executed again
Returns:
true if query has to be reexecuted

buildQuery

public java.lang.String buildQuery()
Build the WHERE clause for the query
Returns:
WHERE clause for the query

modifyQuery

public java.lang.String modifyQuery()
modify the WHERE clause
Returns:
modified query

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
set arbitary property value
Parameters:
name - of the property
value - to be used to set the property

getProperty

public java.lang.Object getProperty(java.lang.String name)
get property value
Parameters:
name - of the property
value - to be used to set the property

Oracle Data-aware Controls Reference