public class SQLBuilderBase.OrderByBuilderBase extends SQLBuilderBase.AbstractStatementPart implements SQLBuilder.OrderByBuilder
Modifier and Type | Field and Description |
---|---|
protected boolean |
ascending |
protected java.lang.String |
custom |
protected int |
nullsMode |
protected ExpressionBuilder.Value |
value |
properties
MODE_NULLS_FIRST, MODE_NULLS_LAST, MODE_NULLS_NOT_SPECIFIED
Constructor and Description |
---|
OrderByBuilderBase() |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionBuilder.Visitor visitor,
ExpressionBuilder.VisitorFilter filter) |
SQLBuilder.OrderByBuilder |
ascending() |
SQLBuilder.OrderByBuilder |
ascending(boolean asc) |
SQLBuilderBase.OrderByBuilderBase |
clone()
Creates a copy of the object.
|
SQLBuilder.OrderByBuilder |
column(java.lang.String name) |
SQLBuilder.OrderByBuilder |
custom(java.lang.String order) |
SQLBuilder.OrderByBuilder |
descending() |
int |
getNullsMode() |
boolean |
isColumn(ExpressionBuilder.Value value) |
boolean |
isColumn(java.lang.String name) |
SQLBuilder.OrderByBuilder |
nulls(int mode) |
void |
replace(ExpressionBuilder.Value target,
ExpressionBuilder.Value replacement) |
java.lang.String |
toString() |
java.lang.String |
toString(Formatter<ExpressionBuilder.Value> formatter) |
SQLBuilder.OrderByBuilder |
value(ExpressionBuilder.Value expression) |
copyPropertiesFrom, getProperties, getProperty, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copyPropertiesFrom
getProperties, getProperty, setProperty
cloneQuietly, cloneQuietly
protected ExpressionBuilder.Value value
protected java.lang.String custom
protected boolean ascending
protected int nullsMode
public SQLBuilderBase.OrderByBuilderBase clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface ExpressionBuilder.Value
clone
in class ExpressionBuilder.AbstractValue
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public void accept(ExpressionBuilder.Visitor visitor, ExpressionBuilder.VisitorFilter filter)
accept
in interface ExpressionBuilder.Visitable
accept
in class ExpressionBuilder.AbstractValue
public SQLBuilder.OrderByBuilder column(java.lang.String name)
column
in interface SQLBuilder.OrderByBuilder
public boolean isColumn(java.lang.String name)
isColumn
in interface SQLBuilder.OrderByBuilder
public boolean isColumn(ExpressionBuilder.Value value)
isColumn
in interface SQLBuilder.OrderByBuilder
public SQLBuilder.OrderByBuilder value(ExpressionBuilder.Value expression)
value
in interface SQLBuilder.OrderByBuilder
public SQLBuilder.OrderByBuilder custom(java.lang.String order)
custom
in interface SQLBuilder.OrderByBuilder
public SQLBuilder.OrderByBuilder ascending()
ascending
in interface SQLBuilder.OrderByBuilder
public SQLBuilder.OrderByBuilder ascending(boolean asc)
ascending
in interface SQLBuilder.OrderByBuilder
public SQLBuilder.OrderByBuilder descending()
descending
in interface SQLBuilder.OrderByBuilder
public SQLBuilder.OrderByBuilder nulls(int mode)
nulls
in interface SQLBuilder.OrderByBuilder
public int getNullsMode()
getNullsMode
in interface SQLBuilder.OrderByBuilder
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Formatter<ExpressionBuilder.Value> formatter)
toString
in interface ExpressionBuilder.Value
public void replace(ExpressionBuilder.Value target, ExpressionBuilder.Value replacement)
replace
in interface ExpressionBuilder.Value
replace
in class ExpressionBuilder.AbstractValue