© 2002 BEA Systems, Inc.


com.bea.p13n.content.document.jdbc
Class GetSchemasStatement

java.lang.Object
  |
  +--com.bea.p13n.content.document.jdbc.CallableStatement
        |
        +--com.bea.p13n.content.document.jdbc.GetSchemasStatement

public class GetSchemasStatement
extends CallableStatement

A callable statement which handles getting all the schemas.

This expects no input parameters. OutParam1 will be the Map of string schema name to DocumentSchemaDef.


Field Summary
protected  java.util.Map schemaMap
          OutParam1: the map of DocumentSchemaDefs.
 
Fields inherited from class com.bea.p13n.content.document.jdbc.CallableStatement
connection
 
Constructor Summary
GetSchemasStatement(Connection con)
          Constructor.
 
Method Summary
 void clearParameters()
          Clear the parameters.
 void close()
           
 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.
 
Methods inherited from class com.bea.p13n.content.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, getMoreResults, getObject, getQueryTimeout, getRef, getResultSet, getResultSetConcurrency, getResultSetType, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getUpdateCount, getWarnings, registerOutParameter, registerOutParameter, registerOutParameter, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemaMap

protected java.util.Map schemaMap
OutParam1: the map of DocumentSchemaDefs.
Constructor Detail

GetSchemasStatement

public GetSchemasStatement(Connection con)
Constructor.
Method Detail

close

public void close()

Overrides:
close in class CallableStatement

clearParameters

public void clearParameters()
Clear the parameters.

Overrides:
clearParameters in class CallableStatement

execute

public boolean execute()
                throws java.sql.SQLException
Execute the statement.

Throws:
java.sql.SQLException - thrown on an error.
Overrides:
execute in class CallableStatement

setObject

public void setObject(int index,
                      java.lang.Object obj)
               throws java.sql.SQLException
Set the input parameter.

Throws:
java.sql.SQLException - always thrown.
Overrides:
setObject in class CallableStatement

getObject

public java.lang.Object getObject(int index)
                           throws java.sql.SQLException
Get the output parameter.

Throws:
java.sql.SQLException - thrown on invalid arg or not execute yet.
Overrides:
getObject in class CallableStatement

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved