|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.document.jdbc.CallableStatement | +--com.beasys.commerce.axiom.document.jdbc.SearchStatement
A callable statement which handles turning Search parameters into DocumentIterators.
This expects InParam1 to be either a Search or a string query which can be converted to a Search. OutParam1 will be the DocumentIterator of the type the subclasses searches for.
This is abstract -- subclasses must implement the
createIterator(com.beasys.commerce.axiom.document.spi.DocumentProvider, com.beasys.commerce.foundation.expression.Search)
method.
Field Summary | |
protected DocumentIterator |
iterator
OutParam1: the DocumentIterator. |
protected Search |
searchParameters
InParam1: the search parameters. |
Fields inherited from class com.beasys.commerce.axiom.document.jdbc.CallableStatement |
connection |
Constructor Summary | |
SearchStatement(Connection con)
Constructor. |
Method Summary | |
void |
clearParameters()
Clear the parameters. |
void |
close()
Close the statement and any related resources. |
protected void |
closeIterator()
Close the open document iterator. |
protected abstract DocumentIterator |
createIterator(DocumentProvider p,
Search params)
This method is invoked to generate the DocumentIterator for this object. |
boolean |
execute()
Execute the statement. |
java.lang.Object |
getObject(int index)
Get the output parameter. |
void |
setObject(int index,
java.lang.Object obj)
Set the input parameter. |
void |
setString(int index,
java.lang.String str)
Set the input parameter string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected Search searchParameters
protected DocumentIterator iterator
Constructor Detail |
public SearchStatement(Connection con)
con
- the connection that spawned us.Method Detail |
protected void closeIterator()
public void close()
closeIterator()
public void clearParameters()
closeIterator()
public boolean execute() throws java.sql.SQLException
protected abstract DocumentIterator createIterator(DocumentProvider p, Search params) throws DocumentException
p
- the DocumentProvider to use.params
- the Search parameters passed into the statement.public void setObject(int index, java.lang.Object obj) throws java.sql.SQLException
public void setString(int index, java.lang.String str) throws java.sql.SQLException
public java.lang.Object getObject(int index) throws java.sql.SQLException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |