| 
© 2001 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.GetDocumentStatement
A callable statement which handles getting a single document.
This expects InParam1 to be the string id of the document to retrieve. OutParam1 will be the DocumentDef (or null if id not found).
| Field Summary | |
protected  DocumentDef | 
document
The document gotten.  | 
protected  java.lang.String | 
documentId
The id of the document to get.  | 
| Fields inherited from class com.beasys.commerce.axiom.document.jdbc.CallableStatement | 
connection | 
| Constructor Summary | |
GetDocumentStatement(Connection con)
Constructor.  | 
|
| Method Summary | |
 void | 
clearParameters()
Clear the parameters.  | 
 void | 
close()
Close the statement.  | 
 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.  | 
 boolean | 
wasNull()
Tell if the metadata out param was null.  | 
| Methods inherited from class com.beasys.commerce.axiom.document.jdbc.CallableStatement | 
addBatch, addBatch, cancel, clearBatch, clearWarnings, execute, executeBatch, executeQuery, executeQuery, executeUpdate, executeUpdate, getArray, getBigDecimal, getBigDecimal, getBlob, getBoolean, getByte, getBytes, getClob, getConnection, getDate, getDate, getDocumentProvider, getDouble, getFetchDirection, getFetchSize, getFloat, getInt, getLong, getMaxFieldSize, getMaxRows, getMetaData, 
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected java.lang.String documentId
protected DocumentDef document
| Constructor Detail | 
public GetDocumentStatement(Connection con)
| Method Detail | 
public void close()
close in class CallableStatementcom.beasys.commerce.axiom.document.jdbc.CallableStatementjava.sql.SQLException - thrown on an error.public void clearParameters()
clearParameters in class CallableStatementcom.beasys.commerce.axiom.document.jdbc.CallableStatementjava.sql.SQLException - thrown on an error.
public boolean execute()
                throws java.sql.SQLException
execute in class CallableStatementjava.sql.SQLException - thrown on an error.
public void setObject(int index,
                      java.lang.Object obj)
               throws java.sql.SQLException
setObject in class CallableStatementjava.sql.SQLException - thrown on invalid args.
public void setString(int index,
                      java.lang.String str)
               throws java.sql.SQLException
setString in class CallableStatementjava.sql.SQLException - thrown on invlid args.setObject(int, java.lang.Object)
public java.lang.Object getObject(int index)
                           throws java.sql.SQLException
getObject in class CallableStatementjava.sql.SQLException - thrown on an error.public boolean wasNull()
wasNull in class CallableStatementcom.beasys.commerce.axiom.document.jdbc.CallableStatementjava.sql.SQLException - always thrown.
  | 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||