|
SQLFire 1.0.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vmware.sqlfire.callbacks.DBSynchronizer
public class DBSynchronizer
DBSynchronizer class instance persists the SQLFire operations to an external DB.
| Constructor Summary | |
|---|---|
DBSynchronizer()
|
|
| Method Summary | |
|---|---|
void |
basicClose()
|
void |
close()
This is invoked when the AsyncEventListener configuration is stopped. |
void |
init(String initParamStr)
The AsyncListener implemented by the user can be initialized via this method. |
void |
initConnection()
|
boolean |
processEvents(List<Event> events)
Process the list of Events. |
static void |
setParamsInPrepareStatement(com.vmware.sqlfire.internal.engine.ddl.wan.SqlfStatementEvent sse,
PreparedStatement ps)
|
void |
start()
This is invoked just prior to starting the async invocation thread for processing the events. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBSynchronizer()
| Method Detail |
|---|
public void close()
AsyncEventListener
close in interface AsyncEventListenerpublic void basicClose()
public void init(String initParamStr)
AsyncEventListener
init in interface AsyncEventListenerinitParamStr - String containing initialisation parameters for the
AsyncEventListenerpublic void initConnection()
public boolean processEvents(List<Event> events)
AsyncEventListenerEvents. This method will be invoked
asynchronously when events are queued for processing. For
AsyncEventListener, the Event.getOldRow() will always return null
indicating that old value is not available. Event.getNewRow() will
return the column values for a row created. For update operations it will
only return meaningful values for modified columns and null for unmodified
columns. The positions of columns modified can be obtained from
Event.getModifiedColumns()
processEvents in interface AsyncEventListenerevents - The list of Events to process
public static void setParamsInPrepareStatement(com.vmware.sqlfire.internal.engine.ddl.wan.SqlfStatementEvent sse,
PreparedStatement ps)
throws com.vmware.sqlfire.internal.iapi.error.StandardException,
SQLException
com.vmware.sqlfire.internal.iapi.error.StandardException
SQLExceptionpublic void start()
AsyncEventListener
start in interface AsyncEventListener
|
SQLFire 1.0.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||