Class QueryMethodsAccessor
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.property.QueryMethodsAccessor
-
- All Implemented Interfaces:
QueryPropertyAccessor
public class QueryMethodsAccessor extends Object implements QueryPropertyAccessor
Getter and setter methods based accessor.
-
-
Constructor Summary
Constructors Constructor Description QueryMethodsAccessor(Method getter, Method setter, String propName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPropertyName()Class<?>getType()ObjectgetValue(Object obj)Get property value from given object.voidsetValue(Object obj, Object newVal)Set property value on given object.
-
-
-
Method Detail
-
getValue
public Object getValue(Object obj) throws IgniteCheckedException
Get property value from given object.- Specified by:
getValuein interfaceQueryPropertyAccessor- Parameters:
obj- Object to retrieve property value from.- Returns:
- Property value.
- Throws:
IgniteCheckedException- if failed.
-
setValue
public void setValue(Object obj, Object newVal) throws IgniteCheckedException
Set property value on given object.- Specified by:
setValuein interfaceQueryPropertyAccessor- Parameters:
obj- Object to set property value on.newVal- Property value.- Throws:
IgniteCheckedException- if failed.
-
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyNamein interfaceQueryPropertyAccessor- Returns:
- Name of this property.
-
getType
public Class<?> getType()
- Specified by:
getTypein interfaceQueryPropertyAccessor- Returns:
- Type of the value of this property.
-
-