DEPRECATED
Object
Connection
A connection to a DMS via an internally used DocumentProvider.
All the real functionality of this class is in the prepareCall() method.
Related Topics
Driver
Connection.prepareCall(String)
Object
Connection
Connection
Field Summary |
public static final |
|
protected |
|
Constructor Summary |
|
|
|
Method Summary |
public void |
|
public void |
|
public void |
|
public |
|
public |
|
public static |
|
public static |
|
public |
|
public |
|
public |
|
public boolean |
|
public |
|
protected |
|
public int | |
public |
|
public int |
|
public |
|
public |
|
public boolean |
|
public boolean |
|
public | |
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public void |
|
public void |
|
public void | |
public void |
|
public void |
|
protected void |
|
public void |
|
public void |
|
public | |
public |
|
public void |
|
public void |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String
DOCUMENT_PROVIDER_PROP
protected com.bea.p13n.content.document.spi.DocumentProvider
provider
Constructor Detail |
protected Connection(DocumentProvider
provider)
Related Topics
Connection.setDocumentProvider(DocumentProvider)
public Connection(String
url,Properties
props,ClassLoader
classLoader)
This will pull the class name of the DocumentProvider to use from the properties at DOCUMENT_PROVIDER_PROP ("documentProvider"). It will instantiate the provider and initialize it.
Related Topics
Connection.createDocumentProvider(Properties, ClassLoader)
public Connection(String
url,Properties
props)
This will pull the class name of the DocumentProvider to use from the properties at DOCUMENT_PROVIDER_PROP ("documentProvider"). It will instantiate the provider and initialize it.
Related Topics
Connection.createDocumentProvider(Properties, ClassLoader)
Method Detail |
public void clearWarnings()Intentional empty implementation.
public void close()This will close the DocumentProvider
throwsSQLException
SQLException
Related Topics
public void commit()Ignored.
publicCreate and initialize a DocumentProvider from the given properties.DocumentProvider
createDocumentProvider(Properties
p,ClassLoader
classLoader)
throwsDocumentException
This is called by the constructor. This method will pull the document provider class name from the properties, load the class, create an instance, and initialize it. Subclasses can override to modify where the DocumentProvider comes from.
DocumentException
Related Topics
Connection.createDocumentProvider(String, Properties)
publicCreate and initialize a DocumentProvider from the given properties.DocumentProvider
createDocumentProvider(Properties
p)
throwsDocumentException
This is called by the constructor. This method will pull the document provider class name from the properties, load the class, create an instance, and initialize it. Subclasses can override to modify where the DocumentProvider comes from.
DocumentException
Related Topics
Connection.createDocumentProvider(String, Properties)
public staticCreate and initialize a DocumentProvider.DocumentProvider
createDocumentProvider(String
clName,Properties
p,ClassLoader
classLoader)
throwsDocumentException
This will load the specified class, create an instance, cast it to DocumentProvider, and invoke init() on that. It will also wrap any exceptions into a DocumentException.
DocumentException
public staticCreate and initialize a DocumentProvider.DocumentProvider
createDocumentProvider(String
clName,Properties
p)
throwsDocumentException
This will load the specified class, create an instance, cast it to DocumentProvider, and invoke init() on that. It will also wrap any exceptions into a DocumentException.
DocumentException
publicNot supported.Statement
createStatement()
throwsSQLException
SQLException
publicNot supported.Statement
createStatement(int resultSetType, int resultSetConcurrency)
throwsSQLException
SQLException
Related Topics
publicNot supported.Statement
createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
throwsSQLException
SQLException
Related Topics
public boolean getAutoCommit()We're readonly anyways.
publicNot supported.String
getCatalog()
throwsSQLException
SQLException
protectedGet the document provider used.DocumentProvider
getDocumentProvider()
throwsDocumentException
DocumentException
public int getHoldability()
throwsSQLException
SQLException
publicNot supported.DatabaseMetaData
getMetaData()
throwsSQLException
SQLException
public int getTransactionIsolation()Get the transaction isolation level used by the document provider.
throwsSQLException
SQLException
Related Topics
DocumentProvider.getTransactionIsolation()
publicNot supported.Map
getTypeMap()
throwsSQLException
SQLException
public SQLWarning
getWarnings()
Intentional empty implementation.
public boolean isClosed()Tell if this connection/document provider has been closed.
public boolean isReadOnly()DocumentProvider's are read only.
publicNot supported.String
nativeSQL(String
sql)
throwsSQLException
SQLException
publicPrepare a Callable statement for use.CallableStatement
prepareCall(String
sql)
throwsSQLException
The prepareCall method understands the following query strings. The required input params and output params are also documented:
findDocuments
: Param1 must be either a
Search or a String (which is the query string). Output 1 will
be a DocumentIterator of the DocumentDefs which match.
findDocumentIds
: Param1 must be either a
Search or a String (which is the query string). Output 1 will
be a DocumentIterator of the String document ids which match.
findDocumentMetadata
: Param1 must be either a
Search or a String (which is the query string). Output1 will
be a DocumentIterator of the DocumentMetadataDefs which match.
getDocumentMetadata
: Param1 must be the String
document id. Ouptut1 will be the DocumentMetadataDef of the document
with the id, or null if unknown id.
getDocumentModifiedDate
: Param1 must be the String
document id. Output1 will be the Timestamp last modified time of the
document, or null if unknown.
getDocument
: Param1 must be the String
document id. Ouptut1 will be the DocumentDef of the document
with the id, or null if unknown id.
getSchemaNames
: Output1 will be a DocumentIterator of
the schema names (Strings).
getSchema
: Param1 must be the String name of the
schema. Output1 will be the DocumentSchemaDef or null.
getSchemas
: Output1 will be the Map of schema name to
DocumentSchemaDef.
SQLException
publicCallableStatement
prepareCall(String
sql, int resultSetType, int resultSetConcurrency)
throwsSQLException
SQLException
Related Topics
Connection.prepareCall(String)
publicCallableStatement
prepareCall(String
sql, int resultSetType, int resultSetConcurrency, int holdability)
throwsSQLException
SQLException
Related Topics
Connection.prepareCall(String)
publicNot supported.PreparedStatement
prepareStatement(String
sql)
throwsSQLException
SQLException
publicNot supported.PreparedStatement
prepareStatement(String
sql, int resultSetType, int resultSetConcurrency)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatement
prepareStatement(String
sql, int autoGeneratedKeys)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatement
prepareStatement(String
sql, int type, int concurrency, int holdability)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatement
prepareStatement(String
sql, int[] columnIndexes)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatement
prepareStatement(String
sql,String
[] columnNames)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
public void releaseSavepoint(Savepoint
savepoint)
throwsSQLException
SQLException
public void rollback()This will reset the DocumentProvider.
throwsSQLException
SQLException
Related Topics
public void rollback(Savepoint
savepoint)
throwsSQLException
SQLException
public void setAutoCommit(boolean autoCommit)Ignored.
public void setCatalog(Not supported.String
catalog)
throwsSQLException
SQLException
protected void setDocumentProvider(DocumentProvider
provider)
Set the document provider to use.
public void setHoldability(int holdability)
throwsSQLException
SQLException
public void setReadOnly(boolean readOnly)Ignored.
publicSavepoint
setSavepoint()
throwsSQLException
SQLException
publicSavepoint
setSavepoint(String
name)
throwsSQLException
SQLException
public void setTransactionIsolation(int level)Set the transaction isolation level on the document provider.
throwsSQLException
SQLException
Related Topics
DocumentProvider.setTransactionIsolation(int)
public void setTypeMap(Not supported.Map
map)
throwsSQLException
SQLException