ca.sqlpower.wabit.dao.json
Class WabitJSONPersister
java.lang.Object
ca.sqlpower.dao.json.SPJSONPersister
ca.sqlpower.wabit.dao.json.WabitJSONPersister
- All Implemented Interfaces:
- ca.sqlpower.dao.SPPersister
public class WabitJSONPersister
- extends ca.sqlpower.dao.json.SPJSONPersister
A SPPersister implementation that serializes
SPPersister method calls as JSONObjects and transmits them
to a destination using a MessageSender. This allows these method
calls to be transmitted to other systems, typically (but not necessarily)
over a network connection.
| Nested classes/interfaces inherited from interface ca.sqlpower.dao.SPPersister |
ca.sqlpower.dao.SPPersister.DataType, ca.sqlpower.dao.SPPersister.SPPersistMethod |
|
Method Summary |
void |
persistObject(java.lang.String parentUUID,
java.lang.String type,
java.lang.String uuid,
int index)
|
| Methods inherited from class ca.sqlpower.dao.json.SPJSONPersister |
begin, commit, getMessageSender, persistProperty, persistProperty, removeObject, rollback |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WabitJSONPersister
public WabitJSONPersister(ca.sqlpower.dao.MessageSender<JSONObject> messageSender)
- Create a
WabitJSONPersister that uses the given
MessageSender to transmit the JSON content
persistObject
public void persistObject(java.lang.String parentUUID,
java.lang.String type,
java.lang.String uuid,
int index)
throws ca.sqlpower.dao.SPPersistenceException
- Specified by:
persistObject in interface ca.sqlpower.dao.SPPersister- Overrides:
persistObject in class ca.sqlpower.dao.json.SPJSONPersister
- Throws:
ca.sqlpower.dao.SPPersistenceException
Copyright © 2009. All Rights Reserved.