ALTER DATABASE statement.
+ */
public /*sealed*/ interface AlterDatabase
extends
DDLQuery
@@ -1008,6 +1011,9 @@ public final class QOM {
@NotNull AlterDatabase $renameTo(Catalog renameTo);
}
+ /**
+ * The ALTER DOMAIN statement.
+ */
public /*sealed*/ interface AlterDomainALTER INDEX statement.
+ */
public /*sealed*/ interface AlterIndex
extends
DDLQuery
@@ -1060,6 +1069,9 @@ public final class QOM {
@NotNull AlterIndex $renameTo(Index renameTo);
}
+ /**
+ * The ALTER SCHEMA statement.
+ */
public /*sealed*/ interface AlterSchema
extends
DDLQuery
@@ -1074,6 +1086,9 @@ public final class QOM {
@NotNull AlterSchema $renameTo(Schema renameTo);
}
+ /**
+ * The ALTER SEQUENCE statement.
+ */
public /*sealed*/ interface AlterSequenceALTER TYPE statement.
+ */
public /*sealed*/ interface AlterType
extends
DDLQuery
@@ -1130,6 +1148,9 @@ public final class QOM {
@NotNull AlterType $renameValueTo(FieldALTER VIEW statement.
+ */
public /*sealed*/ interface AlterView
extends
DDLQuery
@@ -1146,6 +1167,9 @@ public final class QOM {
@NotNull AlterView $renameTo(Table> renameTo);
}
+ /**
+ * The COMMENT ON TABLE statement.
+ */
public /*sealed*/ interface CommentOn
extends
DDLQuery
@@ -1162,6 +1186,9 @@ public final class QOM {
@NotNull CommentOn $comment(Comment comment);
}
+ /**
+ * The CREATE DATABASE statement.
+ */
public /*sealed*/ interface CreateDatabase
extends
DDLQuery
@@ -1174,6 +1201,9 @@ public final class QOM {
@NotNull CreateDatabase $ifNotExists(boolean ifNotExists);
}
+ /**
+ * The CREATE DOMAIN statement.
+ */
public /*sealed*/ interface CreateDomainCREATE INDEX statement.
+ */
public /*sealed*/ interface CreateIndex
extends
DDLQuery
@@ -1307,6 +1343,15 @@ public final class QOM {
+
+
+
+
+
+
+ /**
+ * The CREATE SCHEMA statement.
+ */
public /*sealed*/ interface CreateSchema
extends
DDLQuery
@@ -1319,6 +1364,9 @@ public final class QOM {
@NotNull CreateSchema $ifNotExists(boolean ifNotExists);
}
+ /**
+ * The CREATE SEQUENCE statement.
+ */
public /*sealed*/ interface CreateSequence
extends
DDLQuery
@@ -1349,6 +1397,9 @@ public final class QOM {
@NotNull CreateSequence $noCache(boolean noCache);
}
+ /**
+ * The DROP DATABASE statement.
+ */
public /*sealed*/ interface DropDatabase
extends
DDLQuery
@@ -1361,6 +1412,9 @@ public final class QOM {
@NotNull DropDatabase $ifExists(boolean ifExists);
}
+ /**
+ * The DROP DOMAIN statement.
+ */
public /*sealed*/ interface DropDomain
extends
DDLQuery
@@ -1390,6 +1444,12 @@ public final class QOM {
+
+
+
+ /**
+ * The DROP INDEX statement.
+ */
public /*sealed*/ interface DropIndex
extends
DDLQuery
@@ -1421,6 +1481,12 @@ public final class QOM {
+
+
+
+ /**
+ * The DROP SCHEMA statement.
+ */
public /*sealed*/ interface DropSchema
extends
DDLQuery
@@ -1435,6 +1501,9 @@ public final class QOM {
@NotNull DropSchema $cascade(Cascade cascade);
}
+ /**
+ * The DROP SEQUENCE statement.
+ */
public /*sealed*/ interface DropSequence
extends
DDLQuery
@@ -1447,6 +1516,9 @@ public final class QOM {
@NotNull DropSequence $ifExists(boolean ifExists);
}
+ /**
+ * The DROP TABLE statement.
+ */
public /*sealed*/ interface DropTable
extends
DDLQuery
@@ -1478,6 +1550,12 @@ public final class QOM {
+
+
+
+ /**
+ * The DROP VIEW statement.
+ */
public /*sealed*/ interface DropView
extends
DDLQuery
@@ -1490,6 +1568,9 @@ public final class QOM {
@NotNull DropView $ifExists(boolean ifExists);
}
+ /**
+ * The GRANT statement.
+ */
public /*sealed*/ interface Grant
extends
DDLQuery
@@ -1508,6 +1589,9 @@ public final class QOM {
@NotNull Grant $withGrantOption(boolean withGrantOption);
}
+ /**
+ * The REVOKE statement.
+ */
public /*sealed*/ interface Revoke
extends
DDLQuery
@@ -1526,6 +1610,11 @@ public final class QOM {
@NotNull Revoke $fromPublic(boolean fromPublic);
}
+ /**
+ * The SET statement.
+ *
+ * Set a vendor specific session configuration to a new value.
+ */
public /*sealed*/ interface SetCommand
extends
org.jooq.RowCountQuery
@@ -1540,6 +1629,11 @@ public final class QOM {
@NotNull SetCommand $local(boolean local);
}
+ /**
+ * The SET CATALOG statement.
+ *
+ * Set the current catalog to a new value.
+ */
public /*sealed*/ interface SetCatalog
extends
org.jooq.RowCountQuery
@@ -1550,6 +1644,11 @@ public final class QOM {
@NotNull SetCatalog $catalog(Catalog catalog);
}
+ /**
+ * The SET SCHEMA statement.
+ *
+ * Set the current schema to a new value.
+ */
public /*sealed*/ interface SetSchema
extends
org.jooq.RowCountQuery
@@ -1560,6 +1659,9 @@ public final class QOM {
@NotNull SetSchema $schema(Schema schema);
}
+ /**
+ * The
+ * The subquery must return exactly one field. This is not checked
+ * by jOOQ and will result in syntax errors in the database, if not used
+ * correctly.
+ */
public /*sealed*/ interface In
+ * The DISTINCT predicate allows for creating NULL safe comparisons where the two operands
+ * are tested for non-equality
+ */
public /*sealed*/ interface IsDistinctFrom
+ * The NOT DISTINCT predicate allows for creating NULL safe comparisons where the two
+ * operands are tested for equality
+ */
public /*sealed*/ interface IsNotDistinctFrom
+ * Create a condition to case-insensitively pattern-check this field against
+ * a value.
+ *
+ * This translates to
+ * The subquery must return exactly one field. This is not checked
+ * by jOOQ and will result in syntax errors in the database, if not used
+ * correctly.
+ *
+ * If any of the passed values is
+ * Create a condition to case-insensitively pattern-check this field against
+ * a value.
+ *
+ * This translates to
+ * Create a condition to check if this field contains XML data.
+ */
public /*sealed*/ interface IsDocument
extends
org.jooq.Condition,
@@ -1833,6 +2055,11 @@ public final class QOM {
@NotNull default Field> $field() { return $arg1(); }
}
+ /**
+ * The
+ * Create a condition to check if this field does not contain XML data.
+ */
public /*sealed*/ interface IsNotDocument
extends
org.jooq.Condition,
@@ -1843,6 +2070,11 @@ public final class QOM {
@NotNull default Field> $field() { return $arg1(); }
}
+ /**
+ * The
+ * Create a condition to check if this field contains JSON data.
+ */
public /*sealed*/ interface IsJson
extends
org.jooq.Condition,
@@ -1853,6 +2085,11 @@ public final class QOM {
@NotNull default Field> $field() { return $arg1(); }
}
+ /**
+ * The
+ * Create a condition to check if this field does not contain JSON data.
+ */
public /*sealed*/ interface IsNotJson
extends
org.jooq.Condition,
@@ -1863,6 +2100,31 @@ public final class QOM {
@NotNull default Field> $field() { return $arg1(); }
}
+ /**
+ * The
+ * Get a
+ * A rowid value describes the physical location of a row on the disk, which
+ * can be used as a replacement for a primary key in some situations -
+ * especially within a query, e.g. to self-join a table:
+ *
+ *
+ * It is not recommended to use
+ * Count the number of bits set in a number
+ */
public /*sealed*/ interface BitCount
extends
org.jooq.Field
+ * Get the smallest integer value equal or greater to a value.
+ */
public /*sealed*/ interface Ceil
+ * Turn a value in radians to degrees.
+ */
public /*sealed*/ interface Degrees
extends
org.jooq.Field
+ * The E literal (Euler number).
+ */
public /*sealed*/ interface Euler
extends
org.jooq.Field
+ * Get the biggest integer value equal or less than a value.
+ */
public /*sealed*/ interface Floor
+ * The π literal.
+ */
public /*sealed*/ interface Pi
extends
org.jooq.Field
+ * Turn a value in degrees to radians.
+ */
public /*sealed*/ interface Radians
extends
org.jooq.Field
+ * Get a random numeric value.
+ */
public /*sealed*/ interface Rand
extends
org.jooq.Field
+ * Round a numeric value to the nearest decimal precision.
+ */
public /*sealed*/ interface Round
+ * Left shift all bits in a number
+ */
public /*sealed*/ interface Shl
+ * Right shift all bits in a number
+ */
public /*sealed*/ interface Shr
+ * Get the sign of a number and return it as any of +1, 0, -1.
+ */
public /*sealed*/ interface Sign
extends
org.jooq.Field
+ * The τ literal, or π, in a better world.
+ */
public /*sealed*/ interface Tau
extends
org.jooq.Field
+ * Truncate a number to a given number of decimals.
+ */
public /*sealed*/ interface Trunc
+ * Divide a range into buckets of equal size.
+ */
public /*sealed*/ interface WidthBucket
+ * The ASCII value of a character.
+ */
public /*sealed*/ interface Ascii
extends
org.jooq.Field
+ * The length of a string in bits.
+ */
public /*sealed*/ interface BitLength
extends
org.jooq.Field
+ * The length of a string in characters.
+ */
public /*sealed*/ interface CharLength
extends
org.jooq.Field
+ * Convenience method for {@link #like(String, char)} including proper
+ * adding of wildcards and escaping.
+ *
+ * SQL:
+ * Note: This also works with numbers, for instance
+ *
+ * If you're using {@link SQLDialect#POSTGRES}, then you can use this method
+ * also to express the "ARRAY contains" operator. For example:
+ * Note, this does not correspond to the Oracle Text
+ * Convenience method for {@link #likeIgnoreCase(String, char)} including
+ * proper adding of wildcards and escaping.
+ *
+ * This translates to
+ *
+ * Convenience method for {@link #like(String, char)} including proper
+ * adding of wildcards and escaping.
+ *
+ * SQL:
+ * Note: This also works with numbers, for instance
+ *
+ * Convenience method for {@link #like(String, char)} including proper
+ * adding of wildcards and escaping.
+ *
+ * SQL:
+ * Note: This also works with numbers, for instance
+ *
+ * Get the left outermost characters from a string.
+ */
public /*sealed*/ interface Left
extends
org.jooq.Field
+ * Turn a string into lower case.
+ */
public /*sealed*/ interface Lower
extends
org.jooq.Field
+ * Left-pad a string with a character (whitespace as default) for a number of times.
+ */
public /*sealed*/ interface Lpad
extends
org.jooq.Field
+ * Trim characters (whitespace as default) from both sides of a string.
+ */
public /*sealed*/ interface Ltrim
extends
org.jooq.Field
+ * Calculate an MD5 hash from a string.
+ */
public /*sealed*/ interface Md5
extends
org.jooq.Field
+ * The length of a string in octets.
+ */
public /*sealed*/ interface OctetLength
extends
org.jooq.Field
+ * Place a string on top of another string, replacing the original contents.
+ */
public /*sealed*/ interface Overlay
extends
org.jooq.Field
+ * Search the position (1-based) of a substring in another string.
+ */
public /*sealed*/ interface Position
extends
org.jooq.Field
+ * Repeat a string a number of times.
+ */
public /*sealed*/ interface Repeat
extends
org.jooq.Field
+ * Replace all occurrences of a substring in another string.
+ */
public /*sealed*/ interface Replace
extends
org.jooq.Field
+ * Reverse a string.
+ */
public /*sealed*/ interface Reverse
extends
org.jooq.Field
+ * Get the right outermost characters from a string.
+ */
public /*sealed*/ interface Right
extends
org.jooq.Field
+ * Right-pad a string with a character (whitespace as default) for a number of times.
+ */
public /*sealed*/ interface Rpad
extends
org.jooq.Field
+ * Trim characters (whitespace as default) from both sides of a string.
+ */
public /*sealed*/ interface Rtrim
extends
org.jooq.Field
+ * Get a string of spaces of a given length.
+ */
public /*sealed*/ interface Space
extends
org.jooq.Field
+ * Split a string into tokens, and retrieve the nth token.
+ */
public /*sealed*/ interface SplitPart
extends
org.jooq.FieldTRUNCATE statement.
+ */
public /*sealed*/ interface TruncateAND operator.
+ */
public /*sealed*/ interface And
extends
CombinedCondition
@@ -1596,6 +1706,9 @@ public final class QOM {
// And
{}
+ /**
+ * The EQ operator.
+ */
public /*sealed*/ interface TableEqEQ operator.
+ */
public /*sealed*/ interface EqEXISTS function.
+ */
public /*sealed*/ interface Exists
extends
org.jooq.Condition
@@ -1621,6 +1740,9 @@ public final class QOM {
@NotNull Exists $query(Select> query);
}
+ /**
+ * The GE operator.
+ */
public /*sealed*/ interface GeGT operator.
+ */
public /*sealed*/ interface GtIN operator.
+ * IS DISTINCT FROM operator.
+ * IS NULL operator.
+ */
public /*sealed*/ interface IsNull
extends
org.jooq.Condition,
@@ -1660,6 +1801,12 @@ public final class QOM {
@NotNull default Field> $field() { return $arg1(); }
}
+ /**
+ * The IS NOT DISTINCT FROM operator.
+ * IS NOT NULL operator.
+ */
public /*sealed*/ interface IsNotNull
extends
org.jooq.Condition,
@@ -1677,6 +1827,9 @@ public final class QOM {
@NotNull default Field> $field() { return $arg1(); }
}
+ /**
+ * The LE operator.
+ */
public /*sealed*/ interface LeLIKE operator.
+ */
public /*sealed*/ interface Like
extends
Condition,
@@ -1696,6 +1852,16 @@ public final class QOM {
@Nullable default Character $escape() { return $arg3(); }
}
+ /**
+ * The LIKE IGNORE CASE operator.
+ * this not ilike value in
+ * {@link SQLDialect#POSTGRES}, or to
+ * lower(this) not like lower(value) in all other dialects.
+ */
public /*sealed*/ interface LikeIgnoreCase
extends
Condition,
@@ -1708,6 +1874,9 @@ public final class QOM {
@Nullable default Character $escape() { return $arg3(); }
}
+ /**
+ * The LT operator.
+ */
public /*sealed*/ interface LtNE operator.
+ */
public /*sealed*/ interface TableNeNE operator.
+ */
public /*sealed*/ interface NeNOT operator.
+ */
public /*sealed*/ interface Not
extends
org.jooq.Condition,
@@ -1740,6 +1918,9 @@ public final class QOM {
@NotNull default Condition $condition() { return $arg1(); }
}
+ /**
+ * The NOT operator.
+ */
public /*sealed*/ interface NotField
extends
org.jooq.FieldNOT IN operator.
+ * NULL, then the
+ * condition will be NULL (or false, depending on
+ * the dialect) as well. This is standard SQL behaviour.
+ */
public /*sealed*/ interface NotInNOT LIKE operator.
+ */
public /*sealed*/ interface NotLike
extends
Condition,
@@ -1770,6 +1965,16 @@ public final class QOM {
@Nullable default Character $escape() { return $arg3(); }
}
+ /**
+ * The NOT LIKE IGNORE CASE operator.
+ * this not ilike value in
+ * {@link SQLDialect#POSTGRES}, or to
+ * lower(this) not like lower(value) in all other dialects.
+ */
public /*sealed*/ interface NotLikeIgnoreCase
extends
Condition,
@@ -1782,6 +1987,9 @@ public final class QOM {
@Nullable default Character $escape() { return $arg3(); }
}
+ /**
+ * The NOT SIMILAR TO operator.
+ */
public /*sealed*/ interface NotSimilarTo
extends
Condition,
@@ -1794,6 +2002,9 @@ public final class QOM {
@Nullable default Character $escape() { return $arg3(); }
}
+ /**
+ * The OR operator.
+ */
public /*sealed*/ interface Or
extends
CombinedCondition
@@ -1801,6 +2012,9 @@ public final class QOM {
// Or
{}
+ /**
+ * The SIMILAR TO operator.
+ */
public /*sealed*/ interface SimilarTo
extends
Condition,
@@ -1813,6 +2027,9 @@ public final class QOM {
@Nullable default Character $escape() { return $arg3(); }
}
+ /**
+ * The UNIQUE function.
+ */
public /*sealed*/ interface Unique
extends
org.jooq.Condition
@@ -1823,6 +2040,11 @@ public final class QOM {
@NotNull Unique $query(Select> query);
}
+ /**
+ * The IS DOCUMENT operator.
+ * IS NOT DOCUMENT operator.
+ * IS JSON operator.
+ * IS NOT JSON operator.
+ * ROWID operator.
+ * table.rowid reference from this table.
+ *
+ *
+ * -- Emulating this MySQL statement...
+ * DELETE FROM x ORDER BY x.y LIMIT 1
+ *
+ * -- ... in other databases
+ * DELETE FROM x
+ * WHERE x.rowid IN (
+ * SELECT x.rowid FROM x ORDER BY x.a LIMIT 1
+ * )
+ *
rowid values in client
+ * applications as actual row identifiers as the database system may move a
+ * row to a different physical location at any time, thus changing the rowid
+ * value. In general, use primary keys, instead.
+ */
public /*sealed*/ interface QualifiedRowid
extends
org.jooq.FieldABS function.
+ */
public /*sealed*/ interface AbsACOS function.
+ */
public /*sealed*/ interface Acos
extends
org.jooq.FieldADD operator.
+ */
public /*sealed*/ interface AddASIN function.
+ */
public /*sealed*/ interface Asin
extends
org.jooq.FieldATAN function.
+ */
public /*sealed*/ interface Atan
extends
org.jooq.FieldATAN2 function.
+ */
public /*sealed*/ interface Atan2
extends
org.jooq.FieldBIT AND operator.
+ */
public /*sealed*/ interface BitAndBIT COUNT function.
+ * BIT NAND operator.
+ */
public /*sealed*/ interface BitNandBIT NOR operator.
+ */
public /*sealed*/ interface BitNorBIT NOT operator.
+ */
public /*sealed*/ interface BitNotBIT OR operator.
+ */
public /*sealed*/ interface BitOrBIT X NOR operator.
+ */
public /*sealed*/ interface BitXNorBIT XOR operator.
+ */
public /*sealed*/ interface BitXorCEIL function.
+ * COS function.
+ */
public /*sealed*/ interface Cos
extends
org.jooq.FieldCOSH function.
+ */
public /*sealed*/ interface Cosh
extends
org.jooq.FieldCOT function.
+ */
public /*sealed*/ interface Cot
extends
org.jooq.FieldCOTH function.
+ */
public /*sealed*/ interface Coth
extends
org.jooq.FieldDEGREES function.
+ * DIV operator.
+ */
public /*sealed*/ interface DivE function.
+ * EXP function.
+ */
public /*sealed*/ interface Exp
extends
org.jooq.FieldFLOOR function.
+ * LN function.
+ */
public /*sealed*/ interface Log
extends
org.jooq.FieldLOG10 function.
+ */
public /*sealed*/ interface Log10
extends
org.jooq.FieldMOD operator.
+ */
public /*sealed*/ interface ModMUL operator.
+ */
public /*sealed*/ interface MulPI function.
+ * POWER operator.
+ */
public /*sealed*/ interface Power
extends
org.jooq.FieldRADIANS function.
+ * RAND function.
+ * ROUND function.
+ * SHL operator.
+ * SHR operator.
+ * SIGN function.
+ * SIN function.
+ */
public /*sealed*/ interface Sin
extends
org.jooq.FieldSINH function.
+ */
public /*sealed*/ interface Sinh
extends
org.jooq.FieldSQRT function.
+ */
public /*sealed*/ interface Sqrt
extends
org.jooq.FieldSQUARE function.
+ */
public /*sealed*/ interface SquareSUB operator.
+ */
public /*sealed*/ interface SubTAN function.
+ */
public /*sealed*/ interface Tan
extends
org.jooq.FieldTANH function.
+ */
public /*sealed*/ interface Tanh
extends
org.jooq.FieldTAU function.
+ * TRUNC function.
+ * WIDTH BUCKET function.
+ * ASCII function.
+ * BIT LENGTH function.
+ * CHAR LENGTH function.
+ * CHR function.
+ */
public /*sealed*/ interface Chr
extends
org.jooq.FieldCONTAINS operator.
+ * this like ('%' || escape(value, '\') || '%') escape '\'
+ * val(1133).contains(13)
+ *
+ *
+ * // Use this expression
+ * val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 })
+ *
+ * // ... to render this SQL
+ * ARRAY[1, 2, 3] @> ARRAY[1, 2]
+ * CONTAINS()
+ * function. Refer to {@link OracleDSL#contains(Field, String)} instead.
+ */
public /*sealed*/ interface ContainsCONTAINS IGNORE CASE operator.
+ * this ilike ('%' || escape(value, '\') || '%') escape '\' in
+ * {@link SQLDialect#POSTGRES}, or to
+ * lower(this) not like lower(('%' || escape(value, '\') || '%') escape '\')
+ * in all other dialects.
+ */
public /*sealed*/ interface ContainsIgnoreCaseDIGITS function.
+ */
public /*sealed*/ interface Digits
extends
org.jooq.FieldENDS WITH operator.
+ * this like ('%' || escape(value, '\')) escape '\'
+ * val(1133).endsWith(33)
+ */
public /*sealed*/ interface EndsWithENDS WITH IGNORE CASE operator.
+ * lower(this) like ('%' || lower(escape(value, '\'))) escape '\'
+ * val(1133).endsWithIgnoreCase(33)
+ */
public /*sealed*/ interface EndsWithIgnoreCaseLEFT function.
+ * LOWER function.
+ * LPAD function.
+ * LTRIM function.
+ * MD5 function.
+ * OCTET LENGTH function.
+ * OVERLAY function.
+ * POSITION function.
+ * REPEAT function.
+ * REPLACE function.
+ * REVERSE function.
+ * RIGHT function.
+ * RPAD function.
+ * RTRIM function.
+ * SPACE function.
+ * SPLIT PART function.
+ *