Class DBCommandPostgres
java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBCommandExpr
org.apache.empire.db.DBCommand
org.apache.empire.dbms.postgresql.DBCommandPostgres
- All Implemented Interfaces:
Cloneable
Defines the PostgreSQL command type.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.db.DBCommandExpr
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery -
Field Summary
FieldsFields inherited from class org.apache.empire.db.DBCommand
autoPrepareStmt, cmdParams, groupBy, having, joins, log, parentTables, select, selectDistinct, set, whereFields inherited from class org.apache.empire.db.DBCommandExpr
cmdQuery, orderBy, SF_DEFAULT, SF_SKIP_FROM, SF_SKIP_GROUP, SF_SKIP_LIMIT, SF_SKIP_ORDER, SF_SKIP_SELECT, SF_SKIP_WHEREFields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUpdateWithJoins(DBSQLBuilder sql, DBRowSet table) voidClears a limit or offset set by calling limit() or offset()voidgetSelect(DBSQLBuilder sql, int flags) Creates a select SQL-StatementlimitRows(int numRows) Overridden to change return type from DBCommandExpr to DBCommandpgAge(DBColumnExpr expr) See https://www.postgresql.org/docs/current/functions-datetime.htmlpgAge(DBColumnExpr expr1, DBColumnExpr expr2) See https://www.postgresql.org/docs/current/functions-datetime.htmlpgBoolAnd(DBCompareExpr cmpExpr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlpgBoolOr(DBCompareExpr cmpExpr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlpgCompareAtAt(DBColumnExpr left, DBColumnExpr right) See https://www.postgresql.org/docs/current/textsearch-controls.htmlpgExtract(PostgresExtractField field, DBColumnExpr expr) See https://www.postgresql.org/docs/current/functions-datetime.htmlpgInterval(int quantity, PostgresIntervalExpr.PostgresIntervalUnitField unit) pgPlaintoTsquery(DBColumnExpr expr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlpgToTsquery(DBColumnExpr expr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlpgToTsvector(DBColumnExpr expr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlSee https://www.postgresql.org/docs/current/textsearch-controls.htmlskipRows(int numRows) Overridden to change return type from DBCommandExpr to DBCommandMethods inherited from class org.apache.empire.db.DBCommand
addDeleteForTable, addDeleteWithJoins, addFrom, addGrouping, addJoins, addKeyConstraints, addOrder, addParam, addParam, addParam, addParam, addReferencedColumns, addSelect, addUpdateForTable, addWhere, addWhere, addWhereConstraints, appendCompareColExprs, clear, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, completeParamUsage, createSQLBuilder, findConstraintOn, getDatabase, getDataType, getDelete, getGroupBy, getHavingConstraints, getInsert, getJoins, getParams, getParamValues, getRowSetList, getSelectExpressions, getSelectExprList, getSetExpressions, getUpdate, getWhereConstraints, groupAll, groupBy, groupBy, groupBy, hasAggegation, hasConstraintOn, hasGroupBy, hasHavingConstraintOn, hasHavingConstraints, hasJoinOn, hasJoinOn, hasSelectExpr, hasSelectExpr, hasSetExpr, hasSetExprOn, hasWhereConstraintOn, hasWhereConstraints, having, isAutoPrepareStmt, isPreparedStatementsEnabled, isSelectDistinct, isValid, join, join, join, join, join, join, join, join, joinLeft, joinLeft, joinRight, joinRight, orderBy, orderBy, orderBy, orderByUpper, orderByUpper, qualifyAll, removeAllCommandParams, removeCommandParams, removeConstraint, removeConstraintOn, removeHavingConstraint, removeHavingConstraintOn, removeJoinsOn, removeJoinsOn, removeSelect, removeWhereConstraint, removeWhereConstraintOn, replaceSelect, resetParamUsage, select, select, select, selectDistinct, selectQualified, selectQualified, selectSetExpressions, selectSetExpressions, set, set, setConstraint, setParentTables, useCmdParam, where, whereMethods inherited from class org.apache.empire.db.DBCommandExpr
addListExpr, addSQL, clearOrderBy, getCmdColumn, getDbms, getInsertInto, getInsertInto, getInsertInto, getOrderBy, getSelect, getSelect, hasOrderBy, intersect, not, notEmpty, result, union, unionAllMethods inherited from class org.apache.empire.db.DBObject
checkParamNull
-
Field Details
-
limit
protected int limit -
skip
protected int skip
-
-
Constructor Details
-
DBCommandPostgres
-
-
Method Details
-
pgAge
See https://www.postgresql.org/docs/current/functions-datetime.html -
pgAge
See https://www.postgresql.org/docs/current/functions-datetime.html -
pgExtract
See https://www.postgresql.org/docs/current/functions-datetime.html -
pgToTsquery
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgToTsvector
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgPlaintoTsquery
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgWebsearchToTsquery
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgBoolAnd
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgBoolOr
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgCompareAtAt
See https://www.postgresql.org/docs/current/textsearch-controls.html -
pgInterval
public PostgresIntervalExpr pgInterval(int quantity, PostgresIntervalExpr.PostgresIntervalUnitField unit) -
limitRows
Description copied from class:DBCommandOverridden to change return type from DBCommandExpr to DBCommand -
skipRows
Description copied from class:DBCommandOverridden to change return type from DBCommandExpr to DBCommand -
clearLimit
public void clearLimit()Description copied from class:DBCommandExprClears a limit or offset set by calling limit() or offset()- Overrides:
clearLimitin classDBCommandExpr
-
getSelect
Description copied from class:DBCommandCreates a select SQL-Statement -
addUpdateWithJoins
- Overrides:
addUpdateWithJoinsin classDBCommand
-