Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.jdbc » sql » [javadoc | source]
org.apache.openjpa.jdbc.sql
public class: DB2Dictionary [javadoc | source]
java.lang.Object
   org.apache.openjpa.jdbc.sql.DBDictionary
      org.apache.openjpa.jdbc.sql.AbstractDB2Dictionary
         org.apache.openjpa.jdbc.sql.DB2Dictionary

All Implemented Interfaces:
    ConnectionDecorator, Configurable, SQLWarningHandler, JoinSyntaxes

Dictionary for IBM DB2 database.
Field Summary
public  String optimizeClause     
public  String rowClause     
protected  int db2ServerType     
public static final  int db2ISeriesV5R3OrEarlier     
public static final  int db2UDBV81OrEarlier     
public static final  int db2ZOSV8xOrLater     
public static final  int db2UDBV82OrLater     
public static final  int db2ISeriesV5R4OrLater     
protected  String databaseProductName     
protected  String databaseProductVersion     
protected  int maj     
protected  int min     
Fields inherited from org.apache.openjpa.jdbc.sql.AbstractDB2Dictionary:
varcharCastLength
Fields inherited from org.apache.openjpa.jdbc.sql.DBDictionary:
VENDOR_OTHER,  VENDOR_DATADIRECT,  SCHEMA_CASE_UPPER,  SCHEMA_CASE_LOWER,  SCHEMA_CASE_PRESERVE,  CONS_NAME_BEFORE,  CONS_NAME_MID,  CONS_NAME_AFTER,  blobBufferSize,  clobBufferSize,  RANGE_POST_SELECT,  RANGE_PRE_DISTINCT,  RANGE_POST_DISTINCT,  RANGE_POST_LOCK,  NANO,  MICRO,  MILLI,  CENTI,  DECI,  SEC,  NAME_ANY,  NAME_TABLE,  NAME_SEQUENCE,  UNLIMITED,  NO_BATCH,  EMPTY_STRING_LIST,  SQL_STATE_CODES,  platform,  driverVendor,  catalogSeparator,  createPrimaryKeys,  constraintNameMode,  maxTableNameLength,  maxColumnNameLength,  maxConstraintNameLength,  maxIndexNameLength,  maxIndexesPerTable,  supportsForeignKeys,  supportsTimestampNanos,  supportsUniqueConstraints,  supportsDeferredConstraints,  supportsRestrictDeleteAction,  supportsCascadeDeleteAction,  supportsNullDeleteAction,  supportsDefaultDeleteAction,  supportsRestrictUpdateAction,  supportsCascadeUpdateAction,  supportsNullUpdateAction,  supportsDefaultUpdateAction,  supportsAlterTableWithAddColumn,  supportsAlterTableWithDropColumn,  supportsComments,  reservedWords,  systemSchemas,  systemTables,  selectWords,  fixedSizeTypeNames,  schemaCase,  validationSQL,  closePoolSQL,  initializationSQL,  joinSyntax,  outerJoinClause,  innerJoinClause,  crossJoinClause,  requiresConditionForCrossJoin,  forUpdateClause,  tableForUpdateClause,  distinctCountColumnSeparator,  supportsSelectForUpdate,  supportsLockingWithDistinctClause,  supportsLockingWithMultipleTables,  supportsLockingWithOrderClause,  supportsLockingWithOuterJoin,  supportsLockingWithInnerJoin,  supportsLockingWithSelectRange,  supportsQueryTimeout,  simulateLocking,  supportsSubselect,  supportsCorrelatedSubselect,  supportsHaving,  supportsSelectStartIndex,  supportsSelectEndIndex,  rangePosition,  requiresAliasForSubselect,  requiresTargetForDelete,  allowsAliasInBulkClause,  supportsMultipleNontransactionalResultSets,  searchStringEscape,  requiresCastForMathFunctions,  requiresCastForComparisons,  supportsModOperator,  supportsXMLColumn,  castFunction,  toLowerCaseFunction,  toUpperCaseFunction,  stringLengthFunction,  bitLengthFunction,  trimLeadingFunction,  trimTrailingFunction,  trimBothFunction,  concatenateFunction,  concatenateDelimiter,  substringFunctionName,  currentDateFunction,  currentTimeFunction,  currentTimestampFunction,  dropTableSQL,  storageLimitationsFatal,  storeLargeNumbersAsStrings,  storeCharsAsNumbers,  useGetBytesForBlobs,  useSetBytesForBlobs,  useGetObjectForBlobs,  useGetStringForClobs,  useSetStringForClobs,  maxEmbeddedBlobSize,  maxEmbeddedClobSize,  inClauseLimit,  datePrecision,  characterColumnSize,  arrayTypeName,  bigintTypeName,  binaryTypeName,  bitTypeName,  blobTypeName,  booleanTypeName,  charTypeName,  clobTypeName,  dateTypeName,  decimalTypeName,  distinctTypeName,  doubleTypeName,  floatTypeName,  integerTypeName,  javaObjectTypeName,  longVarbinaryTypeName,  longVarcharTypeName,  nullTypeName,  numericTypeName,  otherTypeName,  realTypeName,  refTypeName,  smallintTypeName,  structTypeName,  timeTypeName,  timestampTypeName,  tinyintTypeName,  varbinaryTypeName,  varcharTypeName,  xmlTypeName,  getStringVal,  useSchemaName,  tableTypes,  supportsSchemaForGetTables,  supportsSchemaForGetColumns,  supportsNullTableForGetColumns,  supportsNullTableForGetPrimaryKeys,  supportsNullTableForGetIndexInfo,  supportsNullTableForGetImportedKeys,  useGetBestRowIdentifierForPrimaryKeys,  requiresAutoCommitForMetaData,  maxAutoAssignNameLength,  autoAssignClause,  autoAssignTypeName,  supportsAutoAssign,  lastGeneratedKeyQuery,  nextSequenceQuery,  sequenceSQL,  sequenceSchemaSQL,  sequenceNameSQL,  conf,  log,  connected,  reservedWordSet,  systemSchemaSet,  systemTableSet,  fixedSizeTypeNameSet,  typeModifierSet,  selectWordSet,  batchLimit
Constructor:
 public DB2Dictionary() 
Method from org.apache.openjpa.jdbc.sql.DB2Dictionary Summary:
addCastAsType,   appendCast,   appendLength,   appendSelect,   appendSelectRange,   appendXmlComparison,   connectedConfiguration,   createIndexIfNecessary,   decorate,   getBatchLimit,   getCastFunction,   getCreateSequenceSQL,   getDb2ServerType,   getForUpdateClause,   getOptimizeClause,   getSequencesSQL,   indexOf,   isDB2ISeriesV5R3OrEarlier,   isDB2ISeriesV5R4OrLater,   isDB2UDBV81OrEarlier,   isDB2UDBV82OrLater,   isDB2ZOSV8xOrLater,   newStoreException,   supportsRandomAccessResultSet
Methods from org.apache.openjpa.jdbc.sql.AbstractDB2Dictionary:
indexOf,   substring
Methods from org.apache.openjpa.jdbc.sql.DBDictionary:
addCastAsType,   appendCast,   appendLength,   appendNumericCast,   appendSelect,   appendSelectRange,   appendSize,   appendUpdates,   appendXmlComparison,   assertSupport,   calculateValue,   canOuterJoin,   closeDataSource,   comment,   comparison,   connectedConfiguration,   convertSchemaCase,   copy,   copy,   createIndexIfNecessary,   decorate,   deleteStream,   endConfiguration,   executeQuery,   getAddColumnSQL,   getAddForeignKeySQL,   getAddPrimaryKeySQL,   getArray,   getAsciiStream,   getBatchLimit,   getBigDecimal,   getBigInteger,   getBinaryStream,   getBlob,   getBlobObject,   getBoolean,   getByte,   getBytes,   getCalendar,   getCastFunction,   getCatalogNameForMetadata,   getChar,   getCharacterStream,   getClob,   getClobString,   getColumnNameForMetadata,   getColumns,   getCreateIndexSQL,   getCreateSequenceSQL,   getCreateTableSQL,   getDate,   getDate,   getDeclareColumnSQL,   getDeleteTableContentsSQL,   getDeleteTargets,   getDouble,   getDropColumnSQL,   getDropForeignKeySQL,   getDropIndexSQL,   getDropPrimaryKeySQL,   getDropSequenceSQL,   getDropTableSQL,   getFloat,   getForUpdateClause,   getForeignKeyConstraintSQL,   getFrom,   getFromSelect,   getFullName,   getFullName,   getFullName,   getGeneratedKey,   getGeneratedKeySequenceName,   getImportedKeys,   getIndexInfo,   getInt,   getJDBCType,   getKey,   getLOBStream,   getLocale,   getLong,   getNumber,   getObject,   getPlaceholderValueString,   getPreferredType,   getPrimaryKeyConstraintSQL,   getPrimaryKeys,   getPrimaryKeysFromBestRowIdentifier,   getPrimaryKeysFromGetPrimaryKeys,   getRef,   getSQLStates,   getSchemaCase,   getSchemaNameForMetadata,   getSelectOperation,   getSelects,   getSequence,   getSequences,   getSequencesSQL,   getShort,   getString,   getTableNameForMetadata,   getTables,   getTime,   getTimestamp,   getTypeName,   getTypeName,   getUniqueConstraintSQL,   getValidColumnName,   getValidColumnName,   getValidForeignKeyName,   getValidIndexName,   getValidPrimaryKeyName,   getValidSequenceName,   getValidTableName,   getValidUniqueName,   getVersionColumn,   getWhere,   handleWarning,   indexOf,   insertBlobForStreamingLoad,   insertClobForStreamingLoad,   insertSize,   isSelect,   isSystemIndex,   isSystemSequence,   isSystemTable,   makeNameValid,   makeNameValid,   mathFunction,   newColumn,   newForeignKey,   newIndex,   newPrimaryKey,   newSequence,   newStoreException,   newTable,   prepareStatement,   putBytes,   putChars,   putString,   refSchemaComponents,   serialize,   setArray,   setAsciiStream,   setBatchLimit,   setBigDecimal,   setBigInteger,   setBinaryStream,   setBlob,   setBlobObject,   setBoolean,   setByte,   setBytes,   setCalendar,   setChar,   setCharacterStream,   setClob,   setClobString,   setConfiguration,   setDate,   setDate,   setDouble,   setFloat,   setInt,   setJoinSyntax,   setLocale,   setLong,   setNull,   setNumber,   setObject,   setRef,   setShort,   setString,   setTime,   setTimestamp,   setTyped,   setUnknown,   shorten,   startConfiguration,   storageWarning,   substring,   supportsDeferredForeignKeyConstraints,   supportsDeferredUniqueConstraints,   supportsDeleteAction,   supportsLocking,   supportsRandomAccessResultSet,   supportsUpdateAction,   toBulkOperation,   toDelete,   toLong,   toNativeJoin,   toOperation,   toOperation,   toSQL92Join,   toSelect,   toSelect,   toSelect,   toSelect,   toSelect,   toSelectCount,   toTraditionalJoin,   toUpdate,   updateBlob,   updateClob,   validateBatchProcess,   validateDBSpecificBatchProcess
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.jdbc.sql.DB2Dictionary Detail:
 public String addCastAsType(String func,
    Val val) 
    add CAST for a function operator where operand is a param
 public  void appendCast(SQLBuffer buf,
    FilterValue val,
    int type) 
    Cast the specified value to the specified type.
 protected  void appendLength(SQLBuffer buf,
    int type) 
 protected  void appendSelect(SQLBuffer selectSQL,
    Object alias,
    Select sel,
    int idx) 
 protected  void appendSelectRange(SQLBuffer buf,
    long start,
    long end,
    boolean subselect) 
 public  void appendXmlComparison(SQLBuffer buf,
    String op,
    FilterValue lhs,
    FilterValue rhs,
    boolean lhsxml,
    boolean rhsxml) 
    If this dictionary supports XML type, use this method to append xml predicate.
 public  void connectedConfiguration(Connection conn) throws SQLException 
 public  void createIndexIfNecessary(Schema schema,
    String table,
    Column pkColumn) 
    Create an index if necessary for some database tables
 public Connection decorate(Connection conn) throws SQLException 
 public int getBatchLimit() 
    Return the batch limit. If the batchLimit is -1, change it to 100 for best performance
 public String getCastFunction(Val val,
    String func) 
    Return the correct CAST function syntax
 public String[] getCreateSequenceSQL(Sequence seq) 
 public int getDb2ServerType() 
 protected String getForUpdateClause(JDBCFetchConfiguration fetch,
    boolean isForUpdate,
    Select sel) 
    Get the update clause for the query based on the updateClause and isolationLevel hints
 protected String getOptimizeClause(Select sel) 
 protected String getSequencesSQL(String schemaName,
    String sequenceName) 
 public  void indexOf(SQLBuffer buf,
    FilterValue str,
    FilterValue find,
    FilterValue start) 
 public boolean isDB2ISeriesV5R3OrEarlier() 
 public boolean isDB2ISeriesV5R4OrLater() 
 public boolean isDB2UDBV81OrEarlier() 
 public boolean isDB2UDBV82OrLater() 
 public boolean isDB2ZOSV8xOrLater() 
 public OpenJPAException newStoreException(String msg,
    SQLException[] causes,
    Object failed) 
 public boolean supportsRandomAccessResultSet(Select sel,
    boolean forUpdate)