![]() |
Qore jni Module 2.4.0
|
Functions | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.make_cop (String cop, Object column, Object arg) throws Throwable |
| returns a ColumnOperatorInfo hash | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.make_cop (String cop, Object column) throws Throwable |
| returns a ColumnOperatorInfo hash | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_as (Object column, String arg) throws Throwable |
returns a ColumnOperatorInfo hash for the "as" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_cast (Object column, String arg, Object arg1, Object arg2) throws Throwable |
returns a ColumnOperatorInfo hash for the "cast" operator with the given argument(s) | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_cast (Object column, String arg, Object arg1) throws Throwable |
returns a ColumnOperatorInfo hash for the "cast" operator with the given argument(s) | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_cast (Object column, String arg) throws Throwable |
returns a ColumnOperatorInfo hash for the "cast" operator with the given argument(s) | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_prepend (Object column, String arg) throws Throwable |
returns a ColumnOperatorInfo hash for the "prepend" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_append (Object column, String arg) throws Throwable |
returns a ColumnOperatorInfo hash for the "append" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_value (Object arg) throws Throwable |
returns a ColumnOperatorInfo hash for the "value" (literal) operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_upper (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "upper" operator with the given argument; returns a column value in upper case | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_lower (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "lower" operator with the given argument; returns a column value in lower case | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_distinct (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "distinct" operator with the given argument; returns distinct column values | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_min (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "min" operator; returns minimum column values | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_max (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "max" operator; returns maximum column values | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_avg (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "avg" operator; returns average column values | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_sum (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "sum" operator; returns the total sum of a numeric column. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_count (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "count" operator; returns row counts | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_count () throws Throwable |
returns a ColumnOperatorInfo hash for the "count" operator; returns row counts | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_over (Object column, String partitionby, String orderby) throws Throwable |
returns a ColumnOperatorInfo hash for the "over" clause | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_over (Object column, String partitionby) throws Throwable |
returns a ColumnOperatorInfo hash for the "over" clause | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_over (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "over" clause | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_minus (Object column1, Object column2) throws Throwable |
returns a ColumnOperatorInfo hash for the "-" operator with the given arguments | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_plus (Object column1, Object column2) throws Throwable |
returns a ColumnOperatorInfo hash for the "+" operator with the given arguments | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_divide (Object column1, Object column2) throws Throwable |
returns a ColumnOperatorInfo hash for the "/" operator with the given arguments | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_multiply (Object column1, Object column2) throws Throwable |
returns a ColumnOperatorInfo hash for the "*" operator with the given arguments | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_year (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "year" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_year_month (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "year_month" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_year_day (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "year_day" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_year_hour (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "year_hour" operator with the given argument | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_seq (String seq, String as) throws Throwable |
returns a ColumnOperatorInfo hash for the "seq" operator with the given argument giving the sequence name whose value should be returned | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_seq (String seq) throws Throwable |
returns a ColumnOperatorInfo hash for the "seq" operator with the given argument giving the sequence name whose value should be returned | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_seq_currval (String seq, String as) throws Throwable |
returns a ColumnOperatorInfo hash for the "seq_currval" operator with the given argument giving the sequence name whose current value should be returned | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_seq_currval (String seq) throws Throwable |
returns a ColumnOperatorInfo hash for the "seq_currval" operator with the given argument giving the sequence name whose current value should be returned | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_coalesce (Object col1, Object col2) throws Throwable |
returns a ColumnOperatorInfo hash for the "coalesce" operator with the given column arguments; the first non-NULL column value will be returned | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_coalesce (Object col1, Object col2, Object... args) throws Throwable |
returns a ColumnOperatorInfo hash for the "coalesce" operator with the given column arguments; the first non-NULL column value will be returned | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_substr (Object column, int start, int count) throws Throwable |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_substr (Object column, long start, long count) throws Throwable |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_substr (Object column, int start) throws Throwable |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_substr (Object column, long start) throws Throwable |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_length (Object column) throws Throwable |
returns a ColumnOperatorInfo hash for the "len" operator with the given argument; returns the length of the given text field | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_trunc_date (Object column, String mask) throws Throwable |
| Truncates a date column or value regarding the given mask. The resulting value remains Qore::date (no conversion to eg. string). | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_cume_dist () throws Throwable |
| Analytic/window method: relative rank of the current row. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_dense_rank () throws Throwable |
| Analytic/window method: rank of the current row without gaps. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_first_value (Object column) throws Throwable |
| Analytic/window method: value evaluated at the row that is the first row of the window frame. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_last_value (Object column) throws Throwable |
| Analytic/window method: value evaluated at the row that is the last row of the window frame. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_ntile (int value) throws Throwable |
| Analytic/window method: integer ranging from 1 to the argument value, dividing the partition as equally as possible. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_ntile (long value) throws Throwable |
| Analytic/window method: integer ranging from 1 to the argument value, dividing the partition as equally as possible. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_percent_rank () throws Throwable |
| Analytic/window method: relative rank of the current row. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_rank () throws Throwable |
| Analytic/window method: rank of the current row with gaps. | |
| static HashMap< String, Object > | org.qore.lang.sqlutil.AbstractTable.cop_row_number () throws Throwable |
| Analytic/window method: number of the current row within its partition, counting from 1. | |
These are static methods that can be used in the "columns" argument for select statements:
DISTINCT to the column name"over" operator for windowing methodsColumn operator methods can be nested as in the following example:
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "append" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) |
| arg | the text to append (ie concatenate) to the row values in the output column |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "as" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) or any other column "cop_..." method |
| arg | the new name of the output column |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "avg" operator; returns average column values
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "cast" operator with the given argument(s)
| column | the column specification for the column (String name or dot notation for use in joins) or any other column "cop_..." method |
| arg | the new datatype to cast the column value(s) to |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "cast" operator with the given argument(s)
| column | the column specification for the column (String name or dot notation for use in joins) or any other column "cop_..." method |
| arg | the new datatype to cast the column value(s) to |
| arg1 | optional, type dependent, specification (e.g. size or precision) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "cast" operator with the given argument(s)
| column | the column specification for the column (String name or dot notation for use in joins) or any other column "cop_..." method |
| arg | the new datatype to cast the column value(s) to |
| arg1 | optional, type dependent, specification (e.g. size or precision) |
| arg2 | optional, type dependent, specification (e.g. scale) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "coalesce" operator with the given column arguments; the first non-NULL column value will be returned
| col1 | the name or column operator hash for the first value |
| col2 | the name or column operator hash for the second value, additional values should follow this argument |
| COALESCE-ERROR | the arguments must be either string column designators or column operator hashes |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "coalesce" operator with the given column arguments; the first non-NULL column value will be returned
| col1 | the name or column operator hash for the first value |
| col2 | the name or column operator hash for the second value, additional values should follow this argument |
| args | other column names or column operator hashes for subsequent values |
| COALESCE-ERROR | the arguments must be either string column designators or column operator hashes |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "count" operator; returns row counts
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "count" operator; returns row counts
|
inlinestatic |
Analytic/window method: relative rank of the current row.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
Analytic/window method: rank of the current row without gaps.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "distinct" operator with the given argument; returns distinct column values
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "/" operator with the given arguments
| column1 | the column specification for the first argument (String name or dot notation for use in joins) |
| column2 | the column specification for the second argument (String name or dot notation for use in joins) |
|
inlinestatic |
Analytic/window method: value evaluated at the row that is the first row of the window frame.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
Analytic/window method: value evaluated at the row that is the last row of the window frame.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "len" operator with the given argument; returns the length of the given text field
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "lower" operator with the given argument; returns a column value in lower case
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "max" operator; returns maximum column values
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "min" operator; returns minimum column values
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "-" operator with the given arguments
| column1 | the column specification for the first argument (String name or dot notation for use in joins) |
| column2 | the column specification for the second argument (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "*" operator with the given arguments
| column1 | the column specification for the first argument (String name or dot notation for use in joins) |
| column2 | the column specification for the second argument (String name or dot notation for use in joins) |
|
inlinestatic |
Analytic/window method: integer ranging from 1 to the argument value, dividing the partition as equally as possible.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
| value | an integer value used as count of sp;it buckets |
|
inlinestatic |
Analytic/window method: integer ranging from 1 to the argument value, dividing the partition as equally as possible.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
| value | an integer value used as count of sp;it buckets |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "over" clause
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "over" clause
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "over" clause
|
inlinestatic |
Analytic/window method: relative rank of the current row.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "+" operator with the given arguments
| column1 | the column specification for the first argument (String name or dot notation for use in joins) |
| column2 | the column specification for the second argument (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "prepend" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) |
| arg | the text to prepend to the row values in the output column |
|
inlinestatic |
Analytic/window method: rank of the current row with gaps.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
Analytic/window method: number of the current row within its partition, counting from 1.
Analytic/window method. Must be used with cop_over() with partitionby and orderby arguments
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "seq" operator with the given argument giving the sequence name whose value should be returned
| seq | the name of the sequence whose value should be returned |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "seq" operator with the given argument giving the sequence name whose value should be returned
| seq | the name of the sequence whose value should be returned |
| as | an optional column name that should be returned for the sequence value (so that cop_as() need not be used) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "seq_currval" operator with the given argument giving the sequence name whose current value should be returned
| seq | the name of the sequence whose current value should be returned |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "seq_currval" operator with the given argument giving the sequence name whose current value should be returned
| seq | the name of the sequence whose current value should be returned |
| as | an optional column name that should be returned for the sequence value (so that cop_as() need not be used) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value
| column | the column specification for the column (String name or dot notation for use in joins) |
| start | position where the substring starts |
| count | length of the substring in characters |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value
| column | the column specification for the column (String name or dot notation for use in joins) |
| start | position where the substring starts |
| count | length of the substring in characters |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value
| column | the column specification for the column (String name or dot notation for use in joins) |
| start | position where the substring starts |
| count | length of the substring in characters |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value
| column | the column specification for the column (String name or dot notation for use in joins) |
| start | position where the substring starts |
| count | length of the substring in characters |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "sum" operator; returns the total sum of a numeric column.
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
Truncates a date column or value regarding the given mask. The resulting value remains Qore::date (no conversion to eg. string).
| column | the column specification for the column (String name or dot notation for use in joins) |
| mask | the string with one of specified values rederenced in sql_cop_trunc_date_enum |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "upper" operator with the given argument; returns a column value in upper case
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "value" (literal) operator with the given argument
| arg | the value to be returned in the column |
SQL literals can be useful in some cases - as dummy values for select statements where there is exact columns required, unions, expected values for arc.insertFromIterator(src.getStatement(sh)) "insert as select", etc.
The term literal refers to a fixed data value. For example, 123, 'foobar' etc.
Mapping of Qore values to literals:
|!Java Type|!SQL Type|!Qore Example|!SQL interpretation |int|NUMBER as it is|123|123 |float|NUMBER as it is|12.3|12.3 |java.math.BigDecimal|NUMBER as it is|1.2n|1.2 |java.time.ZonedDateTime|String representation of the date using DB native implementation like TO_TIMESTAMP for Oracle.|now()|to_timestamp('20150421104825000000', 'YYYYMMDDHH24MISSFF6') |boolean|Internal representation of the bool value using DB native implementation|True| and escaped string literal. No additional literal methods like Oracle's nq{foobar} are supported now|1 |String|Standard"foo bar"|'foo bar' |null|Direct null literal|NULL| null
The most useful cop_value() usage is with cooperation of cop_as() which allows human readable column name aliases.
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "year" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "year_day" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "year_hour" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash for the "year_month" operator with the given argument
| column | the column specification for the column (String name or dot notation for use in joins) |
|
inlinestatic |
returns a ColumnOperatorInfo hash
| cop | the column operator (one of sql_cops) |
| column | the column name |
|
inlinestatic |
returns a ColumnOperatorInfo hash
| cop | the column operator (one of sql_cops) |
| column | the column name |
| arg | the argument to the operator |