Project Wonder 5.0

com.webobjects.jdbcadaptor
Class PostgresqlPlugIn

java.lang.Object
  extended by com.webobjects.jdbcadaptor.JDBCPlugIn
      extended by com.webobjects.jdbcadaptor.PostgresqlPlugIn

public class PostgresqlPlugIn
extends com.webobjects.jdbcadaptor.JDBCPlugIn

WO runtime plugin with support for Postgresql.

Author:
ak, giorgio_v

Field Summary
 
Fields inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn
_adaptor, _expressionClass, _expressionFactory, _pkTableName, _subprotocolRegistry, _syncFactory, DefaultPlugInClassName, DefaultPlugInSuffix
 
Constructor Summary
PostgresqlPlugIn(com.webobjects.jdbcadaptor.JDBCAdaptor adaptor)
          Designated constructor.
 
Method Summary
protected static java.lang.String _sequenceNameForEntity(com.webobjects.eoaccess.EOEntity entity)
          Utility method that returns the name of the sequence associated with entity
 com.webobjects.eoaccess.EOSynchronizationFactory createSynchronizationFactory()
          Returns a "pure java" synchronization factory.
 java.lang.String databaseProductName()
          Name of the database.
 java.lang.String defaultDriverName()
          Name of the driver.
 java.lang.Class defaultExpressionClass()
          Expression class to create.
 com.webobjects.foundation.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.
 java.lang.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.
 com.webobjects.foundation.NSArray newPrimaryKeys(int count, com.webobjects.eoaccess.EOEntity entity, com.webobjects.jdbcadaptor.JDBCChannel channel)
          Overrides the parent implementation to provide a more efficient mechanism for generating primary keys, while generating the primary key support on the fly.
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.
 
Methods inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn
_attributeForPath, _couldIgnoreException, _relationshipForPath, _takeValueForKeyPath, adaptor, assignTypeForAttribute, canDescribeStoredProcedure, connectionPropertiesForConnectionDictionary, connectionURL, createAttributeForRow, createExpressionFactory, databaseInformation, expressionFactory, fetchBLOB, fetchCLOB, isPseudoColumnName, jdbcTypeForUnknownExternalType, newPrimaryKeySelectString, plugInNameForURL, plugInValueForValue, primaryKeyLockString, primaryKeyTableName, removePlugInNameForSubprotocol, schemaNameForEntity, setPlugInNameForSubprotocol, sqlStatementForGettingProcedureNames, sqlStatementForGettingTableNames, sqlStatementForTableNamed, storedProcedureCatalogPattern, storedProcedureNamed, storedProcedureSchemaPattern, synchronizationFactory, tableTypes, updateLOBs, wildcardPatternForAttributes, wildcardPatternForSchema, wildcardPatternForTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresqlPlugIn

public PostgresqlPlugIn(com.webobjects.jdbcadaptor.JDBCAdaptor adaptor)
Designated constructor.

Method Detail

defaultDriverName

public java.lang.String defaultDriverName()
Name of the driver.

Overrides:
defaultDriverName in class com.webobjects.jdbcadaptor.JDBCPlugIn

databaseProductName

public java.lang.String databaseProductName()
Name of the database.

Overrides:
databaseProductName in class com.webobjects.jdbcadaptor.JDBCPlugIn

name

public java.lang.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.

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.


jdbcInfo

public com.webobjects.foundation.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 com.webobjects.jdbcadaptor.JDBCPlugIn

createSynchronizationFactory

public com.webobjects.eoaccess.EOSynchronizationFactory createSynchronizationFactory()
Returns a "pure java" synchronization factory. Useful for testing purposes.

Overrides:
createSynchronizationFactory in class com.webobjects.jdbcadaptor.JDBCPlugIn

defaultExpressionClass

public java.lang.Class defaultExpressionClass()
Expression class to create. We have custom code, so we need our own class.

Overrides:
defaultExpressionClass in class com.webobjects.jdbcadaptor.JDBCPlugIn

newPrimaryKeys

public com.webobjects.foundation.NSArray newPrimaryKeys(int count,
                                                        com.webobjects.eoaccess.EOEntity entity,
                                                        com.webobjects.jdbcadaptor.JDBCChannel channel)
Overrides the parent implementation to provide a more efficient mechanism for generating primary keys, while generating the primary key support on the fly.

Overrides:
newPrimaryKeys in class com.webobjects.jdbcadaptor.JDBCPlugIn
Parameters:
count - the batch size
entity - the entity requesting primary keys
channel - open JDBCChannel
Returns:
NSArray of NSDictionary where each dictionary corresponds to a unique primary key value

_sequenceNameForEntity

protected static java.lang.String _sequenceNameForEntity(com.webobjects.eoaccess.EOEntity entity)
Utility method that returns the name of the sequence associated with entity

Parameters:
entity - the entity
Returns:
the name of the sequence

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.