|
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.OpenBasePlugIn
public class OpenBasePlugIn
Nested Class Summary | |
---|---|
static class |
OpenBasePlugIn.OpenBaseExpression
|
static class |
OpenBasePlugIn.OpenBaseSynchronizationFactory
|
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 | |
---|---|
OpenBasePlugIn(JDBCAdaptor adaptor)
|
Method Summary | |
---|---|
String |
connectionURL()
Returns the JDBC URL to use for connecting to the database. |
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. |
boolean |
isPseudoColumnName(String columnName)
Determines if the column is a "pseudo" column. |
NSDictionary |
jdbcInfo()
Returns database-specific information about the JDBC data source. |
String |
name()
Returns the plugin's name. |
NSArray |
newPrimaryKeys(int count,
EOEntity entity,
JDBCChannel adaptorChannel)
Generates a batch of new primary keys for entity . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenBasePlugIn(JDBCAdaptor adaptor)
Method Detail |
---|
public NSArray newPrimaryKeys(int count, EOEntity entity, JDBCChannel adaptorChannel)
JDBCPlugIn
entity
. 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 JDBCPlugIn
count
- the batch sizeentity
- the entity requesting primary keysadaptorChannel
- an open JDBCChannelJDBCPlugIn.primaryKeyTableName()
,
EOEntity.primaryKeyAttributes()
public String name()
JDBCPlugIn
name
in class JDBCPlugIn
public String connectionURL()
JDBCPlugIn
connectionURL
in class JDBCPlugIn
JDBCAdaptor.connectionDictionaryURL()
public String defaultDriverName()
JDBCPlugIn
defaultDriverName
in class JDBCPlugIn
public String databaseProductName()
JDBCPlugIn
databaseProductName
in class JDBCPlugIn
public Class defaultExpressionClass()
JDBCPlugIn
defaultExpressionClass
in class JDBCPlugIn
JDBCExpression
,
JDBCAdaptor.defaultExpressionClass()
public EOSchemaSynchronizationFactory createSchemaSynchronizationFactory()
JDBCPlugIn
adaptor()
. The default EOSynchronizationFactory supports
only basic SQL table generation. Subclasses need to override this method
to support schema synchronization.
createSchemaSynchronizationFactory
in class JDBCPlugIn
JDBCPlugIn.synchronizationFactory()
public boolean isPseudoColumnName(String columnName)
JDBCPlugIn
CREATE TABLE
statement, but was
created automatically by the database. These columns usually should not
be considered for reverse engineering.
isPseudoColumnName
in class JDBCPlugIn
true
if the column should not be reverse
engineered; false
otherwisepublic NSDictionary jdbcInfo()
JDBCPlugIn
jdbcInfo
in class JDBCPlugIn
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |