public class GumgaGenericRepositoryHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static GumgaFieldStereotype |
getFieldStereotype(Class type) |
static String |
getHql(QueryObjectElement qoe) |
static Map<GumgaHqlEntry,GumgaHqlElement> |
getHqlConverter()
Faz substituição dos operadores especificados no atributo hqlConverter
para operadores do tipo SQL
|
static String |
hql(List<QueryObjectElement> qoes) |
static String |
hql(String aqo) |
static String |
hqlFromQoes(org.springframework.data.jpa.repository.support.JpaEntityInformation entityInformation,
List<QueryObjectElement> qoes)
Gera um HQL através das informações da entidade e do QueryObject
especificado por parâmetro.
|
static void |
main(String[] args) |
static List<QueryObjectElement> |
qoeFromString(String s)
Gera um Objeto QueryObjectElement através de uma String.
|
static String |
removeAcentos(String str)
Remove acentos do parametro especificado
|
public static Map<GumgaHqlEntry,GumgaHqlElement> getHqlConverter()
public static String getHql(QueryObjectElement qoe)
public static GumgaFieldStereotype getFieldStereotype(Class type)
public static List<QueryObjectElement> qoeFromString(String s)
s - public static String hqlFromQoes(org.springframework.data.jpa.repository.support.JpaEntityInformation entityInformation, List<QueryObjectElement> qoes)
entityInformation - qoes - public static String removeAcentos(String str)
str - valorpublic static String hql(List<QueryObjectElement> qoes)
public static void main(String[] args)
Copyright © 2017 Gumga. All rights reserved.