|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.content.document.jdbc.CallableStatement
com.bea.p13n.content.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.bea.p13n.content.document.spi.DocumentProvider, com.bea.p13n.content.expression.Search)
method.
Field Summary | |
protected DocumentIterator |
iterator
Deprecated. OutParam1: the DocumentIterator. |
protected Search |
searchParameters
Deprecated. InParam1: the search parameters. |
Fields inherited from class com.bea.p13n.content.document.jdbc.CallableStatement |
connection |
Fields inherited from interface java.sql.Statement |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
Constructor Summary | |
SearchStatement(Connection con)
Deprecated. Constructor. |
Method Summary | |
void |
clearParameters()
Deprecated. Clear the parameters. |
void |
close()
Deprecated. Close the statement and any related resources. |
protected void |
closeIterator()
Deprecated. Close the open document iterator. |
protected abstract DocumentIterator |
createIterator(DocumentProvider p,
Search params)
Deprecated. This method is invoked to generate the DocumentIterator for this object. |
boolean |
execute()
Deprecated. Execute the statement. |
Object |
getObject(int index)
Deprecated. Get the output parameter. |
void |
setObject(int index,
Object obj)
Deprecated. Set the input parameter. |
void |
setString(int index,
String str)
Deprecated. 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 DocumentIterator iterator
protected Search searchParameters
Constructor Detail |
public SearchStatement(Connection con)
Method Detail |
public void clearParameters()
clearParameters
in interface PreparedStatement
clearParameters
in class CallableStatement
closeIterator()
public void close()
close
in interface Statement
close
in class CallableStatement
closeIterator()
protected void closeIterator()
protected abstract DocumentIterator createIterator(DocumentProvider p, Search params) throws DocumentException
p
- the DocumentProvider to use.params
- the Search parameters passed into the statement.
DocumentException
- thrown on an error.public boolean execute() throws SQLException
execute
in interface PreparedStatement
execute
in class CallableStatement
SQLException
- thrown on an error.public Object getObject(int index) throws SQLException
getObject
in interface CallableStatement
getObject
in class CallableStatement
index
- the output parameter index.
SQLException
- thrown on an error.public void setObject(int index, Object obj) throws SQLException
setObject
in interface PreparedStatement
setObject
in class CallableStatement
SQLException
- thrown on invalid arguments.public void setString(int index, String str) throws SQLException
setString
in interface PreparedStatement
setString
in class CallableStatement
SQLException
- thrown on invalid arguments.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |