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

All Implemented Interfaces:
    ConnectionDecorator, Configurable, SQLWarningHandler, JoinSyntaxes

Dictionary for Oracle.
Field Summary
public static final  String SELECT_HINT     
public static final  String VENDOR_ORACLE     
public  boolean useTriggersForAutoAssign    If true, then simulate auto-assigned values in Oracle by using a trigger that inserts a sequence value into the primary key value when a row is inserted. 
public  String autoAssignSequenceName    The global sequence name to use for autoassign simulation. 
public  boolean openjpa3GeneratedKeyNames    Flag to use OpenJPA 0.3 style naming for auto assign sequence name and trigger name for backwards compatibility. 
public  boolean useSetFormOfUseForUnicode    If true, then OpenJPA will attempt to use the special OraclePreparedStatement.setFormOfUse method to configure statements that it detects are operating on unicode fields. 
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 OracleDictionary() 
Method from org.apache.openjpa.jdbc.sql.OracleDictionary Summary:
appendXmlComparison,   canOuterJoin,   connectedConfiguration,   endConfiguration,   ensureDriverVendor,   getClobString,   getColumns,   getCreateSequenceSQL,   getCreateTableSQL,   getGeneratedKey,   getGeneratedKeyTriggerName,   getImportedKeys,   getIndexInfo,   getObject,   getOpenJPA3GeneratedKeySequenceName,   getOpenJPA3GeneratedKeyTriggerName,   getPrimaryKeys,   getSelectOperation,   getSelects,   getSequencesSQL,   getTimestamp,   insertBlobForStreamingLoad,   insertClobForStreamingLoad,   isSystemSequence,   putBytes,   putChars,   putString,   setNull,   setString,   supportsLocking,   toNativeJoin,   toSelect
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.OracleDictionary Detail:
 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 boolean canOuterJoin(int syntax,
    ForeignKey fk) 
 public  void connectedConfiguration(Connection conn) throws SQLException 
 public  void endConfiguration() 
 public  void ensureDriverVendor() 
    Ensure that the driver vendor has been set, and if not, set it now.
 public String getClobString(ResultSet rs,
    int column) throws SQLException 
 public Column[] getColumns(DatabaseMetaData meta,
    String catalog,
    String schemaName,
    String tableName,
    String columnName,
    Connection conn) throws SQLException 
 public String[] getCreateSequenceSQL(Sequence seq) 
 public String[] getCreateTableSQL(Table table) 
 public Object getGeneratedKey(Column col,
    Connection conn) throws SQLException 
 protected String getGeneratedKeyTriggerName(Column col) 
    Trigger name for simulating auto-assign values on the given column.
 public ForeignKey[] getImportedKeys(DatabaseMetaData meta,
    String catalog,
    String schemaName,
    String tableName,
    Connection conn) throws SQLException 
 public Index[] getIndexInfo(DatabaseMetaData meta,
    String catalog,
    String schemaName,
    String tableName,
    boolean unique,
    boolean approx,
    Connection conn) throws SQLException 
 public Object getObject(ResultSet rs,
    int column,
    Map map) throws SQLException 
 protected String getOpenJPA3GeneratedKeySequenceName(Column col) 
    Returns a OpenJPA 3-compatible name for an auto-assign sequence.
 protected String getOpenJPA3GeneratedKeyTriggerName(Column col) 
    Returns a OpenJPA 3-compatible name for an auto-assign trigger.
 public PrimaryKey[] getPrimaryKeys(DatabaseMetaData meta,
    String catalog,
    String schemaName,
    String tableName,
    Connection conn) throws SQLException 
 public String getSelectOperation(JDBCFetchConfiguration fetch) 
    Check to see if we have set the #SELECT_HINT in the fetch configuraiton, and if so, append the Orache hint after the "SELECT" part of the query.
 protected SQLBuffer getSelects(Select sel,
    boolean distinctIdentifiers,
    boolean forUpdate) 
 protected String getSequencesSQL(String schemaName,
    String sequenceName) 
 public Timestamp getTimestamp(ResultSet rs,
    int column,
    Calendar cal) throws SQLException 
 public  void insertBlobForStreamingLoad(Row row,
    Column col,
    Object ob) throws SQLException 
 public  void insertClobForStreamingLoad(Row row,
    Column col,
    Object ob) throws SQLException 
 public boolean isSystemSequence(String name,
    String schema,
    boolean targetSchema) 
 public  void putBytes(Object blob,
    byte[] data) throws SQLException 
    Invoke Oracle's putBytes method on the given BLOB object. Uses reflection in case the blob is wrapped in another vendor-specific class; for example Weblogic wraps oracle thin driver lobs in its own interfaces with the same methods.
 public  void putChars(Object clob,
    char[] data) throws SQLException 
    Invoke Oracle's putChars method on the given CLOB object. Uses reflection in case the clob is wrapped in another vendor-specific class; for example Weblogic wraps oracle thin driver lobs in its own interfaces with the same methods.
 public  void putString(Object clob,
    String data) throws SQLException 
    Invoke Oracle's putString method on the given CLOB object. Uses reflection in case the clob is wrapped in another vendor-specific class; for example Weblogic wraps oracle thin driver lobs in its own interfaces with the same methods.
 public  void setNull(PreparedStatement stmnt,
    int idx,
    int colType,
    Column col) throws SQLException 
 public  void setString(PreparedStatement stmnt,
    int idx,
    String val,
    Column col) throws SQLException 
 public boolean supportsLocking(Select sel) 
 public SQLBuffer toNativeJoin(Join join) 
 public SQLBuffer toSelect(SQLBuffer select,
    JDBCFetchConfiguration fetch,
    SQLBuffer tables,
    SQLBuffer where,
    SQLBuffer group,
    SQLBuffer having,
    SQLBuffer order,
    boolean distinct,
    boolean forUpdate,
    long start,
    long end,
    Select sel)