public class QueryBinaryProperty extends Object implements GridQueryProperty
| Constructor and Description |
|---|
QueryBinaryProperty(GridKernalContext ctx,
String propName,
QueryBinaryProperty parent,
Class<?> type,
boolean key,
String alias,
boolean notNull,
Object defaultValue,
int precision,
int scale)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
defaultValue()
Gets the default value for this property.
|
boolean |
key()
Property ownership flag.
|
String |
name() |
boolean |
notNull()
Gets the flag restricting
null value for this property. |
GridQueryProperty |
parent() |
int |
precision()
Gets precision for this property.
|
int |
scale()
Gets scale for this property.
|
void |
setValue(Object key,
Object val,
Object propVal)
Sets this property value for the given object.
|
Class<?> |
type() |
Object |
value(Object key,
Object val)
Gets this property value from the given object.
|
public QueryBinaryProperty(GridKernalContext ctx, String propName, QueryBinaryProperty parent, Class<?> type, boolean key, String alias, boolean notNull, Object defaultValue, int precision, int scale)
ctx - Kernal context.propName - Property name.parent - Parent property.type - Result type.key - true if key property, false otherwise.alias - Field alias.notNull - true if null value is not allowed.defaultValue - Default value.precision - Precision.scale - Scale.public Object value(Object key, Object val) throws IgniteCheckedException
value in interface GridQueryPropertykey - Key.val - Value.IgniteCheckedException - If failed.public void setValue(Object key, Object val, Object propVal) throws IgniteCheckedException
setValue in interface GridQueryPropertykey - Key.val - Value.propVal - Property value.IgniteCheckedException - If failed.public String name()
name in interface GridQueryPropertypublic Class<?> type()
type in interface GridQueryPropertypublic boolean key()
key in interface GridQueryPropertytrue if this property belongs to key, false if it belongs to value.public GridQueryProperty parent()
parent in interface GridQueryPropertynull if this property is not nested.public boolean notNull()
null value for this property.notNull in interface GridQueryPropertytrue if property does not allow null value.public Object defaultValue()
defaultValue in interface GridQueryPropertynull if a default value is not set for the property.public int precision()
precision in interface GridQueryPropertypublic int scale()
scale in interface GridQueryProperty
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020