| java.lang.Object com.sleepycat.persist.impl.EnhancedAccessor
EnhancedAccessor | public class EnhancedAccessor implements Accessor(Code) | | Implements Accessor for a complex persistent class.
author: Mark Hayes |
Method Summary | |
public Object | getField(Object o, int field, int superLevel, boolean isSecField) | static boolean | isEnhanced(Class type) Returns whether a given class is a (registered) enhanced class. | public boolean | isPriKeyFieldNullOrZero(Object o) | public Object | newArray(int len) | public Object | newInstance() | public void | readNonKeyFields(Object o, EntityInput input, int startField, int endField, int superLevel) | public void | readPriKeyField(Object o, EntityInput input) | public void | readSecKeyFields(Object o, EntityInput input, int startField, int endField, int superLevel) | public static void | registerClass(String className, Enhanced prototype) Registers a prototype instance, and should be called during
initialization of the prototype class. | public void | setField(Object o, int field, int superLevel, boolean isSecField, Object value) | public void | writeNonKeyFields(Object o, EntityOutput output) | public void | writePriKeyField(Object o, EntityOutput output) | public void | writeSecKeyFields(Object o, EntityOutput output) |
EXPECT_ENHANCED | final public static boolean EXPECT_ENHANCED(Code) | | |
EnhancedAccessor | EnhancedAccessor(Class type)(Code) | | Creates an accessor.
|
getField | public Object getField(Object o, int field, int superLevel, boolean isSecField)(Code) | | |
isEnhanced | static boolean isEnhanced(Class type)(Code) | | Returns whether a given class is a (registered) enhanced class.
|
isPriKeyFieldNullOrZero | public boolean isPriKeyFieldNullOrZero(Object o)(Code) | | |
readNonKeyFields | public void readNonKeyFields(Object o, EntityInput input, int startField, int endField, int superLevel)(Code) | | |
readSecKeyFields | public void readSecKeyFields(Object o, EntityInput input, int startField, int endField, int superLevel)(Code) | | |
registerClass | public static void registerClass(String className, Enhanced prototype)(Code) | | Registers a prototype instance, and should be called during
initialization of the prototype class. The prototype may be null for
an abstract class.
|
setField | public void setField(Object o, int field, int superLevel, boolean isSecField, Object value)(Code) | | |
|
|