syncresult
Class Data
java.lang.Object
|
+--syncresult.Data
- public class Data
- extends java.lang.Object
|
Constructor Summary |
Data()
|
|
Method Summary |
SyncResultSet |
getTable(java.sql.PreparedStatement stmt)
|
void |
insert(java.sql.Connection con,
java.lang.String tableName,
java.util.Vector rawDataVector)
|
void |
insertOrUpdate(java.sql.Connection con,
java.lang.String schema,
java.lang.String tableName,
java.util.Vector rawDataVector)
|
void |
update(java.sql.Connection con,
java.lang.String schema,
java.lang.String tableName,
java.util.Vector rawDataVector)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Data
public Data()
getTable
public SyncResultSet getTable(java.sql.PreparedStatement stmt)
throws java.sql.SQLException
- Parameters:
stmt - is a prepared statement with all the arguments
eg:- PreparedStatement stmt = con.prepareStatement("select * from ?"):
stmt.setString(1,tablename);
getTable(stmt);
- Returns:
- returns a Syncronized result set
insert
public void insert(java.sql.Connection con,
java.lang.String tableName,
java.util.Vector rawDataVector)
throws java.sql.SQLException
- Parameters:
rawDataVector - is a vector of RawDataField which indicate the the row of the table which need to be inserted
update
public void update(java.sql.Connection con,
java.lang.String schema,
java.lang.String tableName,
java.util.Vector rawDataVector)
throws java.sql.SQLException
- Parameters:
rawDataVector - is a vector of RawDataField which indicate the the row of the table which need to be inserted
insertOrUpdate
public void insertOrUpdate(java.sql.Connection con,
java.lang.String schema,
java.lang.String tableName,
java.util.Vector rawDataVector)
throws java.sql.SQLException