|
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 |
public interface HQDialect
Method Summary | |
---|---|
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 |
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 |
Method Detail |
---|
java.lang.String getOptimizeStmt(java.lang.String table, int cost)
table
- - name of tablecost
- - based on the database,
may be table percentage or random numberboolean useMetricUnion()
boolean useEamNumbers()
int getMaxExpressions()
boolean supportsMultiInsertStmt()
java.lang.String getRegExSQL(java.lang.String column, java.lang.String regex, boolean ignoreCase, boolean invertMatch)
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 -vboolean supportsDuplicateInsertStmt()
boolean tableExists(java.sql.Statement stmt, java.lang.String tableName) throws java.sql.SQLException
java.sql.SQLException
java.lang.String getLimitString(int num)
num
- The number of rows to limit by.
boolean viewExists(java.sql.Statement stmt, java.lang.String viewName) throws java.sql.SQLException
java.sql.SQLException
boolean usesSequenceGenerator()
boolean supportsPLSQL()
java.lang.String getLimitBuf(java.lang.String sql, int offset, int limit)
|
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 |