public class SQLTemplates extends Templates
Modifier and Type | Class and Description |
---|---|
static class |
SQLTemplates.Builder |
Modifier and Type | Field and Description |
---|---|
static Operator<java.lang.Object> |
CAST |
static SQLTemplates |
DEFAULT |
static Operator<java.lang.Long> |
DENSERANK |
static Operator<java.lang.Object> |
FIRSTVALUE |
static Operator<java.lang.Object> |
LAG |
static Operator<java.lang.Object> |
LASTVALUE |
static Operator<java.lang.Object> |
LEAD |
static Operator<java.lang.Object> |
NEXTVAL |
static Operator<java.lang.Long> |
RANK |
static Operator<java.lang.Long> |
ROWNUMBER |
static Operator<java.lang.Object> |
UNION |
static Operator<java.lang.Object> |
UNION_ALL |
Modifier | Constructor and Description |
---|---|
protected |
SQLTemplates(java.lang.String quoteStr,
char escape,
boolean useQuotes) |
Modifier and Type | Method and Description |
---|---|
protected void |
addClass2TypeMappings(java.lang.String type,
java.lang.Class<?>... classes) |
java.lang.String |
getAsc() |
java.lang.String |
getAutoIncrement() |
java.lang.String |
getColumnAlias() |
java.lang.String |
getCount() |
java.lang.String |
getCountStar() |
java.lang.String |
getCreateIndex() |
java.lang.String |
getCreateTable() |
java.lang.String |
getCreateUniqueIndex() |
java.lang.String |
getDeleteFrom() |
java.lang.String |
getDesc() |
java.lang.String |
getDistinctCountEnd() |
java.lang.String |
getDistinctCountStart() |
java.lang.String |
getDummyTable() |
java.lang.String |
getForShare() |
java.lang.String |
getForUpdate() |
java.lang.String |
getFrom() |
java.lang.String |
getFullJoin() |
java.lang.String |
getGroupBy() |
java.lang.String |
getHaving() |
java.lang.String |
getInnerJoin() |
java.lang.String |
getInsertInto() |
java.lang.String |
getJoin() |
java.lang.String |
getJoinSymbol(JoinType joinType) |
java.lang.String |
getKey() |
java.lang.String |
getLeftJoin() |
java.lang.String |
getLimitTemplate() |
java.lang.String |
getMergeInto() |
java.lang.String |
getNotNull() |
java.lang.String |
getNoWait() |
java.lang.String |
getNullsFirst() |
java.lang.String |
getNullsLast() |
java.lang.String |
getOffsetTemplate() |
java.lang.String |
getOn() |
java.lang.String |
getOrderBy() |
java.lang.String |
getRightJoin() |
java.lang.String |
getSelect() |
java.lang.String |
getSelectDistinct() |
java.lang.String |
getSet() |
java.lang.String |
getTableAlias() |
java.lang.String |
getTypeForCast(java.lang.Class<?> cl) |
java.lang.String |
getTypeForClass(java.lang.Class<?> cl) |
java.lang.String |
getUpdate() |
java.lang.String |
getValues() |
java.lang.String |
getWhere() |
java.lang.String |
getWith() |
boolean |
isBatchCountViaGetUpdateCount() |
boolean |
isBigDecimalSupported() |
boolean |
isFunctionJoinsWrapped() |
boolean |
isNativeMerge() |
boolean |
isParameterMetadataAvailable() |
boolean |
isPrintSchema() |
boolean |
isSupportsAlias() |
boolean |
isUnionsWrapped() |
boolean |
isUseQuotes() |
protected void |
newLineToSingleSpace() |
java.lang.String |
quoteIdentifier(java.lang.String identifier) |
protected boolean |
requiresQuotes(java.lang.String identifier) |
void |
serialize(QueryMetadata metadata,
boolean forCountRow,
SQLSerializer context) |
protected void |
serializeModifiers(QueryMetadata metadata,
SQLSerializer context) |
protected void |
setAsc(java.lang.String asc) |
protected void |
setAutoIncrement(java.lang.String autoIncrement) |
protected void |
setBatchCountViaGetUpdateCount(boolean batchCountViaGetUpdateCount) |
protected void |
setBigDecimalSupported(boolean bigDecimalSupported) |
protected void |
setColumnAlias(java.lang.String columnAlias) |
protected void |
setCount(java.lang.String count) |
protected void |
setCountStar(java.lang.String countStar) |
protected void |
setCreateIndex(java.lang.String createIndex) |
protected void |
setCreateTable(java.lang.String createTable) |
protected void |
setCreateUniqueIndex(java.lang.String createUniqueIndex) |
protected void |
setDeleteFrom(java.lang.String deleteFrom) |
protected void |
setDesc(java.lang.String desc) |
protected void |
setDistinctCountEnd(java.lang.String distinctCountEnd) |
protected void |
setDistinctCountStart(java.lang.String distinctCountStart) |
protected void |
setDummyTable(java.lang.String dummyTable) |
protected void |
setForShare(java.lang.String forShare) |
protected void |
setForUpdate(java.lang.String forUpdate) |
protected void |
setFrom(java.lang.String from) |
protected void |
setFullJoin(java.lang.String fullJoin) |
protected void |
setFunctionJoinsWrapped(boolean functionJoinsWrapped) |
protected void |
setGroupBy(java.lang.String groupBy) |
protected void |
setHaving(java.lang.String having) |
protected void |
setInnerJoin(java.lang.String innerJoin) |
protected void |
setInsertInto(java.lang.String insertInto) |
protected void |
setJoin(java.lang.String join) |
protected void |
setKey(java.lang.String key) |
protected void |
setLeftJoin(java.lang.String leftJoin) |
protected void |
setMergeInto(java.lang.String mergeInto) |
protected void |
setNativeMerge(boolean nativeMerge) |
protected void |
setNotNull(java.lang.String notNull) |
protected void |
setNoWait(java.lang.String noWait) |
protected void |
setNullsFirst(java.lang.String nullsFirst) |
protected void |
setNullsLast(java.lang.String nullsLast) |
protected void |
setOffsetTemplate(java.lang.String offsetTemplate) |
protected void |
setOn(java.lang.String on) |
protected void |
setOrderBy(java.lang.String orderBy) |
protected void |
setParameterMetadataAvailable(boolean parameterMetadataAvailable) |
protected void |
setPrintSchema(boolean printSchema) |
protected void |
setRightJoin(java.lang.String rightJoin) |
protected void |
setSelect(java.lang.String select) |
protected void |
setSelectDistinct(java.lang.String selectDistinct) |
protected void |
setSet(java.lang.String set) |
protected void |
setTableAlias(java.lang.String tableAlias) |
protected void |
setUnionsWrapped(boolean unionsWrapped) |
protected void |
setUpdate(java.lang.String update) |
protected void |
setValues(java.lang.String values) |
protected void |
setWhere(java.lang.String where) |
protected void |
setWith(java.lang.String with) |
add, add, getEscapeChar, getPrecedence, getTemplate
public static final Operator<java.lang.Object> CAST
public static final Operator<java.lang.Object> UNION
public static final Operator<java.lang.Object> UNION_ALL
public static final Operator<java.lang.Object> NEXTVAL
public static final Operator<java.lang.Long> ROWNUMBER
public static final Operator<java.lang.Long> RANK
public static final Operator<java.lang.Long> DENSERANK
public static final Operator<java.lang.Object> FIRSTVALUE
public static final Operator<java.lang.Object> LASTVALUE
public static final Operator<java.lang.Object> LEAD
public static final Operator<java.lang.Object> LAG
public static final SQLTemplates DEFAULT
protected SQLTemplates(java.lang.String quoteStr, char escape, boolean useQuotes)
protected void addClass2TypeMappings(java.lang.String type, java.lang.Class<?>... classes)
public final java.lang.String getAsc()
public final java.lang.String getAutoIncrement()
public final java.lang.String getColumnAlias()
public final java.lang.String getCount()
public final java.lang.String getCountStar()
public final java.lang.String getDeleteFrom()
public final java.lang.String getDesc()
public final java.lang.String getDistinctCountEnd()
public final java.lang.String getDistinctCountStart()
public final java.lang.String getDummyTable()
public final java.lang.String getFrom()
public final java.lang.String getFullJoin()
public final java.lang.String getGroupBy()
public final java.lang.String getHaving()
public final java.lang.String getInnerJoin()
public final java.lang.String getInsertInto()
public final java.lang.String getJoin()
public final java.lang.String getJoinSymbol(JoinType joinType)
public final java.lang.String getKey()
public final java.lang.String getLeftJoin()
public final java.lang.String getRightJoin()
public final java.lang.String getLimitTemplate()
public final java.lang.String getMergeInto()
public final java.lang.String getNotNull()
public final java.lang.String getOffsetTemplate()
public final java.lang.String getOn()
public final java.lang.String getOrderBy()
public final java.lang.String getSelect()
public final java.lang.String getSelectDistinct()
public final java.lang.String getSet()
public final java.lang.String getTableAlias()
public java.lang.String getTypeForCast(java.lang.Class<?> cl)
public java.lang.String getTypeForClass(java.lang.Class<?> cl)
public final java.lang.String getUpdate()
public final java.lang.String getValues()
public final java.lang.String getWhere()
public final boolean isNativeMerge()
public final boolean isSupportsAlias()
public final java.lang.String getCreateIndex()
public final java.lang.String getCreateUniqueIndex()
public final java.lang.String getCreateTable()
public final boolean isPrintSchema()
public final java.lang.String getWith()
public final boolean isParameterMetadataAvailable()
public final boolean isBatchCountViaGetUpdateCount()
public final boolean isBigDecimalSupported()
public final java.lang.String getForUpdate()
public final java.lang.String getForShare()
public final boolean isUseQuotes()
public final java.lang.String getNoWait()
public final boolean isUnionsWrapped()
public final boolean isFunctionJoinsWrapped()
public final java.lang.String getNullsFirst()
public final java.lang.String getNullsLast()
protected void newLineToSingleSpace()
public final java.lang.String quoteIdentifier(java.lang.String identifier)
protected boolean requiresQuotes(java.lang.String identifier)
public void serialize(QueryMetadata metadata, boolean forCountRow, SQLSerializer context)
protected void serializeModifiers(QueryMetadata metadata, SQLSerializer context)
protected void setAsc(java.lang.String asc)
protected void setAutoIncrement(java.lang.String autoIncrement)
protected void setColumnAlias(java.lang.String columnAlias)
protected void setCount(java.lang.String count)
protected void setCountStar(java.lang.String countStar)
protected void setDeleteFrom(java.lang.String deleteFrom)
protected void setDesc(java.lang.String desc)
protected void setDistinctCountEnd(java.lang.String distinctCountEnd)
protected void setDistinctCountStart(java.lang.String distinctCountStart)
protected void setDummyTable(java.lang.String dummyTable)
protected void setFrom(java.lang.String from)
protected void setFullJoin(java.lang.String fullJoin)
protected void setGroupBy(java.lang.String groupBy)
protected void setHaving(java.lang.String having)
protected void setInnerJoin(java.lang.String innerJoin)
protected void setInsertInto(java.lang.String insertInto)
protected void setJoin(java.lang.String join)
protected void setKey(java.lang.String key)
protected void setLeftJoin(java.lang.String leftJoin)
protected void setRightJoin(java.lang.String rightJoin)
protected void setMergeInto(java.lang.String mergeInto)
protected void setNativeMerge(boolean nativeMerge)
protected void setNotNull(java.lang.String notNull)
protected void setOffsetTemplate(java.lang.String offsetTemplate)
protected void setOn(java.lang.String on)
protected void setOrderBy(java.lang.String orderBy)
protected void setSelect(java.lang.String select)
protected void setSelectDistinct(java.lang.String selectDistinct)
protected void setSet(java.lang.String set)
protected void setTableAlias(java.lang.String tableAlias)
protected void setUpdate(java.lang.String update)
protected void setValues(java.lang.String values)
protected void setWhere(java.lang.String where)
protected void setWith(java.lang.String with)
protected void setCreateIndex(java.lang.String createIndex)
protected void setCreateUniqueIndex(java.lang.String createUniqueIndex)
protected void setCreateTable(java.lang.String createTable)
protected void setPrintSchema(boolean printSchema)
protected void setParameterMetadataAvailable(boolean parameterMetadataAvailable)
protected void setBatchCountViaGetUpdateCount(boolean batchCountViaGetUpdateCount)
protected void setBigDecimalSupported(boolean bigDecimalSupported)
protected void setForUpdate(java.lang.String forUpdate)
protected void setForShare(java.lang.String forShare)
protected void setNoWait(java.lang.String noWait)
protected void setUnionsWrapped(boolean unionsWrapped)
protected void setFunctionJoinsWrapped(boolean functionJoinsWrapped)
protected void setNullsFirst(java.lang.String nullsFirst)
protected void setNullsLast(java.lang.String nullsLast)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.