|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
waggle.core.info.XUpdater
public class XUpdater
This class represents the DTO for updating objects.
Only fields present in an Updater will be processed as possible changes to the target objects.
| Constructor Summary | |
|---|---|
XUpdater()Create an empty XUpdater. |
|
XUpdater(int size)Create an empty XUpdater, pre-allocating for an initial capacity of size. |
|
| Method Summary | ||
|---|---|---|
void |
addAll(XUpdater info)Add/Overwrite all entries in the specified XUpdater into this XUpdater. |
|
boolean |
contains(String name)Check if the XUpdater contains the specified field name. |
|
Set<Map.Entry<String,Object>> |
entrySet()Return a set of the entries in the XUpdater. |
|
boolean |
equals(Object object) |
|
Object[] |
getArray(String name)Get an object array value from the XUpdater. |
|
Boolean |
getBoolean(String name)Get a boolean value from the XUpdater. |
|
Boolean |
getBoolean(String name, Boolean dftValue)Get a boolean value from the XUpdater. |
|
byte[] |
getBytes(String name)Get a byte array value from the XUpdater. |
|
byte[] |
getBytes(String name, byte[] dftValue)Get a byte array value from the XUpdater. |
|
|
getCollection(T type, String name)Get a Collection value from the XUpdater. |
|
Collection<XObjectID> |
getCollectionObjectIDs(String name)Get a Collection value from the XUpdater. |
|
Collection<XUpdater> |
getCollectionUpdaters(String name)Get a Collection value from the XUpdater. |
|
Date |
getDate(String name)Get a date value from the XUpdater. |
|
Date |
getDate(String name, Date dftValue)Get a date value from the XUpdater. |
|
Double |
getDouble(String name)Get a double value from the XUpdater. |
|
Double |
getDouble(String name, Double dftValue)Get a double value from the XUpdater. |
|
|
getEnum(String name, Class<T> enumClass)Get an enum value from the XUpdater. |
|
|
getEnum(String name, Class<T> enumClass, T dftValue)Get an enum value from the XUpdater. |
|
|
getEnumSet(String name, Class<T> enumClass, EnumSet<T> dftValue)Get an EnumSet value from the XUpdater. |
|
Integer |
getInteger(String name)Get an integer value from the XUpdater. |
|
Integer |
getInteger(String name, Integer dftValue)Get an integer value from the XUpdater. |
|
Map<String,Object> |
getInternalMap()Allow access to internal map sometimes. |
|
List |
getList(String name)Get a List value from the XUpdater. |
|
Locale |
getLocale(String name)Return a Locale. |
|
Long |
getLong(String name)Get a long value from the XUpdater. |
|
Long |
getLong(String name, Long dftValue)Get a long value from the XUpdater. |
|
long[] |
getLongs(String name)Get a long array value from the XUpdater. |
|
long[] |
getLongs(String name, long[] dftValue)Get a long array value from the XUpdater. |
|
|
getMap(T type, String name)Get a Map value from the XUpdater. |
|
Object |
getObject(String name)Get an Object value from the XUpdater. |
|
XObjectID |
getObjectID(String name)Get an XObjectID value from the XUpdater. |
|
XSessionID |
getSessionID(String name)Get an XSessionID value from the XUpdater. |
|
String |
getString(String name)Get a string value from the XUpdater. |
|
String |
getString(String name, String dftValue)Get a string value from the XUpdater. |
|
TimeZone |
getTimeZone(String name)Return a TimeZone. |
|
XUpdater |
getUpdater(String name)Get an XUpdater value from the XUpdater. |
|
int |
hashCode() |
|
boolean |
isEmpty()Return true if the XUpdater is empty. |
|
Set<String> |
keySet()Return a set of the keys in the XUpdater. |
|
void |
put(String name, Boolean value)Put a Boolean value into the XUpdater. |
|
void |
put(String name, byte[] value)Put a byte array value into the XUpdater. |
|
void |
put(String name, Collection value)Put a Collection value into the XUpdater. |
|
void |
put(String name, Date value)Put a Date value into the XUpdater. |
|
void |
put(String name, Double value)Put a Double value into the XUpdater. |
|
void |
put(String name, Enum value)Put an enum value into the XUpdater. |
|
void |
put(String name, Float value)Put a Float value into the XUpdater. |
|
void |
put(String name, int[] value)Put an integer array value into the XUpdater. |
|
void |
put(String name, Integer value)Put an Integer value into the XUpdater. |
|
void |
put(String name, Long value)Put a Long value into the XUpdater. |
|
void |
put(String name, long[] value)Put a long array value into the XUpdater. |
|
void |
put(String name, Map value)Put a Map value into the XUpdater. |
|
void |
put(String name, Object value)Put an Object value into the XUpdater. |
|
void |
put(String name, String value)Put a String value into the XUpdater. |
|
void |
put(String name, XObjectID value)Put an XObjectID value into the XUpdater. |
|
void |
put(String name, XSessionID value)Put an XSessionID value into the XUpdater. |
|
void |
put(String name, XUpdater value)Put an XUpdater value into the XUpdater. |
|
Object |
remove(String name)Remove a value from the XUpdater. |
|
int |
size()Return the number of entries in the XUpdater. |
|
String |
toString() |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XUpdater()
public XUpdater(int size)
size.
size - The number of entries expected in the XInfo.| Method Detail |
|---|
public boolean contains(String name)
name - The name of the XUpdater value to check for.name exists in the XUpdater.public String getString(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public String getString(String name,
String dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public Integer getInteger(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public Integer getInteger(String name,
Integer dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public Long getLong(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public Long getLong(String name,
Long dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public Double getDouble(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public Double getDouble(String name,
Double dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public Boolean getBoolean(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public Boolean getBoolean(String name,
Boolean dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public Date getDate(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public Date getDate(String name,
Date dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public long[] getLongs(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public long[] getLongs(String name,
long[] dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public byte[] getBytes(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public byte[] getBytes(String name,
byte[] dftValue)
name - The name of the XUpdater value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.public XObjectID getObjectID(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.public XSessionID getSessionID(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public <T extends Enum<T>> T getEnum(String name,
Class<T> enumClass)
T - The type of enum to be returned.name - The name of the XUpdater value to return.enumClass - The class of the XUpdater enum value to return.name, if present; otherwise null.
public <T extends Enum<T>> T getEnum(String name,
Class<T> enumClass,
T dftValue)
T - The type of enum to be returned.name - The name of the XUpdater value to return.enumClass - The class of the XUpdater enum value to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.
public <T extends Enum<T>> EnumSet<T> getEnumSet(String name,
Class<T> enumClass,
EnumSet<T> dftValue)
T - The type of enum entries to be returned in the EnumSet.name - The name of the XUpdater value to return.enumClass - The class of the XUpdater enum values to return.dftValue - The value to return if name is not present.name, if present; otherwise dftValue.
public <T> T getMap(T type,
String name)
T - The type of object in the Map.type - The type object (may be null).name - The name of the XUpdater value to return.name, if present; otherwise null.
public <T> T getCollection(T type,
String name)
T - The type of object in the Collection.type - The type object (may be null).name - The name of the XUpdater value to return.name, if present; otherwise null.public Collection<XUpdater> getCollectionUpdaters(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.public Collection<XObjectID> getCollectionObjectIDs(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.public List getList(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.public Object[] getArray(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.public XUpdater getUpdater(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.public TimeZone getTimeZone(String name)
name - The field name.public Locale getLocale(String name)
name - The field name.public Object getObject(String name)
name - The name of the XUpdater value to return.name, if present; otherwise null.
public void put(String name,
String value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Integer value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Long value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Date value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Boolean value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Collection value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Map value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
XUpdater value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
byte[] value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
int[] value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
long[] value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
XObjectID value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
XSessionID value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Enum value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Float value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Double value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.
public void put(String name,
Object value)
name - The name of the XUpdater entry.value - The value of the XUpdater entry corresponding to name.public Object remove(String name)
name - The name of the value to remove.public Set<Map.Entry<String,Object>> entrySet()
public Set<String> keySet()
public int size()
public void addAll(XUpdater info)
info - The XUpdater to add to this XUpdater.public boolean isEmpty()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic Map<String,Object> getInternalMap()
|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||