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

All Implemented Interfaces:
    ConnectionDecorator, Configurable, SQLWarningHandler, JoinSyntaxes

Dictionary for Postgres.
Field Summary
public  String allSequencesSQL    SQL statement to load all sequence schema,name pairs from all schemas. 
public  String namedSequencesFromAllSchemasSQL    SQL statement to load schema,name pairs for all sequences with a certain name from all schemas. 
public  String allSequencesFromOneSchemaSQL    SQL statement to load schema,name pairs from a named schema. 
public  String namedSequenceFromOneSchemaSQL    SQL statement to load a sequence's schema,name pair from one schema. 
public  boolean supportsSetFetchSize    Some Postgres drivers do not support the Statement#setFetchSize method. 
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 PostgresDictionary() 
Method from org.apache.openjpa.jdbc.sql.PostgresDictionary Summary:
appendSelectRange,   decorate,   deleteStream,   getByte,   getCreateSequenceSQL,   getDate,   getInt,   getLOBStream,   getLong,   getSequencesSQL,   getShort,   indexOf,   insertBlobForStreamingLoad,   isSystemIndex,   isSystemSequence,   isSystemTable,   setBoolean,   setNull,   supportsDeferredUniqueConstraints,   updateBlob
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.PostgresDictionary Detail:
 protected  void appendSelectRange(SQLBuffer buf,
    long start,
    long end,
    boolean subselect) 
 public Connection decorate(Connection conn) throws SQLException 
 public  void deleteStream(JDBCStore store,
    Select sel) throws SQLException 
 public byte getByte(ResultSet rs,
    int column) throws SQLException 
 public String[] getCreateSequenceSQL(Sequence seq) 
 public Date getDate(ResultSet rs,
    int column) throws SQLException 
 public int getInt(ResultSet rs,
    int column) throws SQLException 
 public InputStream getLOBStream(JDBCStore store,
    ResultSet rs,
    int column) throws SQLException 
 public long getLong(ResultSet rs,
    int column) throws SQLException 
 protected String getSequencesSQL(String schemaName,
    String sequenceName) 
 public short getShort(ResultSet rs,
    int column) throws SQLException 
 public  void indexOf(SQLBuffer buf,
    FilterValue str,
    FilterValue find,
    FilterValue start) 
 public  void insertBlobForStreamingLoad(Row row,
    Column col,
    JDBCStore store,
    Object ob,
    Select sel) throws SQLException 
 public boolean isSystemIndex(String name,
    Table table) 
 public boolean isSystemSequence(String name,
    String schema,
    boolean targetSchema) 
 public boolean isSystemTable(String name,
    String schema,
    boolean targetSchema) 
 public  void setBoolean(PreparedStatement stmnt,
    int idx,
    boolean val,
    Column col) throws SQLException 
 public  void setNull(PreparedStatement stmnt,
    int idx,
    int colType,
    Column col) throws SQLException 
 protected boolean supportsDeferredUniqueConstraints() 
 public  void updateBlob(Select sel,
    JDBCStore store,
    InputStream is) throws SQLException