Class OSQLHelper
java.lang.Object
com.orientechnologies.orient.core.sql.OSQLHelper
SQL Helper class
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ODocumentbindParameters(ODocument iDocument, List<OPair<String, Object>> iFields, OCommandParameters iArguments, OCommandContext iContext) static ODocumentbindParameters(ODocument iDocument, Map<String, Object> iFields, OCommandParameters iArguments, OCommandContext iContext) static OSQLFunctionRuntimegetFunction(OBaseParser iCommand, String iWord) static Objectstatic ObjectgetValue(Object iObject, ORecord iRecord, OCommandContext iContext) static ObjectparseDefaultValue(ODocument iRecord, String iWord) static ObjectparseStringNumber(String iValue) static ObjectparseValue(OBaseParser iCommand, String iWord, OCommandContext iContext) static ObjectparseValue(OBaseParser iCommand, String iWord, OCommandContext iContext, boolean resolveContextVariables) static ObjectparseValue(OSQLPredicate iSQLFilter, OBaseParser iCommand, String iWord, OCommandContext iContext) static ObjectparseValue(String iValue, OCommandContext iContext) Convert fields from text to real value.static ObjectparseValue(String iValue, OCommandContext iContext, boolean resolveContextVariables) static ObjectresolveFieldValue(ODocument iDocument, String iFieldName, Object iFieldValue, OCommandParameters iArguments, OCommandContext iContext)
-
Field Details
-
NAME
- See Also:
-
VALUE_NOT_PARSED
- See Also:
-
NOT_NULL
- See Also:
-
DEFINED
- See Also:
-
-
Constructor Details
-
OSQLHelper
public OSQLHelper()
-
-
Method Details
-
parseDefaultValue
-
parseValue
Convert fields from text to real value. Supports: String, RID, Boolean, Float, Integer and NULL.- Parameters:
iValue- Value to convert.- Returns:
- The value converted if recognized, otherwise VALUE_NOT_PARSED
-
parseValue
public static Object parseValue(String iValue, OCommandContext iContext, boolean resolveContextVariables) -
parseStringNumber
-
parseValue
public static Object parseValue(OSQLPredicate iSQLFilter, OBaseParser iCommand, String iWord, OCommandContext iContext) -
parseValue
-
parseValue
public static Object parseValue(OBaseParser iCommand, String iWord, OCommandContext iContext, boolean resolveContextVariables) -
getFunction
-
getValue
-
getValue
-
resolveFieldValue
public static Object resolveFieldValue(ODocument iDocument, String iFieldName, Object iFieldValue, OCommandParameters iArguments, OCommandContext iContext) -
bindParameters
public static ODocument bindParameters(ODocument iDocument, Map<String, Object> iFields, OCommandParameters iArguments, OCommandContext iContext) -
bindParameters
public static ODocument bindParameters(ODocument iDocument, List<OPair<String, Object>> iFields, OCommandParameters iArguments, OCommandContext iContext)
-