public class ObjectEditorDefault<KEY,ITEM> extends java.lang.Object implements ObjectEditorComposer<KEY,ITEM>, ObjectEditor<KEY,ITEM>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,FieldAccess> |
fields |
protected SearchableCollection<KEY,ITEM> |
query |
| Constructor and Description |
|---|
ObjectEditorDefault() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ITEM item) |
void |
addAll(ITEM... items) |
void |
addAll(java.util.List<ITEM> items) |
void |
addAllAsync(java.util.Collection<ITEM> items) |
java.util.List<ITEM> |
all() |
void |
clear() |
boolean |
compareAndIncrement(KEY key,
java.lang.String property,
byte compare) |
boolean |
compareAndIncrement(KEY key,
java.lang.String property,
int compare) |
boolean |
compareAndIncrement(KEY key,
java.lang.String property,
long compare) |
boolean |
compareAndIncrement(KEY key,
java.lang.String property,
short compare) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
byte compare,
byte value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
char compare,
char value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
double compare,
double value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
float compare,
float value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
int compare,
int value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
long compare,
long value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
java.lang.Object compare,
java.lang.Object value) |
boolean |
compareAndUpdate(KEY key,
java.lang.String property,
short compare,
short value) |
boolean |
delete(ITEM item) |
ITEM |
get(KEY key) |
byte |
getByte(ITEM item,
java.lang.String property) |
char |
getChar(ITEM item,
java.lang.String property) |
double |
getDouble(ITEM item,
java.lang.String property) |
float |
getFloat(ITEM item,
java.lang.String property) |
int |
getInt(ITEM item,
java.lang.String property) |
KEY |
getKey(ITEM item) |
long |
getLong(ITEM item,
java.lang.String property) |
java.lang.Object |
getObject(ITEM item,
java.lang.String property) |
short |
getShort(ITEM item,
java.lang.String property) |
<T> T |
getValue(ITEM item,
java.lang.String property,
java.lang.Class<T> type) |
void |
hashCodeOptimizationOn() |
void |
init() |
void |
modify(ITEM item) |
void |
modify(ITEM item,
java.lang.String property,
byte value) |
void |
modify(ITEM item,
java.lang.String property,
char value) |
void |
modify(ITEM item,
java.lang.String property,
double value) |
void |
modify(ITEM item,
java.lang.String property,
float value) |
void |
modify(ITEM item,
java.lang.String property,
int value) |
void |
modify(ITEM item,
java.lang.String property,
long value) |
void |
modify(ITEM item,
java.lang.String property,
java.lang.Object value) |
void |
modify(ITEM item,
java.lang.String property,
short value) |
void |
modify(ITEM item,
Update... values) |
void |
modifyAll(java.util.Collection<ITEM> items) |
void |
modifyAll(ITEM... items) |
void |
modifyByValue(ITEM item,
java.lang.String property,
java.lang.String value) |
void |
put(ITEM item) |
SearchableCollection<KEY,ITEM> |
query() |
byte |
readByte(KEY key,
java.lang.String property) |
char |
readChar(KEY key,
java.lang.String property) |
double |
readDouble(KEY key,
java.lang.String property) |
float |
readFloat(KEY key,
java.lang.String property) |
int |
readInt(KEY key,
java.lang.String property) |
long |
readLong(KEY key,
java.lang.String property) |
byte |
readNestedByte(KEY key,
java.lang.String... properties) |
char |
readNestedChar(KEY key,
java.lang.String... properties) |
double |
readNestedDouble(KEY key,
java.lang.String... properties) |
float |
readNestedFloat(KEY key,
java.lang.String... properties) |
int |
readNestedInt(KEY key,
java.lang.String... properties) |
long |
readNestedLong(KEY key,
java.lang.String... properties) |
short |
readNestedShort(KEY key,
java.lang.String... properties) |
java.lang.Object |
readNestedValue(KEY key,
java.lang.String... properties) |
java.lang.Object |
readObject(KEY key,
java.lang.String property) |
short |
readShort(KEY key,
java.lang.String property) |
<T> T |
readValue(KEY key,
java.lang.String property,
java.lang.Class<T> type) |
void |
removeAll(ITEM... items) |
void |
removeAllAsync(java.util.Collection<ITEM> items) |
void |
removeByKey(KEY key) |
void |
setFields(java.util.Map<java.lang.String,FieldAccess> fields) |
void |
setLookupAndExcept(boolean lookupAndExcept) |
void |
setSearchableCollection(SearchableCollection searchableCollection) |
int |
size() |
java.util.Collection<ITEM> |
toCollection() |
void |
update(KEY key,
java.lang.String property,
byte value) |
void |
update(KEY key,
java.lang.String property,
char value) |
void |
update(KEY key,
java.lang.String property,
double value) |
void |
update(KEY key,
java.lang.String property,
float value) |
void |
update(KEY key,
java.lang.String property,
int value) |
void |
update(KEY key,
java.lang.String property,
long value) |
void |
update(KEY key,
java.lang.String property,
java.lang.Object value) |
void |
update(KEY key,
java.lang.String property,
short value) |
void |
update(KEY key,
Update... values) |
void |
updateByValue(KEY key,
java.lang.String property,
java.lang.String value) |
protected SearchableCollection<KEY,ITEM> query
protected java.util.Map<java.lang.String,FieldAccess> fields
public void put(ITEM item)
put in interface ObjectEditor<KEY,ITEM>public void removeByKey(KEY key)
removeByKey in interface ObjectEditor<KEY,ITEM>public void removeAll(ITEM... items)
removeAll in interface ObjectEditor<KEY,ITEM>public void removeAllAsync(java.util.Collection<ITEM> items)
removeAllAsync in interface ObjectEditor<KEY,ITEM>public void addAll(ITEM... items)
addAll in interface ObjectEditor<KEY,ITEM>public void addAllAsync(java.util.Collection<ITEM> items)
addAllAsync in interface ObjectEditor<KEY,ITEM>public void modifyAll(ITEM... items)
modifyAll in interface ObjectEditor<KEY,ITEM>public void modifyAll(java.util.Collection<ITEM> items)
modifyAll in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, java.lang.Object value)
modify in interface ObjectEditor<KEY,ITEM>public void modifyByValue(ITEM item, java.lang.String property, java.lang.String value)
modifyByValue in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, int value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, long value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, char value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, short value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, byte value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, float value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, java.lang.String property, double value)
modify in interface ObjectEditor<KEY,ITEM>public void modify(ITEM item, Update... values)
modify in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, java.lang.Object value)
update in interface ObjectEditor<KEY,ITEM>public void updateByValue(KEY key, java.lang.String property, java.lang.String value)
updateByValue in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, int value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, long value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, char value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, short value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, byte value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, float value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, java.lang.String property, double value)
update in interface ObjectEditor<KEY,ITEM>public void update(KEY key, Update... values)
update in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, java.lang.Object compare, java.lang.Object value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, int compare, int value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, long compare, long value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, char compare, char value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, short compare, short value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, byte compare, byte value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, float compare, float value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndUpdate(KEY key, java.lang.String property, double compare, double value)
compareAndUpdate in interface ObjectEditor<KEY,ITEM>public boolean compareAndIncrement(KEY key, java.lang.String property, int compare)
compareAndIncrement in interface ObjectEditor<KEY,ITEM>public boolean compareAndIncrement(KEY key, java.lang.String property, long compare)
compareAndIncrement in interface ObjectEditor<KEY,ITEM>public boolean compareAndIncrement(KEY key, java.lang.String property, short compare)
compareAndIncrement in interface ObjectEditor<KEY,ITEM>public boolean compareAndIncrement(KEY key, java.lang.String property, byte compare)
compareAndIncrement in interface ObjectEditor<KEY,ITEM>public void addAll(java.util.List<ITEM> items)
addAll in interface ObjectEditor<KEY,ITEM>public void setFields(java.util.Map<java.lang.String,FieldAccess> fields)
setFields in interface ObjectEditorComposer<KEY,ITEM>public void setSearchableCollection(SearchableCollection searchableCollection)
setSearchableCollection in interface ObjectEditorComposer<KEY,ITEM>public void init()
init in interface ObjectEditorComposer<KEY,ITEM>public void hashCodeOptimizationOn()
hashCodeOptimizationOn in interface ObjectEditorComposer<KEY,ITEM>public java.util.Collection<ITEM> toCollection()
toCollection in interface Bag<ITEM>public SearchableCollection<KEY,ITEM> query()
public java.lang.Object readNestedValue(KEY key, java.lang.String... properties)
readNestedValue in interface ObjectEditor<KEY,ITEM>public int readNestedInt(KEY key, java.lang.String... properties)
readNestedInt in interface ObjectEditor<KEY,ITEM>public short readNestedShort(KEY key, java.lang.String... properties)
readNestedShort in interface ObjectEditor<KEY,ITEM>public char readNestedChar(KEY key, java.lang.String... properties)
readNestedChar in interface ObjectEditor<KEY,ITEM>public byte readNestedByte(KEY key, java.lang.String... properties)
readNestedByte in interface ObjectEditor<KEY,ITEM>public double readNestedDouble(KEY key, java.lang.String... properties)
readNestedDouble in interface ObjectEditor<KEY,ITEM>public float readNestedFloat(KEY key, java.lang.String... properties)
readNestedFloat in interface ObjectEditor<KEY,ITEM>public long readNestedLong(KEY key, java.lang.String... properties)
readNestedLong in interface ObjectEditor<KEY,ITEM>public java.lang.Object readObject(KEY key, java.lang.String property)
readObject in interface ObjectEditor<KEY,ITEM>public <T> T readValue(KEY key, java.lang.String property, java.lang.Class<T> type)
readValue in interface ObjectEditor<KEY,ITEM>public int readInt(KEY key, java.lang.String property)
readInt in interface ObjectEditor<KEY,ITEM>public long readLong(KEY key, java.lang.String property)
readLong in interface ObjectEditor<KEY,ITEM>public char readChar(KEY key, java.lang.String property)
readChar in interface ObjectEditor<KEY,ITEM>public short readShort(KEY key, java.lang.String property)
readShort in interface ObjectEditor<KEY,ITEM>public byte readByte(KEY key, java.lang.String property)
readByte in interface ObjectEditor<KEY,ITEM>public float readFloat(KEY key, java.lang.String property)
readFloat in interface ObjectEditor<KEY,ITEM>public double readDouble(KEY key, java.lang.String property)
readDouble in interface ObjectEditor<KEY,ITEM>public java.lang.Object getObject(ITEM item, java.lang.String property)
getObject in interface ObjectEditor<KEY,ITEM>public <T> T getValue(ITEM item, java.lang.String property, java.lang.Class<T> type)
getValue in interface ObjectEditor<KEY,ITEM>public int getInt(ITEM item, java.lang.String property)
getInt in interface ObjectEditor<KEY,ITEM>public long getLong(ITEM item, java.lang.String property)
getLong in interface ObjectEditor<KEY,ITEM>public char getChar(ITEM item, java.lang.String property)
getChar in interface ObjectEditor<KEY,ITEM>public short getShort(ITEM item, java.lang.String property)
getShort in interface ObjectEditor<KEY,ITEM>public byte getByte(ITEM item, java.lang.String property)
getByte in interface ObjectEditor<KEY,ITEM>public float getFloat(ITEM item, java.lang.String property)
getFloat in interface ObjectEditor<KEY,ITEM>public double getDouble(ITEM item, java.lang.String property)
getDouble in interface ObjectEditor<KEY,ITEM>public void setLookupAndExcept(boolean lookupAndExcept)
setLookupAndExcept in interface ObjectEditorComposer<KEY,ITEM>