|
WebObjects 5.4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webobjects.jdbcadaptor.JDBCPlugIn
com.webobjects.jdbcadaptor.OraclePlugIn
public class OraclePlugIn
| Nested Class Summary | |
|---|---|
static class |
OraclePlugIn.OracleExpression
|
static class |
OraclePlugIn.OracleSynchronizationFactory
|
| Nested classes/interfaces inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
|---|
JDBCPlugIn.LobEntry |
| Field Summary |
|---|
| Fields inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
|---|
DefaultPlugInClassName, DefaultPlugInSuffix |
| Constructor Summary | |
|---|---|
OraclePlugIn(JDBCAdaptor adaptor)
|
|
| Method Summary | |
|---|---|
void |
assignTypeForAttribute(EOAttribute attribute)
The adaptor invokes this method to allow the JDBCPlugIn to customize the newly created attribute. |
Properties |
connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
Returns a Properties object that should be used for setting up a connection environment. |
EOSchemaSynchronizationFactory |
createSchemaSynchronizationFactory()
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. |
String |
name()
Returns the plugin's name. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OraclePlugIn(JDBCAdaptor adaptor)
| Method Detail |
|---|
public String name()
JDBCPlugIn
name in class JDBCPlugInpublic Class defaultExpressionClass()
JDBCPlugIn
defaultExpressionClass in class JDBCPlugInJDBCExpression,
JDBCAdaptor.defaultExpressionClass()public EOSchemaSynchronizationFactory createSchemaSynchronizationFactory()
JDBCPlugInadaptor(). The default EOSynchronizationFactory supports
only basic SQL table generation. Subclasses need to override this method
to support schema synchronization.
createSchemaSynchronizationFactory in class JDBCPlugInJDBCPlugIn.synchronizationFactory()public String defaultDriverName()
JDBCPlugIn
defaultDriverName in class JDBCPlugInpublic String databaseProductName()
JDBCPlugIn
databaseProductName in class JDBCPlugInpublic NSDictionary jdbcInfo()
JDBCPlugIn
jdbcInfo in class JDBCPlugInpublic Properties connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
JDBCPlugIn
connectionPropertiesForConnectionDictionary in class JDBCPlugInJDBCAdaptor.username(),
JDBCAdaptor.password()
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.
jdbcTypeForUnknownExternalType in class JDBCPlugInpublic void assignTypeForAttribute(EOAttribute attribute)
JDBCPlugIn
assignTypeForAttribute in class JDBCPlugInattribute - an EOAttributeEOAdaptor.assignExternalTypeForAttribute(com.webobjects.eoaccess.EOAttribute),
EOAdaptorChannel.describeResults()
public Object fetchBLOB(ResultSet rs,
int column,
EOAttribute attribute,
boolean materialize)
throws SQLException
JDBCPlugInnull.
fetchBLOB in class 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)
SQLExceptionJDBCPlugIn.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 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)
SQLExceptionJDBCPlugIn.updateLOBs(com.webobjects.jdbcadaptor.JDBCChannel, com.webobjects.jdbcadaptor.JDBCExpression, com.webobjects.foundation.NSDictionary, com.webobjects.eoaccess.EOEntity)
public void updateLOBs(JDBCChannel channel,
JDBCExpression expression,
NSDictionary row,
EOEntity entity)
JDBCPlugIn
updateLOBs in class JDBCPlugInchannel - an open JDBCChannelexpression - 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 JDBCPlugInpublic String wildcardPatternForTables()
JDBCPlugIngetTables method call. This is used for reverse
engineering. The default implementation returns "%".
wildcardPatternForTables in class JDBCPlugInpublic String wildcardPatternForSchema()
JDBCPlugIngetTables method call. This is used for reverse
engineering. The default implementation returns null.
wildcardPatternForSchema in class JDBCPlugInpublic 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 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 storedProcedureCatalogPattern()
JDBCPlugIngetProcedures. The default implementation returns
null.
storedProcedureCatalogPattern in class JDBCPlugInJDBCPlugIn.storedProcedureSchemaPattern()public String storedProcedureSchemaPattern()
JDBCPlugIngetProcedures. The default implementation returns
null.
storedProcedureSchemaPattern in class JDBCPlugInJDBCPlugIn.storedProcedureCatalogPattern()public String sqlStatementForGettingTableNames()
JDBCPlugIngetTables.
Subclasses might override this method.
sqlStatementForGettingTableNames in class JDBCPlugIn
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 JDBCPlugIncount - the batch sizeentity - the entity requesting primary keyschannel - an open JDBCChannelJDBCPlugIn.primaryKeyTableName(),
EOEntity.primaryKeyAttributes()
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||