Project Wonder 5.0

com.webobjects.jdbcadaptor
Class _FrontBasePlugIn

java.lang.Object
  extended by com.webobjects.jdbcadaptor.JDBCPlugIn
      extended by com.webobjects.jdbcadaptor._FrontBasePlugIn
Direct Known Subclasses:
FrontBasePlugIn

public class _FrontBasePlugIn
extends JDBCPlugIn

This is the wo5 java runtime plugin for FrontBase.

Author:
Cail Borrell

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
_adaptor, _expressionClass, _expressionFactory, _pkTableName, _subprotocolRegistry, _syncFactory, DefaultPlugInClassName, DefaultPlugInSuffix
 
Constructor Summary
_FrontBasePlugIn(JDBCAdaptor jdbcadaptor)
           
 
Method Summary
 boolean canDescribeStoredProcedure(String s)
           
 Properties connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
           
 EOSynchronizationFactory createSynchronizationFactory()
           
 String databaseProductName()
           
 String defaultDriverName()
           
 Class defaultExpressionClass()
           
 Object fetchBLOB(ResultSet resultset, int i, EOAttribute attribute, boolean flag)
           
 Object fetchCLOB(ResultSet resultset, int i, EOAttribute attribute, boolean flag)
           
static String getPlugInVersion()
           
protected static int internalTypeForExternal(String externalType)
           
 NSDictionary jdbcInfo()
           This is usually extracted from the the database using JDBC, but this is really inconvenient for users who are trying to generate SQL at some.
 String name()
           WebObjects 5.4's version of JDBCAdaptor will use this in order to assemble the name of the prototype to use when it loads models.
 NSArray newPrimaryKeys(int numberOfKeys, EOEntity eoentity, JDBCChannel jdbcchannel)
           
protected static String notNullConstraintName(EOAttribute attribute)
           
protected static String notNullConstraintName(String tableName, String columnName)
           
protected static String quoteTableName(String s)
           
 String schemaNameForEntity(EOEntity eoentity)
           
protected  boolean shouldUseBundledJdbcInfo()
           This method returns true if the connection URL for the database has a special flag on it which indicates to the system that the jdbcInfo which has been bundled into the plugin is acceptable to use in place of actually going to the database and getting it.
 String storedProcedureSchemaPattern()
           
 void updateLOBs(JDBCChannel channel, JDBCExpression expression, NSDictionary dictionary, EOEntity entity)
           
 String wildcardPatternForSchema()
           
 
Methods inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn
_attributeForPath, _couldIgnoreException, _relationshipForPath, _takeValueForKeyPath, adaptor, assignTypeForAttribute, connectionURL, createAttributeForRow, createExpressionFactory, createSchemaSynchronizationFactory, databaseInformation, expressionFactory, isDroppedConnectionException, isPseudoColumnName, jdbcTypeForUnknownExternalType, newPrimaryKeySelectString, plugInNameForURL, plugInValueForValue, primaryKeyLockString, primaryKeyTableCreateString, primaryKeyTableName, removePlugInNameForSubprotocol, schemaSynchronizationFactory, setPlugInNameForSubprotocol, sqlStatementForGettingProcedureNames, sqlStatementForGettingTableNames, sqlStatementForTableNamed, storedProcedureCatalogPattern, storedProcedureNamed, synchronizationFactory, tableTypes, wildcardPatternForAttributes, wildcardPatternForTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FB_Boolean

protected static final int FB_Boolean
See Also:
Constant Field Values

FB_Integer

protected static final int FB_Integer
See Also:
Constant Field Values

FB_SmallInteger

protected static final int FB_SmallInteger
See Also:
Constant Field Values

FB_Float

protected static final int FB_Float
See Also:
Constant Field Values

FB_Real

protected static final int FB_Real
See Also:
Constant Field Values

FB_Double

protected static final int FB_Double
See Also:
Constant Field Values

FB_Numeric

protected static final int FB_Numeric
See Also:
Constant Field Values

FB_Decimal

protected static final int FB_Decimal
See Also:
Constant Field Values

FB_Character

protected static final int FB_Character
See Also:
Constant Field Values

FB_VCharacter

protected static final int FB_VCharacter
See Also:
Constant Field Values

FB_Bit

protected static final int FB_Bit
See Also:
Constant Field Values

FB_VBit

protected static final int FB_VBit
See Also:
Constant Field Values

FB_Date

protected static final int FB_Date
See Also:
Constant Field Values

FB_Time

protected static final int FB_Time
See Also:
Constant Field Values

FB_TimeTZ

protected static final int FB_TimeTZ
See Also:
Constant Field Values

FB_Timestamp

protected static final int FB_Timestamp
See Also:
Constant Field Values

FB_TimestampTZ

protected static final int FB_TimestampTZ
See Also:
Constant Field Values

FB_YearMonth

protected static final int FB_YearMonth
See Also:
Constant Field Values

FB_DayTime

protected static final int FB_DayTime
See Also:
Constant Field Values

FB_CLOB

protected static final int FB_CLOB
See Also:
Constant Field Values

FB_BLOB

protected static final int FB_BLOB
See Also:
Constant Field Values

FB_TinyInteger

protected static final int FB_TinyInteger
See Also:
Constant Field Values

FB_LongInteger

protected static final int FB_LongInteger
See Also:
Constant Field Values
Constructor Detail

_FrontBasePlugIn

public _FrontBasePlugIn(JDBCAdaptor jdbcadaptor)
Method Detail

getPlugInVersion

public static String getPlugInVersion()

canDescribeStoredProcedure

public boolean canDescribeStoredProcedure(String s)
Overrides:
canDescribeStoredProcedure in class JDBCPlugIn

createSynchronizationFactory

public EOSynchronizationFactory createSynchronizationFactory()
Overrides:
createSynchronizationFactory in class JDBCPlugIn

defaultDriverName

public String defaultDriverName()
Overrides:
defaultDriverName in class JDBCPlugIn

databaseProductName

public String databaseProductName()
Overrides:
databaseProductName in class JDBCPlugIn

name

public String name()

WebObjects 5.4's version of JDBCAdaptor will use this in order to assemble the name of the prototype to use when it loads models.

Overrides:
name in class JDBCPlugIn
Returns:
the name of the plugin.

shouldUseBundledJdbcInfo

protected boolean shouldUseBundledJdbcInfo()

This method returns true if the connection URL for the database has a special flag on it which indicates to the system that the jdbcInfo which has been bundled into the plugin is acceptable to use in place of actually going to the database and getting it.

Returns:
true jdbcInfo which has been bundled into the plugin is acceptable to use

defaultExpressionClass

public Class defaultExpressionClass()
Overrides:
defaultExpressionClass in class JDBCPlugIn

wildcardPatternForSchema

public String wildcardPatternForSchema()
Overrides:
wildcardPatternForSchema in class JDBCPlugIn

schemaNameForEntity

public String schemaNameForEntity(EOEntity eoentity)
Overrides:
schemaNameForEntity in class JDBCPlugIn

storedProcedureSchemaPattern

public String storedProcedureSchemaPattern()
Overrides:
storedProcedureSchemaPattern in class JDBCPlugIn

connectionPropertiesForConnectionDictionary

public Properties connectionPropertiesForConnectionDictionary(NSDictionary connectionDictionary)
Overrides:
connectionPropertiesForConnectionDictionary in class JDBCPlugIn

jdbcInfo

public NSDictionary jdbcInfo()

This is usually extracted from the the database using JDBC, but this is really inconvenient for users who are trying to generate SQL at some. A specific version of the data has been written into the property list of the framework and this can be used as a hard-coded equivalent.

Overrides:
jdbcInfo in class JDBCPlugIn

updateLOBs

public void updateLOBs(JDBCChannel channel,
                       JDBCExpression expression,
                       NSDictionary dictionary,
                       EOEntity entity)
Overrides:
updateLOBs in class JDBCPlugIn

fetchBLOB

public Object fetchBLOB(ResultSet resultset,
                        int i,
                        EOAttribute attribute,
                        boolean flag)
                 throws SQLException
Overrides:
fetchBLOB in class JDBCPlugIn
Throws:
SQLException

fetchCLOB

public Object fetchCLOB(ResultSet resultset,
                        int i,
                        EOAttribute attribute,
                        boolean flag)
                 throws SQLException
Overrides:
fetchCLOB in class JDBCPlugIn
Throws:
SQLException

newPrimaryKeys

public NSArray newPrimaryKeys(int numberOfKeys,
                              EOEntity eoentity,
                              JDBCChannel jdbcchannel)
Overrides:
newPrimaryKeys in class JDBCPlugIn

notNullConstraintName

protected static String notNullConstraintName(EOAttribute attribute)

notNullConstraintName

protected static String notNullConstraintName(String tableName,
                                              String columnName)

quoteTableName

protected static String quoteTableName(String s)

internalTypeForExternal

protected static int internalTypeForExternal(String externalType)

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.