public class BeanChange extends Object
| Constructor and Description |
|---|
BeanChange()
Default constructor for JSON tools.
|
BeanChange(String table,
Object id,
ChangeType type,
Map<String,ValuePair> values)
Construct with all the details.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEventTime()
Return the event time in epoch millis.
|
Object |
getId()
Return the object id.
|
String |
getTable()
Return the object type (typically table name).
|
ChangeType |
getType()
Return the change type (INSERT, UPDATE or DELETE).
|
Map<String,ValuePair> |
getValues()
Return the value pairs.
|
void |
setEventTime(long eventTime)
Set the event time in epoch millis.
|
void |
setId(Object id)
Set the bean id (for JSON tools).
|
void |
setTable(String table)
Set the object type (for JSON tools).
|
void |
setType(ChangeType type)
Set the type (for JSON tools).
|
void |
setValues(Map<String,ValuePair> values)
Set the value pairs (for JSON tools).
|
String |
toString() |
public BeanChange(String table, Object id, ChangeType type, Map<String,ValuePair> values)
public BeanChange()
public ChangeType getType()
public void setType(ChangeType type)
public long getEventTime()
public void setEventTime(long eventTime)
public Map<String,ValuePair> getValues()
Copyright © 2016. All rights reserved.