|
SQLFire 1.0.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vmware.sqlfire.callbacks.DBSynchronizer
public final 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. |
static String |
getDeleteString(String tabName,
String[] pkCols)
|
static String |
getInsertString(String tabName,
int colCount)
|
static String |
getUpdateString(String tabName,
String[] pkCols,
String[] updatedCols)
|
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 boolean |
setParamsInPrepareStatement(com.vmware.sqlfire.internal.engine.ddl.wan.SqlfStatementEvent sse,
PreparedStatement ps,
PreparedStatement prevPS)
Returns true if batch execution should be done, and false otherwise. |
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 boolean setParamsInPrepareStatement(com.vmware.sqlfire.internal.engine.ddl.wan.SqlfStatementEvent sse,
PreparedStatement ps,
PreparedStatement prevPS)
throws com.vmware.sqlfire.internal.iapi.error.StandardException,
SQLException
com.vmware.sqlfire.internal.iapi.error.StandardException
SQLException
public static String getInsertString(String tabName,
int colCount)
public static String getDeleteString(String tabName,
String[] pkCols)
public static String getUpdateString(String tabName,
String[] pkCols,
String[] updatedCols)
public void start()
AsyncEventListener
start in interface AsyncEventListener
|
SQLFire 1.0.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||