public class SqlGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AND |
static String |
COMMA |
static String |
DELETE |
static String |
FROM |
static String |
OR |
static String |
PARAM |
static String |
SELECT |
static String |
WHERE |
| Constructor and Description |
|---|
SqlGenerator() |
SqlGenerator(String allColumnsClause) |
| Modifier and Type | Method and Description |
|---|---|
String |
count(TableDescription table) |
String |
countById(TableDescription table) |
String |
create(TableDescription table,
Map<String,Object> columns) |
String |
deleteAll(TableDescription table) |
String |
deleteById(TableDescription table) |
String |
existsById(TableDescription table) |
String |
getAllColumnsClause() |
protected String |
limitClause(org.springframework.data.domain.Pageable page) |
String |
selectAll(TableDescription table) |
String |
selectAll(TableDescription table,
org.springframework.data.domain.Pageable page) |
String |
selectAll(TableDescription table,
org.springframework.data.domain.Sort sort) |
String |
selectById(TableDescription table) |
String |
selectByIds(TableDescription table,
int idsCount) |
protected String |
sortingClauseIfRequired(org.springframework.data.domain.Sort sort) |
String |
update(TableDescription table,
Map<String,Object> columns) |
public static final String WHERE
public static final String AND
public static final String OR
public static final String SELECT
public static final String FROM
public static final String DELETE
public static final String COMMA
public static final String PARAM
public SqlGenerator(String allColumnsClause)
public SqlGenerator()
public String count(TableDescription table)
public String deleteById(TableDescription table)
public String selectAll(TableDescription table)
public String selectAll(TableDescription table, org.springframework.data.domain.Pageable page)
public String selectAll(TableDescription table, org.springframework.data.domain.Sort sort)
public String selectById(TableDescription table)
public String selectByIds(TableDescription table, int idsCount)
public String update(TableDescription table, Map<String,Object> columns)
public String create(TableDescription table, Map<String,Object> columns)
public String deleteAll(TableDescription table)
public String countById(TableDescription table)
public String existsById(TableDescription table)
public String getAllColumnsClause()
protected String limitClause(org.springframework.data.domain.Pageable page)
protected String sortingClauseIfRequired(org.springframework.data.domain.Sort sort)
Copyright © 2012–2016. All rights reserved.