|
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.FrontbasePlugIn
public class FrontbasePlugIn
This is the wo5 java runtime plugin for FrontBase.
Nested Class Summary | |
---|---|
static class |
FrontbasePlugIn.FrontbaseExpression
|
static class |
FrontbasePlugIn.FrontbaseSynchronizationFactory
|
Nested classes/interfaces inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
---|
JDBCPlugIn.LobEntry |
Field Summary | |
---|---|
protected static int |
FB_Bit
|
protected static int |
FB_BLOB
|
protected static int |
FB_Boolean
|
protected static int |
FB_Character
|
protected static int |
FB_CLOB
|
protected static int |
FB_Date
|
protected static int |
FB_DayTime
|
protected static int |
FB_Decimal
|
protected static int |
FB_Double
|
protected static int |
FB_Float
|
protected static int |
FB_Integer
|
protected static int |
FB_LongInteger
|
protected static int |
FB_Numeric
|
protected static int |
FB_Real
|
protected static int |
FB_SmallInteger
|
protected static int |
FB_Time
|
protected static int |
FB_Timestamp
|
protected static int |
FB_TimestampTZ
|
protected static int |
FB_TimeTZ
|
protected static int |
FB_TinyInteger
|
protected static int |
FB_VBit
|
protected static int |
FB_VCharacter
|
protected static int |
FB_YearMonth
|
Fields inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
---|
DefaultPlugInClassName, DefaultPlugInSuffix |
Constructor Summary | |
---|---|
FrontbasePlugIn(JDBCAdaptor jdbcadaptor)
|
Method Summary | |
---|---|
boolean |
canDescribeStoredProcedure(String s)
Returns true if the plugin has a private way of describing
the stored procedure named spName when reverse
engineering. |
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 resultset,
int i,
EOAttribute attribute,
boolean flag)
Fetch a BLOB. |
Object |
fetchCLOB(ResultSet resultset,
int i,
EOAttribute attribute,
boolean flag)
Fetch a CLOB. |
static String |
getPlugInVersion()
|
protected static int |
internalTypeForExternal(String externalType)
|
NSDictionary |
jdbcInfo()
Returns database-specific information about the JDBC data source. |
String |
name()
Returns the plugin's name. |
NSArray |
newPrimaryKeys(int rows,
EOEntity eoentity,
JDBCChannel jdbcchannel)
Generates a batch of new primary keys for entity . |
protected static String |
quoteTableName(String s)
|
String |
schemaNameForEntity(EOEntity eoentity)
Return the schema associated with entity . |
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 dictionary,
EOEntity entity)
Update LOBs (BLOBs and CLOBs). |
String |
wildcardPatternForSchema()
Return the String to use for describing the schema 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 |
Field Detail |
---|
protected static final int FB_Boolean
protected static final int FB_Integer
protected static final int FB_SmallInteger
protected static final int FB_Float
protected static final int FB_Real
protected static final int FB_Double
protected static final int FB_Numeric
protected static final int FB_Decimal
protected static final int FB_Character
protected static final int FB_VCharacter
protected static final int FB_Bit
protected static final int FB_VBit
protected static final int FB_Date
protected static final int FB_Time
protected static final int FB_TimeTZ
protected static final int FB_Timestamp
protected static final int FB_TimestampTZ
protected static final int FB_YearMonth
protected static final int FB_DayTime
protected static final int FB_CLOB
protected static final int FB_BLOB
protected static final int FB_TinyInteger
protected static final int FB_LongInteger
Constructor Detail |
---|
public FrontbasePlugIn(JDBCAdaptor jdbcadaptor)
Method Detail |
---|
public String name()
JDBCPlugIn
name
in class JDBCPlugIn
public static String getPlugInVersion()
public boolean canDescribeStoredProcedure(String s)
JDBCPlugIn
true
if the plugin has a private way of describing
the stored procedure named spName
when reverse
engineering. The default implementation returns false
indicating that the adaptor should use the normal JDBC API to reverse
engineer the the stored procedure.
canDescribeStoredProcedure
in class JDBCPlugIn
s
- the name of a stored procedurepublic 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 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 String wildcardPatternForSchema()
JDBCPlugIn
getTables
method call. This is used for reverse
engineering. The default implementation returns null.
wildcardPatternForSchema
in class JDBCPlugIn
public String schemaNameForEntity(EOEntity eoentity)
JDBCPlugIn
entity
. 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 JDBCPlugIn
EOEntity.externalName()
public String storedProcedureSchemaPattern()
JDBCPlugIn
getProcedures
. The default implementation returns
null
.
storedProcedureSchemaPattern
in class JDBCPlugIn
JDBCPlugIn.storedProcedureCatalogPattern()
public Properties connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
JDBCPlugIn
connectionPropertiesForConnectionDictionary
in class JDBCPlugIn
JDBCAdaptor.username()
,
JDBCAdaptor.password()
public NSDictionary jdbcInfo()
JDBCPlugIn
jdbcInfo
in class JDBCPlugIn
public void updateLOBs(JDBCChannel channel, JDBCExpression expression, NSDictionary dictionary, EOEntity entity)
JDBCPlugIn
updateLOBs
in class JDBCPlugIn
channel
- an open JDBCChannelexpression
- the JDBCExpression used to perform the insert or updatedictionary
- 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 Object fetchBLOB(ResultSet resultset, int i, EOAttribute attribute, boolean flag) throws SQLException
JDBCPlugIn
null
.
fetchBLOB
in class JDBCPlugIn
resultset
- the current ResultSeti
- the column index corresponding to the BLOBattribute
- the attribute mapped to the BLOBflag
- a boolean that determines if the BLOB should be fully
"materialized" (if true
) or left as a
reference (if false
)
SQLException
JDBCPlugIn.updateLOBs(com.webobjects.jdbcadaptor.JDBCChannel, com.webobjects.jdbcadaptor.JDBCExpression, com.webobjects.foundation.NSDictionary, com.webobjects.eoaccess.EOEntity)
public Object fetchCLOB(ResultSet resultset, int i, EOAttribute attribute, boolean flag) throws SQLException
JDBCPlugIn
null
.
fetchCLOB
in class JDBCPlugIn
resultset
- the current ResultSeti
- the column index corresponding to the CLOBattribute
- the attribute mapped to the CLOBflag
- a boolean that determines if the CLOB should be fully
"materialized" (if true
) or left as a
reference (if false
)
SQLException
JDBCPlugIn.updateLOBs(com.webobjects.jdbcadaptor.JDBCChannel, com.webobjects.jdbcadaptor.JDBCExpression, com.webobjects.foundation.NSDictionary, com.webobjects.eoaccess.EOEntity)
public NSArray newPrimaryKeys(int rows, EOEntity eoentity, JDBCChannel jdbcchannel)
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
rows
- the batch sizeeoentity
- the entity requesting primary keysjdbcchannel
- an open JDBCChannelJDBCPlugIn.primaryKeyTableName()
,
EOEntity.primaryKeyAttributes()
protected static String quoteTableName(String s)
protected static int internalTypeForExternal(String externalType)
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |