public final class GenerateQuery extends Object
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Path<?>> |
path
variable path
|
Modifier and Type | Method and Description |
---|---|
static BooleanPath |
$(Boolean ret)
Method to get the boolean path
|
static CalendarPath |
$(Calendar ret)
When return type is Calendar, it will create CalendarPath which will expose filter methods accepting java.util.Calendar, java.util.Date and
java.sql.Date
|
static CalendarPath |
$(Date ret)
Method to get the calendar path
|
static EnumPath |
$(Enum<?> ret)
Method to get the Enum path
|
static NumberPath |
$(Number ret)
Method to get the number path
|
static Path<?> |
$(Object ret)
when no handler for specific return type is defined which means properties of that type cannot be inserted in filter expression but can be
listed in select part, it will return Path
|
static StringPath |
$(String ret)
When return type is String, it will create StringPath which will expose filter methods accepting only String
|
static <T> T |
createQueryEntity(Class<T> cl)
Method to create the query entity for the given class
|
static <T> T |
createQueryEntity(T entity)
Method to create the query for the given entity
|
static QueryMessage |
getMessage()
Method to get the query message
|
static void |
resetQueryMessage()
Method to reset the query message
|
static <T extends IEntity> |
select(Path<?> path,
Path<?>... pathlist)
Method to get the optional syntax
|
static <T extends IEntity> |
selectCount(T entity)
Method to get the optional syntax for the given entity
|
static void |
setMessage(QueryMessage mess)
Method to set the query message
|
public static ThreadLocal<Path<?>> path
public static <T> T createQueryEntity(Class<T> cl)
cl
- the classpublic static <T> T createQueryEntity(T entity)
entity
- the entitypublic static Path<?> $(Object ret)
ret
- the objectpublic static CalendarPath $(Calendar ret)
ret
- public static CalendarPath $(Date ret)
ret
- the datepublic static StringPath $(String ret)
ret
- the stringpublic static NumberPath $(Number ret)
ret
- the numberpublic static BooleanPath $(Boolean ret)
ret
- the booleanpublic static EnumPath $(Enum<?> ret)
ret
- the enumpublic static <T extends IEntity> OptionalSyntax select(Path<?> path, Path<?>... pathlist)
path
- the pathpathlist
- the path listpublic static <T extends IEntity> OptionalSyntax selectCount(T entity)
entity
- the entitypublic static QueryMessage getMessage()
public static void setMessage(QueryMessage mess)
mess
- the query messagepublic static void resetQueryMessage()
Copyright © 2017. All rights reserved.