FileDocCategorySizeDatePackage
SpecialDBOperation.javaAPI DocGlassfish v2 API3569Fri May 04 22:34:56 BST 2007com.sun.jdo.api.persistence.support

SpecialDBOperation

public interface SpecialDBOperation
SpecialDBOperation interface is defined for database specific operations.
author
Shing Wai Chan

Fields Summary
Constructors Summary
Methods Summary
public voidbindFixedCharColumn(java.sql.PreparedStatement ps, int index, java.lang.String strVal, int length)
Binds specified value to parameter at specified index that is bound to CHAR column.

param
ps java.sql.PreparedStatement
param
index Index of paramater marker in ps.
param
strVal value that needs to bound.
param
length length of the column to which strVal is bound.

public voiddefineColumnTypeForResult(java.sql.PreparedStatement ps, java.util.List columns)
Defines column type for result.

param
ps java.sql.PreparedStatement
param
columns List of ColumnElement corresponding to select clause

public voidinitialize(java.sql.DatabaseMetaData metaData, java.lang.String identifier)
This method is called immediately after an instance implementing this interface is created. The implementation can initialize itself using supplied metaData.

param
metaData DatbaseMetaData of the database for which an instance implementing this interface is ingratiated.
param
identifier Identifier of object used to obtain databaseMetaData. This can be null in non managed environment.