Package org.microspace.specific
Class FieldBasedAccessor<T>
- java.lang.Object
-
- org.microspace.specific.FieldBasedAccessor<T>
-
- All Implemented Interfaces:
Accessor<T>
public class FieldBasedAccessor<T> extends Object implements Accessor<T>
A simple object that has only fields can be accessed by this Class.public class { public String id; public BigDecimal price; public String name; }The first n fields can be specified. The first field has to be the primaryKey.Currently
ThreadIdis not supported.- Version:
- 2012-01-29
- Author:
- gsinai
-
-
Constructor Summary
Constructors Constructor Description FieldBasedAccessor(Class<T> targetClass, int indexedFieldCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetBlankObject()GetSetPair<T>getGetSetPair(String name)List<GetSetPair<T>>getGetSetPairs()protected IndexTypegetIndexType(Field field)GetSetPair<T>getPartitionIdGetSetPair()GetSetPair<T>getPrimaryKeyGetSetPair()Class<T>getTargetClass()GetSetPair<T>getThreadIdGetSetPair()booleanisLocalRecord()booleanisUpdatableRecord()
-
-
-
Method Detail
-
getPrimaryKeyGetSetPair
public GetSetPair<T> getPrimaryKeyGetSetPair()
- Specified by:
getPrimaryKeyGetSetPairin interfaceAccessor<T>
-
getGetSetPairs
public List<GetSetPair<T>> getGetSetPairs()
- Specified by:
getGetSetPairsin interfaceAccessor<T>
-
getGetSetPair
public GetSetPair<T> getGetSetPair(String name)
- Specified by:
getGetSetPairin interfaceAccessor<T>
-
getBlankObject
public T getBlankObject()
- Specified by:
getBlankObjectin interfaceAccessor<T>
-
getTargetClass
public Class<T> getTargetClass()
- Specified by:
getTargetClassin interfaceAccessor<T>
-
getThreadIdGetSetPair
public GetSetPair<T> getThreadIdGetSetPair()
- Specified by:
getThreadIdGetSetPairin interfaceAccessor<T>
-
getPartitionIdGetSetPair
public GetSetPair<T> getPartitionIdGetSetPair()
- Specified by:
getPartitionIdGetSetPairin interfaceAccessor<T>
-
isLocalRecord
public boolean isLocalRecord()
- Specified by:
isLocalRecordin interfaceAccessor<T>
-
isUpdatableRecord
public boolean isUpdatableRecord()
- Specified by:
isUpdatableRecordin interfaceAccessor<T>
-
-