| Modifier and Type | Method and Description |
|---|---|
static void |
appendCondition(StringBuilder sb,
Criteria criteria,
String condition)
Append a condition clause to the
StringBuilder using either a
Criteria object or a raw CCL string. |
static void |
appendOrder(StringBuilder sb,
Order order)
|
static void |
appendPage(StringBuilder sb,
Page page)
Append a
page clause to the StringBuilder, if the
page is not null and specifies meaningful pagination. |
static void |
appendRange(StringBuilder sb,
Timestamp start,
Timestamp end)
Append a timestamp range clause to the
StringBuilder. |
static void |
appendTimestamp(StringBuilder sb,
Timestamp timestamp)
|
static void |
appendWhereClause(StringBuilder sb,
Criteria criteria,
String condition)
Append a
where clause to the StringBuilder. |
static List<String> |
collectKeys(String first,
String... more)
Collect a primary key and additional varargs keys into a single list.
|
static List<Long> |
collectRecords(long first,
long... more)
Collect a primary value and additional varargs values into a single list.
|
static String |
keys(List<String> keys)
Render a list of keys as a CCL fragment.
|
static String |
records(List<Long> records)
Render a list of record identifiers as a CCL fragment.
|
static String |
value(Object value)
Render a value as a CCL fragment.
|
static String |
values(List<Object> values)
Render a list of values as a CCL fragment, enclosed in brackets.
|
public static String keys(List<String> keys)
keys - the keys to renderpublic static String records(List<Long> records)
records - the records to renderpublic static String value(Object value)
value - the value to renderpublic static String values(List<Object> values)
values - the values to renderpublic static void appendCondition(StringBuilder sb, @Nullable Criteria criteria, @Nullable String condition)
StringBuilder using either a
Criteria object or a raw CCL string.sb - the builder to append tocriteria - the Criteria, or nullcondition - the raw CCL string, or nullpublic static void appendWhereClause(StringBuilder sb, @Nullable Criteria criteria, @Nullable String condition)
where clause to the StringBuilder.sb - the builder to append tocriteria - the Criteria, or nullcondition - the raw CCL string, or nullpublic static void appendTimestamp(StringBuilder sb, @Nullable Timestamp timestamp)
sb - the builder to append totimestamp - the Timestamp, or nullpublic static void appendRange(StringBuilder sb, Timestamp start, Timestamp end)
StringBuilder.public static void appendOrder(StringBuilder sb, @Nullable Order order)
sb - the builder to append toorder - the Order, or nullpublic static void appendPage(StringBuilder sb, @Nullable Page page)
page clause to the StringBuilder, if the
page is not null and specifies meaningful pagination.sb - the builder to append topage - the Page, or nullpublic static List<Long> collectRecords(long first, long... more)
first - the first valuemore - additional values