|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.dialect.Dialect
org.hibernate.dialect.PostgreSQLDialect
org.hyperic.hibernate.dialect.PostgreSQLDialect
public class PostgreSQLDialect
This class must be public for Hibernate to access it.
Field Summary |
---|
Fields inherited from class org.hibernate.dialect.Dialect |
---|
CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE |
Constructor Summary | |
---|---|
PostgreSQLDialect()
|
Method Summary | |
---|---|
boolean |
dropConstraints()
|
java.lang.String |
getCascadeConstraintsString()
|
java.lang.String |
getCreateSequenceString(java.lang.String sequenceName)
|
java.lang.String |
getLimitBuf(java.lang.String sql,
int offset,
int limit)
|
java.lang.String |
getLimitString(int num)
Returns the limit string. |
int |
getMaxExpressions()
Returns -1 if Max Expressions supported in the db is unlimited. |
java.lang.String |
getOptimizeStmt(java.lang.String table,
int cost)
Returns the table optimize statement for a particular database |
java.lang.String |
getRegExSQL(java.lang.String column,
java.lang.String regex,
boolean ignoreCase,
boolean invertMatch)
Returns a db specific SQL syntax for a POSIX style Regular Expression. |
boolean |
supportsDeferrableConstraints()
|
boolean |
supportsDuplicateInsertStmt()
Returns true if the database supports an insert stmt which updates when the unique key is violated |
boolean |
supportsMultiInsertStmt()
Returns true if the database supports a multi insert stmt. |
boolean |
supportsPLSQL()
true if the database supports PL/SQL |
boolean |
tableExists(java.sql.Statement stmt,
java.lang.String tableName)
Returns true if the database contains the specified tableName |
boolean |
useEamNumbers()
Returns true if using the EAM_NUMBERS table to iterate over a certain amount of time ranges is optimal for the database |
boolean |
useMetricUnion()
Returns true if using the EAM_MEASUREMENT_DATA view instead of constructing it dynamically is optimal |
boolean |
usesSequenceGenerator()
If true, tells the ComboGenerator to use the SequenceGenerator, else uses the MultipleHiLoPerTableGenerator |
boolean |
viewExists(java.sql.Statement stmt,
java.lang.String viewName)
Returns true if the database contains the specified viewName |
Methods inherited from class org.hibernate.dialect.PostgreSQLDialect |
---|
bindLimitParametersInReverseOrder, getAddColumnString, getCreateTemporaryTablePostfix, getCreateTemporaryTableString, getCurrentTimestampSelectString, getDropSequenceString, getForUpdateString, getIdentityColumnString, getIdentitySelectString, getLimitString, getNativeIdentifierGeneratorClass, getNoColumnsInsertString, getQuerySequencesString, getSelectClauseNullString, getSelectSequenceNextValString, getSequenceNextValString, getViolatedConstraintNameExtracter, hasDataTypeInIdentityColumn, isCurrentTimestampSelectStringCallable, supportsCommentOn, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExpectedLobUsagePattern, supportsIdentityColumns, supportsLimit, supportsOuterJoinForUpdate, supportsSequences, supportsTemporaryTables, supportsUnionAll, toBooleanValueString, useInputStreamToInsertBlob |
Methods inherited from class org.hibernate.dialect.Dialect |
---|
appendIdentitySelectToInsert, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, bindLimitParametersFirst, buildSQLExceptionConverter, closeQuote, createCaseFragment, createOuterJoinFragment, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, dropTemporaryTableAfterUse, forUpdateOfColumns, generateTemporaryTableName, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getCastTypeName, getColumnComment, getCreateMultisetTableString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCurrentTimestampSQLFunctionName, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceStrings, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, getKeywords, getLimitString, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNullColumnString, getResultSet, getSelectGUIDString, getTableComment, getTableTypeString, getTypeName, getTypeName, hasAlterTable, hasSelfReferentialForeignKeyBug, openQuote, performTemporaryTableDDLInIsolation, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExistsInSelect, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsInsertSelectIdentity, supportsLimitOffset, supportsLobValueChangePropogation, supportsNotNullUnique, supportsParametersInInsertSelect, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsUnboundedLobLocatorMaterialization, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toString, transformSelectString, useMaxForLimit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PostgreSQLDialect()
Method Detail |
---|
public boolean supportsDeferrableConstraints()
public java.lang.String getCascadeConstraintsString()
getCascadeConstraintsString
in class org.hibernate.dialect.PostgreSQLDialect
public boolean dropConstraints()
dropConstraints
in class org.hibernate.dialect.PostgreSQLDialect
public java.lang.String getCreateSequenceString(java.lang.String sequenceName)
getCreateSequenceString
in class org.hibernate.dialect.PostgreSQLDialect
public java.lang.String getOptimizeStmt(java.lang.String table, int cost)
HQDialect
getOptimizeStmt
in interface HQDialect
table
- - name of tablecost
- - based on the database,
may be table percentage or random numberpublic boolean supportsDuplicateInsertStmt()
HQDialect
supportsDuplicateInsertStmt
in interface HQDialect
public boolean supportsMultiInsertStmt()
HQDialect
supportsMultiInsertStmt
in interface HQDialect
public boolean tableExists(java.sql.Statement stmt, java.lang.String tableName) throws java.sql.SQLException
HQDialect
tableExists
in interface HQDialect
java.sql.SQLException
public boolean viewExists(java.sql.Statement stmt, java.lang.String viewName) throws java.sql.SQLException
HQDialect
viewExists
in interface HQDialect
java.sql.SQLException
public java.lang.String getLimitString(int num)
HQDialect
getLimitString
in interface HQDialect
num
- The number of rows to limit by.
public java.lang.String getLimitBuf(java.lang.String sql, int offset, int limit)
getLimitBuf
in interface HQDialect
public boolean usesSequenceGenerator()
HQDialect
usesSequenceGenerator
in interface HQDialect
public java.lang.String getRegExSQL(java.lang.String column, java.lang.String regex, boolean ignoreCase, boolean invertMatch)
HQDialect
getRegExSQL
in interface HQDialect
column
- - the column to match againstregex
- - the POSIX style regex. The param passed in allows for
prepared statement type syntax. If that is not desired put quotes around
the value to ensure the SQL will not fail.ignoreCase
- - similar to grep -iinvertMatch
- - similar to grep -vpublic boolean useEamNumbers()
HQDialect
useEamNumbers
in interface HQDialect
public int getMaxExpressions()
HQDialect
getMaxExpressions
in interface HQDialect
public boolean supportsPLSQL()
HQDialect
supportsPLSQL
in interface HQDialect
public boolean useMetricUnion()
HQDialect
useMetricUnion
in interface HQDialect
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |