1 8 9 package com.sleepycat.persist.impl; 10 11 33 interface Accessor { 34 35 40 final int MAX_FIELD_NUM = Integer.MAX_VALUE - 1; 41 42 46 Object newInstance(); 47 48 58 Object newArray(int len); 59 60 65 boolean isPriKeyFieldNullOrZero(Object o); 66 67 77 void writePriKeyField(Object o, EntityOutput output); 78 79 89 void readPriKeyField(Object o, EntityInput input); 90 91 102 void writeSecKeyFields(Object o, EntityOutput output); 103 104 133 void readSecKeyFields(Object o, 134 EntityInput input, 135 int startField, 136 int endField, 137 int superLevel); 138 139 147 void writeNonKeyFields(Object o, EntityOutput output); 148 149 175 void readNonKeyFields(Object o, 176 EntityInput input, 177 int startField, 178 int endField, 179 int superLevel); 180 181 199 Object getField(Object o, 200 int field, 201 int superLevel, 202 boolean isSecField); 203 204 222 void setField(Object o, 223 int field, 224 int superLevel, 225 boolean isSecField, 226 Object value); 227 } 228 | Popular Tags |