Class SqlWriter
java.lang.Object
ch.tocco.nice2.persist.core.api.query.SqlWriterBase<SqlWriter>
ch.tocco.nice2.persist.core.api.query.SqlWriter
Helper class for manually writing SQL queries.
An instance should be obtained from
Context.createSqlWriter()
to
make sure that dialect specific configuration is applied.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.api.query.SqlWriterBase
SqlWriterBase.CasePolicy, SqlWriterBase.SqlWriterConfiguration
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.api.query.SqlWriterBase
configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) count()
descending
(String path) distinct()
endCount()
eq()
from()
gt()
inEnd()
inStart()
isNull()
lt()
ne()
not()
or()
orderBy()
protected SqlWriter
quoteIdentifier
(String token) select()
protected SqlWriter
self()
set()
toSql()
values()
where()
wildcard()
-
Constructor Details
-
SqlWriter
-
-
Method Details
-
self
- Specified by:
self
in classSqlWriterBase<SqlWriter>
-
toSql
-
select
-
count
-
update
-
delete
-
insert
-
from
-
where
-
distinct
-
orderBy
-
ascending
-
descending
-
ascending
-
descending
-
startCount
-
endCount
-
wildcard
-
path
-
alias
-
separator
-
inStart
-
inEnd
-
set
-
assign
-
values
-
eq
-
ne
-
gt
-
lt
-
isNull
-
isNotNull
-
or
-
not
-
quoteIdentifier
-
whitespace
- Overrides:
whitespace
in classSqlWriterBase<SqlWriter>
-
append
- Specified by:
append
in classSqlWriterBase<SqlWriter>
-
append
-