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(Stringurl,Propertiesprops,ClassLoaderclassLoader)
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(Stringurl,Propertiesprops)
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.DocumentProvidercreateDocumentProvider(Propertiesp,ClassLoaderclassLoader)
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.DocumentProvidercreateDocumentProvider(Propertiesp)
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.DocumentProvidercreateDocumentProvider(StringclName,Propertiesp,ClassLoaderclassLoader)
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.DocumentProvidercreateDocumentProvider(StringclName,Propertiesp)
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.StatementcreateStatement()
throwsSQLException
SQLException
publicNot supported.StatementcreateStatement(int resultSetType, int resultSetConcurrency)
throwsSQLException
SQLException
Related Topics
publicNot supported.StatementcreateStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
throwsSQLException
SQLException
Related Topics
public boolean getAutoCommit()We're readonly anyways.
publicNot supported.StringgetCatalog()
throwsSQLException
SQLException
protectedGet the document provider used.DocumentProvidergetDocumentProvider()
throwsDocumentException
DocumentException
public int getHoldability()
throwsSQLException
SQLException
publicNot supported.DatabaseMetaDatagetMetaData()
throwsSQLException
SQLException
public int getTransactionIsolation()Get the transaction isolation level used by the document provider.
throwsSQLException
SQLException
Related Topics
DocumentProvider.getTransactionIsolation()
publicNot supported.MapgetTypeMap()
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.StringnativeSQL(Stringsql)
throwsSQLException
SQLException
publicPrepare a Callable statement for use.CallableStatementprepareCall(Stringsql)
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
publicCallableStatementprepareCall(Stringsql, int resultSetType, int resultSetConcurrency)
throwsSQLException
SQLException
Related Topics
Connection.prepareCall(String)
publicCallableStatementprepareCall(Stringsql, int resultSetType, int resultSetConcurrency, int holdability)
throwsSQLException
SQLException
Related Topics
Connection.prepareCall(String)
publicNot supported.PreparedStatementprepareStatement(Stringsql)
throwsSQLException
SQLException
publicNot supported.PreparedStatementprepareStatement(Stringsql, int resultSetType, int resultSetConcurrency)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatementprepareStatement(Stringsql, int autoGeneratedKeys)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatementprepareStatement(Stringsql, int type, int concurrency, int holdability)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatementprepareStatement(Stringsql, int[] columnIndexes)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
publicNot supported.PreparedStatementprepareStatement(Stringsql,String[] columnNames)
throwsSQLException
SQLException
Related Topics
Connection.prepareStatement(String)
public void releaseSavepoint(Savepointsavepoint)
throwsSQLException
SQLException
public void rollback()This will reset the DocumentProvider.
throwsSQLException
SQLException
Related Topics
public void rollback(Savepointsavepoint)
throwsSQLException
SQLException
public void setAutoCommit(boolean autoCommit)Ignored.
public void setCatalog(Not supported.Stringcatalog)
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.
publicSavepointsetSavepoint()
throwsSQLException
SQLException
publicSavepointsetSavepoint(Stringname)
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.Mapmap)
throwsSQLException
SQLException