|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.JdbcUtil.SyncDescriptor
public static class JdbcUtil.SyncDescriptor
Class that provides all data needed for the synchronizeTableFullOneWay methods. The methods in this class can be overridden so it allows some tweaking (especially in the get..Values() methods that are used by the statements).
| Field Summary | |
|---|---|
static String |
COMMITEVERY_PROPERTY_ID
|
static String |
FROMCONNECTION_PROPERTY_ID
|
static String |
FROMFIELDS_PROPERTY_ID
|
static String |
FROMKEYS_PROPERTY_ID
|
static String |
FROMTABLENAME_PROPERTY_ID
|
static String |
ID_PROPERTY_ID
|
static String |
TOCONNECTION_PROPERTY_ID
|
static String |
TOFIELDS_PROPERTY_ID
|
static String |
TOKEYS_PROPERTY_ID
|
static String |
TOTABLENAME_PROPERTY_ID
|
| Constructor Summary | |
|---|---|
JdbcUtil.SyncDescriptor()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID_PROPERTY_ID
public static final String FROMCONNECTION_PROPERTY_ID
public static final String FROMTABLENAME_PROPERTY_ID
public static final String FROMFIELDS_PROPERTY_ID
public static final String FROMKEYS_PROPERTY_ID
public static final String TOCONNECTION_PROPERTY_ID
public static final String TOTABLENAME_PROPERTY_ID
public static final String TOFIELDS_PROPERTY_ID
public static final String TOKEYS_PROPERTY_ID
public static final String COMMITEVERY_PROPERTY_ID
| Constructor Detail |
|---|
public JdbcUtil.SyncDescriptor()
| Method Detail |
|---|
public String getId()
public void setId(String value)
public JdbcUtil.SyncDescriptor withId(String value)
public Connection getFromConnection()
public void setFromConnection(Connection value)
public JdbcUtil.SyncDescriptor withFromConnection(Connection value)
public String getFromTablename()
public void setFromTablename(String value)
public JdbcUtil.SyncDescriptor withFromTablename(String value)
public String[] getFromFields()
public void setFromFields(String... value)
public JdbcUtil.SyncDescriptor withFromFields(String... value)
public LinearMap<String,Object> getFromFieldValues(ResultSet resultSet)
throws SQLException
resultSet -
SQLExceptionpublic String[] getFromKeys()
public void setFromKeys(String... value)
public JdbcUtil.SyncDescriptor withFromKeys(String... value)
public LinearMap<String,Object> getFromKeyValues(ResultSet resultSet)
throws SQLException
resultSet -
SQLExceptionpublic Connection getToConnection()
public void setToConnection(Connection value)
public JdbcUtil.SyncDescriptor withToConnection(Connection value)
public String getToTablename()
public void setToTablename(String value)
public JdbcUtil.SyncDescriptor withToTablename(String value)
public String[] getToFields()
public void setToFields(String... value)
public JdbcUtil.SyncDescriptor withToFields(String... value)
public LinearMap<String,Object> getToFieldValues(ResultSet resultSet)
throws SQLException
resultSet -
SQLExceptionpublic String[] getToKeys()
public void setToKeys(String... value)
public JdbcUtil.SyncDescriptor withToKeys(String... value)
public LinearMap<String,Object> getToKeyValues(ResultSet resultSet)
throws SQLException
resultSet -
SQLExceptionpublic String getSelectInFromSql(String whereclause)
SQLExceptionpublic String getSelectInFromSql()
public String getSelectInToSql(String whereclause)
SQLExceptionpublic String getSelectInToSql()
public String getExistsInToSql()
SQLException
public LinearMap<String,Object> getExistsInToValues(ResultSet resultSet)
throws SQLException
SQLExceptionpublic String getExistsInFromSql(String whereclause)
SQLExceptionpublic String getExistsInFromSql()
public LinearMap<String,Object> getExistsInFromValues(ResultSet resultSet)
throws SQLException
SQLExceptionpublic String getDeleteInToSql()
SQLException
public LinearMap<String,Object> getDeleteInToValues(ResultSet resultSet)
throws SQLException
SQLExceptionpublic String getInsertInToSql()
SQLException
public LinearMap<String,Object> getInsertInToValues(ResultSet resultSet)
throws SQLException
SQLExceptionpublic String getUpdateInToSql()
SQLException
public LinearMap<String,Object> getUpdateInToValues(ResultSet resultSet)
throws SQLException
SQLExceptionpublic int getCommitEvery()
public void setCommitEvery(int value)
public JdbcUtil.SyncDescriptor withCommitEvery(int value)
public void beforeInsertUpdate()
throws SQLException
SQLException
public void afterInsertUpdate()
throws SQLException
SQLException
public void beforeDelete()
throws SQLException
SQLException
public void afterDelete()
throws SQLException
SQLException
public void beforeDeleteRecord(LinearMap<String,Object> resultset)
throws SQLException
SQLException
public void afterDeleteRecord(LinearMap<String,Object> resultset)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||