PostgresqlPlugIn Class Reference

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

Collaboration diagram for PostgresqlPlugIn:

Collaboration graph
[legend]

List of all members.

Public Member Functions

EOSynchronizationFactory createSynchronizationFactory ()
String databaseProductName ()
String defaultDriverName ()
Class defaultExpressionClass ()
NSDictionary jdbcInfo ()
String name ()
NSArray newPrimaryKeys (int count, EOEntity entity, JDBCChannel channel)
 PostgresqlPlugIn (JDBCAdaptor adaptor)

Protected Member Functions

boolean shouldUseBundledJdbcInfo ()

Static Protected Member Functions

static String _sequenceNameForEntity (EOEntity entity)

Static Package Functions

 [static initializer]

Private Member Functions

boolean isPrimaryKeyGenerationNotSupported (EOEntity entity)

Static Private Attributes

static final String QUERY_STRING_USE_BUNDLED_JDBC_INFO = "useBundledJdbcInfo"


Detailed Description

WO runtime plugin with support for Postgresql.

Author:
ak

giorgio_v


Constructor & Destructor Documentation

PostgresqlPlugIn ( JDBCAdaptor  adaptor  ) 

Designated constructor.


Member Function Documentation

[static initializer] (  )  [static, package]

static String _sequenceNameForEntity ( EOEntity  entity  )  [static, protected]

Utility method that returns the name of the sequence associated with entity

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

EOSynchronizationFactory createSynchronizationFactory (  ) 

Returns a "pure java" synchronization factory. Useful for testing purposes.

String databaseProductName (  ) 

Name of the database.

String defaultDriverName (  ) 

Name of the driver.

Class defaultExpressionClass (  ) 

Expression class to create. We have custom code, so we need our own class.

boolean isPrimaryKeyGenerationNotSupported ( EOEntity  entity  )  [private]

Checks whether primary key generation can be supported for entity

Parameters:
entity the entity to be checked
Returns:
yes/no

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  count,
EOEntity  entity,
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.

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

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.


Member Data Documentation

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


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

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