|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SixdmlPreparedStatement.java This class is used to store and execute pre-compiled SiXDML statements over the database. It is assumed that implementers of this interface will have the query specified in their constructor. Created: Sun Feb 24 01:31:41 2002
SixdmlStatementService.prepareStatement(String)| Method Summary | |
Document |
execute()
Executes a SiXDML statement against the database and returns the results as an XML DOM object. |
void |
execute(DefaultHandler handler)
Executes a SiXDML statement against the database and feeds the results to a SAX handler. |
void |
execute(OutputStream outputStream)
Executes a SiXDML statement against the database and writes the results to the specified OutputStream. |
void |
execute(Writer writer)
Executes a SiXDML statement against the database and writes the results using the specified writer. |
void |
setObject(int paramIndex,
Object value)
Sets the value of the designated parameter with the given object. |
| Method Detail |
public void setObject(int paramIndex,
Object value)
throws XMLDBException,
SixdmlException
paramIndex - the index of the parameter whose value is being set. The value
for the first parameter is 1, the second 2, etcvalue - the object containing the input parameter valueIndexOutOfBoundsException - if the index range is invalidSixdmlException - if the statement is invalid.XMLDBException - if a database error occurs
public Document execute()
throws XMLDBException,
SixdmlException
SixdmlException - if the statement is invalid.XMLDBException - if a database error occurs
public void execute(DefaultHandler handler)
throws XMLDBException,
SixdmlException
handler - a SAX handler which operates on the results of the statement.SixdmlException - if the statement is invalid.XMLDBException - if a database error occurs
public void execute(OutputStream outputStream)
throws XMLDBException,
SixdmlException
outputStream - the stream to write the results toSixdmlException - if the statement is invalid.XMLDBException - if a database error occurs
public void execute(Writer writer)
throws XMLDBException,
SixdmlException
writer - the writer to send results toSixdmlException - if the statement is invalid.XMLDBException - if a database error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||