_FrontBasePlugIn Class Reference

Inherits com::webobjects::jdbcadaptor::JDBCPlugIn.

Inherited by FrontBasePlugIn.

Collaboration diagram for _FrontBasePlugIn:

Collaboration graph
[legend]

List of all members.

Classes

class  FrontbaseExpression
class  FrontbaseSynchronizationFactory

Public Member Functions

 _FrontBasePlugIn (JDBCAdaptor jdbcadaptor)
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) throws SQLException
Object fetchCLOB (ResultSet resultset, int i, EOAttribute attribute, boolean flag) throws SQLException
NSDictionary jdbcInfo ()
String name ()
NSArray newPrimaryKeys (int numberOfKeys, EOEntity eoentity, JDBCChannel jdbcchannel)
String schemaNameForEntity (EOEntity eoentity)
String storedProcedureSchemaPattern ()
void updateLOBs (JDBCChannel channel, JDBCExpression expression, NSDictionary dictionary, EOEntity entity)
String wildcardPatternForSchema ()

Static Public Member Functions

static String getPlugInVersion ()

Protected Member Functions

boolean shouldUseBundledJdbcInfo ()

Static Protected Member Functions

static int internalTypeForExternal (String externalType)
static String notNullConstraintName (String tableName, String columnName)
static String notNullConstraintName (EOAttribute attribute)
static String quoteTableName (String s)

Static Protected Attributes

static final int FB_Bit = 11
static final int FB_BLOB = 21
static final int FB_Boolean = 1
static final int FB_Character = 9
static final int FB_CLOB = 20
static final int FB_Date = 13
static final int FB_DayTime = 19
static final int FB_Decimal = 8
static final int FB_Double = 6
static final int FB_Float = 4
static final int FB_Integer = 2
static final int FB_LongInteger = 23
static final int FB_Numeric = 7
static final int FB_Real = 5
static final int FB_SmallInteger = 3
static final int FB_Time = 14
static final int FB_Timestamp = 16
static final int FB_TimestampTZ = 17
static final int FB_TimeTZ = 15
static final int FB_TinyInteger = 22
static final int FB_VBit = 12
static final int FB_VCharacter = 10
static final int FB_YearMonth = 18

Package Functions

String getLobHandle (Connection con, Object attribute, Object value) throws SQLException
EOQualifier primaryKeyQualifier (EOQualifier eoqualifier, EOEntity eoentity)

Static Package Attributes

static final String _frontbaseIncludeSynonyms = System.getProperty("jdbcadaptor.frontbase.includeSynonyms", null)
static final String _frontbaseSqlStatementForGettingProcedureNames = System.getProperty("jdbcadaptor.frontbase.sqlStatementForGettingProcedureNames", null)
static final String _frontbaseSqlStatementForGettingTableNames = System.getProperty("jdbcadaptor.frontbase.sqlStatementForGettingTableNames", null)
static final String _frontbaseStoredProcedureCatalogPattern = System.getProperty("jdbcadaptor.frontbase.storedProcedureCatalogPattern", null)
static final String _frontbaseStoredProcedureSchemaPattern = System.getProperty("jdbcadaptor.frontbase.storedProcedureSchemaPattern", null)
static final String _frontbaseWildcardPatternForAttributes = System.getProperty("jdbcadaptor.frontbase.wildcardPatternForAttributes", null)
static final String _frontbaseWildcardPatternForSchema = System.getProperty("jdbcadaptor.frontbase.wildcardPatternForSchema", null)
static final String _frontbaseWildcardPatternForTables = System.getProperty("jdbcadaptor.frontbase.wildcardPatternForTables", "%")
static final boolean USE_NAMED_CONSTRAINTS = true

Private Member Functions

boolean _newPrimaryKeys (int keyBatchSize, EOEntity eoentity, JDBCChannel jdbcchannel, NSMutableArray pkDicts)

Static Private Attributes

static final String QUERY_STRING_USE_BUNDLED_JDBC_INFO = "useBundledJdbcInfo"


Detailed Description

This is the wo5 java runtime plugin for FrontBase.

Author:
Cail Borrell

Constructor & Destructor Documentation

_FrontBasePlugIn ( JDBCAdaptor  jdbcadaptor  ) 


Member Function Documentation

boolean _newPrimaryKeys ( int  keyBatchSize,
EOEntity  eoentity,
JDBCChannel  jdbcchannel,
NSMutableArray  pkDicts 
) [private]

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 
) throws SQLException

Object fetchCLOB ( ResultSet  resultset,
int  i,
EOAttribute  attribute,
boolean  flag 
) throws SQLException

String getLobHandle ( Connection  con,
Object  attribute,
Object  value 
) throws SQLException [package]

static String getPlugInVersion (  )  [static]

static int internalTypeForExternal ( String  externalType  )  [static, protected]

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.

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.

Returns:
the name of the plugin.

NSArray newPrimaryKeys ( int  numberOfKeys,
EOEntity  eoentity,
JDBCChannel  jdbcchannel 
)

static String notNullConstraintName ( String  tableName,
String  columnName 
) [static, protected]

static String notNullConstraintName ( EOAttribute  attribute  )  [static, protected]

EOQualifier primaryKeyQualifier ( EOQualifier  eoqualifier,
EOEntity  eoentity 
) [package]

static String quoteTableName ( String  s  )  [static, protected]

String schemaNameForEntity ( EOEntity  eoentity  ) 

boolean shouldUseBundledJdbcInfo (  )  [protected]

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

String storedProcedureSchemaPattern (  ) 

void updateLOBs ( JDBCChannel  channel,
JDBCExpression  expression,
NSDictionary  dictionary,
EOEntity  entity 
)

String wildcardPatternForSchema (  ) 


Member Data Documentation

final String _frontbaseIncludeSynonyms = System.getProperty("jdbcadaptor.frontbase.includeSynonyms", null) [static, package]

final String _frontbaseSqlStatementForGettingProcedureNames = System.getProperty("jdbcadaptor.frontbase.sqlStatementForGettingProcedureNames", null) [static, package]

final String _frontbaseSqlStatementForGettingTableNames = System.getProperty("jdbcadaptor.frontbase.sqlStatementForGettingTableNames", null) [static, package]

final String _frontbaseStoredProcedureCatalogPattern = System.getProperty("jdbcadaptor.frontbase.storedProcedureCatalogPattern", null) [static, package]

final String _frontbaseStoredProcedureSchemaPattern = System.getProperty("jdbcadaptor.frontbase.storedProcedureSchemaPattern", null) [static, package]

final String _frontbaseWildcardPatternForAttributes = System.getProperty("jdbcadaptor.frontbase.wildcardPatternForAttributes", null) [static, package]

final String _frontbaseWildcardPatternForSchema = System.getProperty("jdbcadaptor.frontbase.wildcardPatternForSchema", null) [static, package]

final String _frontbaseWildcardPatternForTables = System.getProperty("jdbcadaptor.frontbase.wildcardPatternForTables", "%") [static, package]

final int FB_Bit = 11 [static, protected]

final int FB_BLOB = 21 [static, protected]

final int FB_Boolean = 1 [static, protected]

final int FB_Character = 9 [static, protected]

final int FB_CLOB = 20 [static, protected]

final int FB_Date = 13 [static, protected]

final int FB_DayTime = 19 [static, protected]

final int FB_Decimal = 8 [static, protected]

final int FB_Double = 6 [static, protected]

final int FB_Float = 4 [static, protected]

final int FB_Integer = 2 [static, protected]

final int FB_LongInteger = 23 [static, protected]

final int FB_Numeric = 7 [static, protected]

final int FB_Real = 5 [static, protected]

final int FB_SmallInteger = 3 [static, protected]

final int FB_Time = 14 [static, protected]

final int FB_Timestamp = 16 [static, protected]

final int FB_TimestampTZ = 17 [static, protected]

final int FB_TimeTZ = 15 [static, protected]

final int FB_TinyInteger = 22 [static, protected]

final int FB_VBit = 12 [static, protected]

final int FB_VCharacter = 10 [static, protected]

final int FB_YearMonth = 18 [static, protected]

final String QUERY_STRING_USE_BUNDLED_JDBC_INFO = "useBundledJdbcInfo" [static, private]

final boolean USE_NAMED_CONSTRAINTS = true [static, package]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:32 2012 for Project Wonder by  doxygen 1.5.8