public class DefaultSQLQueryBuilder extends Object implements SQLQueryBuilder
Modifier and Type | Field and Description |
---|---|
static String |
AND |
static String |
BIND_PARAMETER |
static String |
OR |
Constructor and Description |
---|
DefaultSQLQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
SQLQuery<?> |
build(IEntryPacket entry,
ITypeDesc typeDesc)
Builds an
SQLQuery from given entry packet |
SQLQuery<?> |
build(ITemplateHolder template,
String typeName,
ITypeDesc typeDesc)
Builds the SQLQuery using given template extended match codes and values.
|
static Object |
convertToSQLFormat(Object object,
short matchCode) |
static String |
mapCodeToSign(short code)
Maps between extended match-codes to actual SQL Query sign.
|
public static final String BIND_PARAMETER
public static final String OR
public static final String AND
public SQLQuery<?> build(ITemplateHolder template, String typeName, ITypeDesc typeDesc)
build
in interface SQLQueryBuilder
typeName
- the query is built using the provided typeName incase the template represents
a null template or there's no type.typeDesc
- might be null in case the space didn't introduce this type (might happen in
case of inheritance)public static Object convertToSQLFormat(Object object, short matchCode)
public SQLQuery<?> build(IEntryPacket entry, ITypeDesc typeDesc)
SQLQueryBuilder
SQLQuery
from given entry packetbuild
in interface SQLQueryBuilder
public static String mapCodeToSign(short code)
code
- the extended match-code to mapCopyright © GigaSpaces.