|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.jdbcadaptor.JDBCPlugIn com.webobjects.jdbcadaptor.DerbyPlugIn
public class DerbyPlugIn
The Derby plugin by default only supports the embedded driver usage. You will have to set the driver classname in the connection dictionary to use the network driver
Typical connection dictionary information (for examples):
username:
password:
URL: jdbc:derby:derbyDB
(driver and plugin defaults will work)
Nested Class Summary | |
---|---|
static class |
DerbyPlugIn.DerbyExpression
|
static class |
DerbyPlugIn.DerbySynchronizationFactory
|
Nested classes/interfaces inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
---|
JDBCPlugIn.LobEntry |
Field Summary |
---|
Fields inherited from class com.webobjects.jdbcadaptor.JDBCPlugIn |
---|
DefaultPlugInClassName, DefaultPlugInSuffix |
Constructor Summary | |
---|---|
DerbyPlugIn(JDBCAdaptor adaptor)
|
Method Summary | |
---|---|
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. |
NSDictionary |
jdbcInfo()
Returns database-specific information about the JDBC data source. |
String |
name()
Returns the plugin's name. |
String |
primaryKeyTableCreateString(String pkTableName,
EOSQLExpression getRowExpr,
EOAttribute primAttribute)
The statement for creating the primaryKeyTable can be overridden here. |
void |
updateLOBs(JDBCChannel channel,
JDBCExpression expression,
NSDictionary row,
EOEntity entity)
Update LOBs (BLOBs and CLOBs). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DerbyPlugIn(JDBCAdaptor adaptor)
Method Detail |
---|
public String defaultDriverName()
JDBCPlugIn
defaultDriverName
in class JDBCPlugIn
public String databaseProductName()
JDBCPlugIn
databaseProductName
in class JDBCPlugIn
public String name()
JDBCPlugIn
name
in class JDBCPlugIn
public Class defaultExpressionClass()
JDBCPlugIn
defaultExpressionClass
in class JDBCPlugIn
JDBCExpression
,
JDBCAdaptor.defaultExpressionClass()
public NSDictionary jdbcInfo()
JDBCPlugIn
jdbcInfo
in class JDBCPlugIn
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 void updateLOBs(JDBCChannel channel, JDBCExpression expression, NSDictionary row, EOEntity entity)
JDBCPlugIn
updateLOBs
in class JDBCPlugIn
channel
- an open JDBCChannelexpression
- the JDBCExpression used to perform the insert or updaterow
- 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 String primaryKeyTableCreateString(String pkTableName, EOSQLExpression getRowExpr, EOAttribute primAttribute)
JDBCPlugIn
CREATE TABLE (NAME CHAR(40), PK INTEGER)
primaryKeyTableCreateString
in class JDBCPlugIn
public 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()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |