Interface GridQueryProperty
-
- All Known Implementing Classes:
QueryBinaryProperty,QueryClassProperty,QueryUtils.KeyOrValProperty
public interface GridQueryPropertyDescription and access method for query entity field.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectdefaultValue()Gets the default value for this property.booleankey()Property ownership flag.Stringname()booleannotNull()Gets the flag restrictingnullvalue for this property.GridQueryPropertyparent()intprecision()Gets precision for this property.intscale()Gets scale for this property.voidsetValue(Object key, Object val, Object propVal)Sets this property value for the given object.Class<?>type()Objectvalue(Object key, Object val)Gets this property value from the given object.
-
-
-
Method Detail
-
value
Object value(Object key, Object val) throws IgniteCheckedException
Gets this property value from the given object.- Parameters:
key- Key.val- Value.- Returns:
- Property value.
- Throws:
IgniteCheckedException- If failed.
-
setValue
void setValue(Object key, Object val, Object propVal) throws IgniteCheckedException
Sets this property value for the given object.- Parameters:
key- Key.val- Value.propVal- Property value.- Throws:
IgniteCheckedException- If failed.
-
name
String name()
- Returns:
- Property name.
-
type
Class<?> type()
- Returns:
- Class member type.
-
key
boolean key()
Property ownership flag.- Returns:
trueif this property belongs to key,falseif it belongs to value.
-
parent
GridQueryProperty parent()
- Returns:
- Parent property or
nullif this property is not nested.
-
notNull
boolean notNull()
Gets the flag restrictingnullvalue for this property.- Returns:
trueif property does not allownullvalue.
-
defaultValue
Object defaultValue()
Gets the default value for this property.- Returns:
nullif a default value is not set for the property.
-
precision
int precision()
Gets precision for this property.- Returns:
- Precision for a decimal property or -1.
-
scale
int scale()
Gets scale for this property.- Returns:
- Scale for a decimal property or -1.
-
-