public class RDBMSEventAdapter extends Object implements org.wso2.carbon.event.output.adapter.core.OutputEventAdapter
| Constructor and Description |
|---|
RDBMSEventAdapter(org.wso2.carbon.event.output.adapter.core.OutputEventAdapterConfiguration eventAdapterConfiguration,
Map<String,String> globalProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
String |
constructQuery(String tableName,
String query,
StringBuilder columnTypes,
StringBuilder columns,
StringBuilder values,
StringBuilder columnValues,
StringBuilder condition)
Replace attribute values with target build queries
|
void |
createTableIfNotExist(String tableName) |
void |
destroy() |
void |
disconnect() |
void |
executeDbActions(Object message) |
void |
executeProcessActions(Object message,
String tableName) |
void |
init() |
boolean |
isPolled() |
void |
publish(Object message,
Map<String,String> dynamicProperties) |
void |
testConnect() |
public void init()
throws org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException
init in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterorg.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterExceptionpublic void testConnect()
throws org.wso2.carbon.event.output.adapter.core.exception.TestConnectionNotSupportedException
testConnect in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterorg.wso2.carbon.event.output.adapter.core.exception.TestConnectionNotSupportedExceptionpublic void connect()
connect in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterpublic void publish(Object message, Map<String,String> dynamicProperties)
publish in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterpublic void executeProcessActions(Object message, String tableName) throws org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException
org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterExceptionpublic void executeDbActions(Object message) throws org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException
org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterExceptionpublic void createTableIfNotExist(String tableName) throws org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException
org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterExceptionpublic String constructQuery(String tableName, String query, StringBuilder columnTypes, StringBuilder columns, StringBuilder values, StringBuilder columnValues, StringBuilder condition)
public void disconnect()
disconnect in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterpublic void destroy()
destroy in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterpublic boolean isPolled()
isPolled in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterCopyright © 2016 WSO2. All rights reserved.