|
WebObjects 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.webobjects.jdbcadaptor.JDBCPlugIn
|
+--com.webobjects.jdbcadaptor.OraclePlugIn
| Inner Class Summary | |
static class |
OraclePlugIn.OracleExpression
|
static class |
OraclePlugIn.OracleSynchronizationFactory
|
| Fields inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
DefaultPlugInClassName, DefaultPlugInSuffix |
| Constructor Summary | |
OraclePlugIn(JDBCAdaptor adaptor)
|
|
| Method Summary | |
Properties |
connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
Returns a Properties object that should be used for setting up a connection environment. |
EOSynchronizationFactory |
createSynchronizationFactory()
Creates a new EOSynchronizationFactory using the plugin's response to adaptor(). |
String |
databaseProductName()
Returns a string identifying the database. |
String |
defaultDriverName()
Returns a fully qualified name of the JDBC driver class that this plugin prefers to use. |
Class |
defaultExpressionClass()
Returns the Java Class to use as the expression class. |
Object |
fetchBLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize)
Fetch a BLOB. |
Object |
fetchCLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize)
Fetch a CLOB. |
NSDictionary |
jdbcInfo()
Returns database-specific information about the JDBC data source. |
int |
jdbcTypeForUnknownExternalType(String externalType,
int precision,
int scale)
Returns a JDBC type that might be more useful than Types.OTHER. |
NSArray |
newPrimaryKeys(int count,
EOEntity entity,
JDBCChannel channel)
Generates a batch of new primary keys for entity. |
String |
schemaNameForEntity(EOEntity entity)
Return the schema associated with entity. |
String |
sqlStatementForGettingProcedureNames()
The default implementation of this method returns null to indicate that the JDBC API should be used
for reverse engineering stored procedures. |
String |
sqlStatementForGettingTableNames()
Returns a SQL statement to be used for fetching a list of available tables during reverse engineering. |
String |
storedProcedureCatalogPattern()
The standard reverse engineering implementation for stored procedures calls this method to get the catalog pattern used with the JDBC method getProcedures. |
String |
storedProcedureSchemaPattern()
The standard reverse engineering implementation for stored procedures calls this method to get the schema pattern used with the JDBC method getProcedures. |
void |
updateLOBs(JDBCChannel channel,
JDBCExpression expression,
NSDictionary row,
EOEntity entity)
Update LOBs (BLOBs and CLOBs). |
String |
wildcardPatternForAttributes()
Return the String to use for describing the column pattern in the JDBC getColumns method call. |
String |
wildcardPatternForSchema()
Return the String to use for describing the schema pattern in the JDBC getTables method call. |
String |
wildcardPatternForTables()
Return the String to use for describing the table pattern in the JDBC getTables method call. |
| Methods inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
adaptor, canDescribeStoredProcedure, connectionURL, createAttributeForRow, createExpressionFactory, databaseInformation, expressionFactory, isPseudoColumnName, plugInNameForURL, primaryKeyTableName, removePlugInNameForSubprotocol, setPlugInNameForSubprotocol, sqlStatementForTableNamed, storedProcedureNamed, synchronizationFactory, tableTypes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OraclePlugIn(JDBCAdaptor adaptor)
| Method Detail |
public Properties connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
JDBCPlugInconnectionPropertiesForConnectionDictionary in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInJDBCAdaptor.username(),
JDBCAdaptor.password()public EOSynchronizationFactory createSynchronizationFactory()
JDBCPlugInadaptor(). The default
EOSynchronizationFactory supports only basic SQL table
generation. Subclasses need to override this method to support
schema synchronization.createSynchronizationFactory in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInJDBCPlugIn.synchronizationFactory()public String databaseProductName()
JDBCPlugIndatabaseProductName in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInpublic String defaultDriverName()
JDBCPlugIndefaultDriverName in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInpublic Class defaultExpressionClass()
JDBCPlugIndefaultExpressionClass in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInJDBCExpression,
JDBCAdaptor.defaultExpressionClass()
public Object fetchBLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize)
throws SQLException
JDBCPlugInnull.fetchBLOB in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInrs - the current ResultSetcolumn - the column index corresponding to the BLOBattribute - the attribute mapped to the BLOBmaterialize - a boolean that determines if the BLOB should be
fully "materialized" (if true) or left as a reference
(if false)JDBCPlugIn.updateLOBs(com.webobjects.jdbcadaptor.JDBCChannel, com.webobjects.jdbcadaptor.JDBCExpression, com.webobjects.foundation.NSDictionary, com.webobjects.eoaccess.EOEntity)
public Object fetchCLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize)
throws SQLException
JDBCPlugInnull.fetchCLOB in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInrs - the current ResultSetcolumn - the column index corresponding to the CLOBattribute - the attribute mapped to the CLOBmaterialize - a boolean that determines if the CLOB should be
fully "materialized" (if true) or left as a reference
(if false)JDBCPlugIn.updateLOBs(com.webobjects.jdbcadaptor.JDBCChannel, com.webobjects.jdbcadaptor.JDBCExpression, com.webobjects.foundation.NSDictionary, com.webobjects.eoaccess.EOEntity)public NSDictionary jdbcInfo()
JDBCPlugInjdbcInfo in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugIn
public int jdbcTypeForUnknownExternalType(String externalType,
int precision,
int scale)
JDBCPlugInTypes.OTHER. Some JDBC drivers return
Types.OTHER for external types that actually match
better to a well known type. This method provides the plugin a
chance to substitute a better JDBC type when reverse
engineering. The default implementation specifically
recognizes BLOB and CLOB external
types as mapping to Types.BLOB and
Types.CLOB. If no better type is known, the
method should return Types.OTHER.
- Overrides:
jdbcTypeForUnknownExternalType in class JDBCPlugIn
- Following copied from class:
com.webobjects.jdbcadaptor.JDBCPlugIn
- Returns:
- a java.sql.Types constant
public NSArray newPrimaryKeys(int count,
EOEntity entity,
JDBCChannel channel)
JDBCPlugInentity. It should return an NSArray of
NSDictionary where each dictionary corresponds to a unique
primary key value. The count of the NSArray should match
count. The JDBChannel channel is
already open and ready to use. If the primary key contains
multiple attributes or is not of kind number, then the default
implementation returns null. The default implementation uses a
table named according to primaryKeyTableName
containing the table name and the last primary key inserted in
this table. If the row for a table name is not present, then it
is automatically created. If the
primaryKeyTableName table does not exists then it
is automatically created. Subclasses should override the
default implementation if they want to provide a more efficient
mechanism for generating primary keys.newPrimaryKeys in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugIncount - the batch sizeentity - the entity requesting primary keyschannel - an open JDBCChannelJDBCPlugIn.primaryKeyTableName(),
EOEntity.primaryKeyAttributes()public String schemaNameForEntity(EOEntity entity)
JDBCPlugInentity. This is
used as an argument to the JDBC method getColumns
when reverse engineering. The default implementation gets the
schema from the externalName of the entity.schemaNameForEntity in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInEOEntity.externalName()public String sqlStatementForGettingProcedureNames()
JDBCPlugInnull to indicate that the JDBC API should be used
for reverse engineering stored procedures. Subclasses can
implement a private scheme for reverse engineering stored
procedures by returning a SQL statement to be used for fetching
stored procedures names. The SQL statement should return a
result set with one column named 'name'.sqlStatementForGettingProcedureNames in class JDBCPlugInpublic String sqlStatementForGettingTableNames()
JDBCPlugIngetTables. Subclasses might override
this method.sqlStatementForGettingTableNames in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInpublic String storedProcedureCatalogPattern()
JDBCPlugIngetProcedures. The default
implementation returns null.storedProcedureCatalogPattern in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInJDBCPlugIn.storedProcedureSchemaPattern()public String storedProcedureSchemaPattern()
JDBCPlugIngetProcedures. The default
implementation returns null.storedProcedureSchemaPattern in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInJDBCPlugIn.storedProcedureCatalogPattern()
public void updateLOBs(JDBCChannel channel,
JDBCExpression expression,
NSDictionary row,
EOEntity entity)
JDBCPlugInupdateLOBs in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInchannel - an open JDBCChannelexpr - the JDBCExpression used to perform the insert or updaterow - an NSDictionary of the row values used in the insert or updateentity - the entity of the row that was inserted or updatedJDBCPlugIn.fetchBLOB(java.sql.ResultSet, int, com.webobjects.eoaccess.EOAttribute, boolean),
JDBCPlugIn.fetchCLOB(java.sql.ResultSet, int, com.webobjects.eoaccess.EOAttribute, boolean)public String wildcardPatternForAttributes()
JDBCPlugIngetColumns method call. This is used
for reverse engineering. The default implementation returns
"%".wildcardPatternForAttributes in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInpublic String wildcardPatternForSchema()
JDBCPlugIngetTables method call. This is used
for reverse engineering. The default implementation returns
null.wildcardPatternForSchema in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugInpublic String wildcardPatternForTables()
JDBCPlugIngetTables method call. This is used
for reverse engineering. The default implementation returns
"%".wildcardPatternForTables in class JDBCPlugIncom.webobjects.jdbcadaptor.JDBCPlugIn
|
Last updated Thu Jan 10 18:10:21 PST 2002. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||