public class ReferentialSynchroTableTool extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected int |
columnCount
Deprecated.
|
protected Connection |
connection
Deprecated.
|
protected boolean |
debug
Deprecated.
|
protected int |
insertCount
Deprecated.
|
protected PreparedStatement |
insertStatement
Deprecated.
|
protected ReferentialSynchroTableMetadata |
table
Deprecated.
|
protected String |
tableName
Deprecated.
|
protected int |
updateCount
Deprecated.
|
protected PreparedStatement |
updateStatement
Deprecated.
|
Constructor and Description |
---|
ReferentialSynchroTableTool(Connection connection,
ReferentialSynchroTableMetadata table)
Deprecated.
|
ReferentialSynchroTableTool(ReferentialSynchroTableTool tool,
ReferentialSynchroTableMetadata table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
long |
count()
Deprecated.
|
long |
countDataToUpdate(Date fromDate)
Deprecated.
|
void |
deleteAll()
Deprecated.
|
void |
executeInsert(List<Object> pk,
Object[] incomingData)
Deprecated.
|
void |
executeInsert(List<Object> pk,
ResultSet incomingData)
Deprecated.
|
void |
executeUpdate(List<Object> pk,
ResultSet incomingData)
Deprecated.
|
Object[] |
findByPk(List<Object> pk)
Deprecated.
|
void |
flushQueries()
Deprecated.
|
ResultSet |
getDataToUpdate(Date fromDate)
Deprecated.
|
Set<String> |
getExistingPrimaryKeys()
Deprecated.
|
int |
getInsertCount()
Deprecated.
|
Timestamp |
getLastUpdateDate()
Deprecated.
Gets the last updateDate for the given
table using
the given datasource. |
ReferentialSynchroTableMetadata |
getTable()
Deprecated.
|
int |
getUpdateCount()
Deprecated.
|
protected final Connection connection
protected final ReferentialSynchroTableMetadata table
protected final PreparedStatement insertStatement
protected final PreparedStatement updateStatement
protected final int columnCount
protected int insertCount
protected int updateCount
protected boolean debug
public ReferentialSynchroTableTool(ReferentialSynchroTableTool tool, ReferentialSynchroTableMetadata table) throws SQLException
SQLException
public ReferentialSynchroTableTool(Connection connection, ReferentialSynchroTableMetadata table) throws SQLException
SQLException
public void deleteAll() throws SQLException
SQLException
public Object[] findByPk(List<Object> pk) throws SQLException
SQLException
public Set<String> getExistingPrimaryKeys() throws SQLException
SQLException
public ResultSet getDataToUpdate(Date fromDate) throws SQLException
SQLException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void executeInsert(List<Object> pk, ResultSet incomingData) throws SQLException
SQLException
public void executeInsert(List<Object> pk, Object[] incomingData) throws SQLException
SQLException
public void executeUpdate(List<Object> pk, ResultSet incomingData) throws SQLException
SQLException
public int getInsertCount()
public int getUpdateCount()
public void flushQueries() throws SQLException
SQLException
public Timestamp getLastUpdateDate() throws SQLException
table
using
the given datasource.null
if table does not use a updateDate columns or if
there
is no data in table.SQLException
public long countDataToUpdate(Date fromDate) throws SQLException
SQLException
public long count() throws SQLException
SQLException
public ReferentialSynchroTableMetadata getTable()
Copyright © 2012–2014 IFREMER. All rights reserved.