public class BasePayloadHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_DATA_VALUES |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
m_deletes |
protected java.util.HashMap<java.lang.String,java.lang.StringBuffer> |
m_directions |
protected int |
m_eventId |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
m_inserts |
protected boolean |
m_labelUpdate |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
m_updates |
protected java.util.HashMap<java.lang.String,java.lang.StringBuffer> |
m_values |
static java.lang.String |
UPDATES_ONLY |
Constructor and Description |
---|
BasePayloadHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addDelete(java.lang.String sid,
java.lang.String gid) |
void |
addEntry(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> map,
java.lang.String sid,
java.lang.String gid) |
void |
addInsert(java.lang.String sid,
java.lang.String gid) |
void |
addUpdate(java.lang.String sid,
java.lang.String gid,
boolean increase,
java.lang.String value) |
void |
clear() |
java.lang.String |
getPayloadString(java.lang.String updateType) |
boolean |
hasChanges() |
boolean |
isUpdatesOnly() |
void |
setEventId(int eventId) |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> m_updates
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> m_inserts
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> m_deletes
protected java.util.HashMap<java.lang.String,java.lang.StringBuffer> m_directions
protected java.util.HashMap<java.lang.String,java.lang.StringBuffer> m_values
protected boolean m_labelUpdate
protected int m_eventId
public static final java.lang.String ATTR_DATA_VALUES
public static final java.lang.String UPDATES_ONLY
public void clear()
public boolean hasChanges()
public boolean isUpdatesOnly()
public void setEventId(int eventId)
public void addUpdate(java.lang.String sid, java.lang.String gid, boolean increase, java.lang.String value)
public void addInsert(java.lang.String sid, java.lang.String gid)
public void addDelete(java.lang.String sid, java.lang.String gid)
public void addEntry(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> map, java.lang.String sid, java.lang.String gid)
public java.lang.String getPayloadString(java.lang.String updateType)