public abstract class DbRepairStd extends java.lang.Object implements InterruptibleProcess2
Modifier and Type | Class and Description |
---|---|
protected class |
DbRepairStd.Item |
Modifier and Type | Field and Description |
---|---|
protected DataObject |
doIdent |
protected java.util.Vector<DbRepairStd.Item> |
items |
protected int |
overallAmount |
protected java.sql.Statement |
st |
Constructor and Description |
---|
DbRepairStd(java.lang.String title,
java.sql.Connection connection,
DataObject doIdent)
Constructs a new database repair standard object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doSpecials()
Override to do special stuff.
|
int |
getCumulatedManipulationAmount() |
protected abstract java.lang.String[][] |
getIDCorrections()
Returns ID column names and table names to correct ID counter.
|
java.lang.String[] |
getInfo() |
java.lang.String |
getName()
Returns the name of the process to be shown to user in case of cancel decision
|
protected abstract java.lang.String[][] |
getSQLStatements()
Returns descriptions and SQL statements to repair database.
|
int |
getTotalRepareAmount() |
void |
perform(DataObjectConstructionDetails docd,
AliveConfirmer aliveConfirmer,
StatusInfoPresenter statusInfoPresenter)
Perform the interruptible process.
|
void |
performIdentCountCorrection(AliveConfirmer aliveConfirmer,
StatusInfoPresenter statusInfoPresenter) |
protected void |
report(java.lang.String info,
int amount) |
void |
setStatusInformation(java.lang.String statusInformation)
Sets the status information to be transfered to the user if there is a
message receiver for it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFinalMessage
protected java.util.Vector<DbRepairStd.Item> items
protected java.sql.Statement st
protected DataObject doIdent
protected int overallAmount
public DbRepairStd(java.lang.String title, java.sql.Connection connection, DataObject doIdent)
title
- the title of the processconnection
- the connection to use for the repairing SQL instructionsdoIdent
- the date object representing the ID counters for all tablespublic java.lang.String getName()
InterruptibleProcess2
getName
in interface InterruptibleProcess2
public void perform(DataObjectConstructionDetails docd, AliveConfirmer aliveConfirmer, StatusInfoPresenter statusInfoPresenter)
InterruptibleProcess2
perform
in interface InterruptibleProcess2
docd
- the DataObjectConstructionDetails to use - these details may differ from session's details due to separate connection definitions for each thread.aliveConfirmer
- something to confirm that the process should still runstatusInfoPresenter
- a receiver of information about the progress of this processpublic void performIdentCountCorrection(AliveConfirmer aliveConfirmer, StatusInfoPresenter statusInfoPresenter)
protected abstract java.lang.String[][] getSQLStatements()
protected abstract java.lang.String[][] getIDCorrections()
IdManager
protected void doSpecials()
public void setStatusInformation(java.lang.String statusInformation)
message
- the status information for the userpublic int getTotalRepareAmount()
protected void report(java.lang.String info, int amount)
public int getCumulatedManipulationAmount()
public java.lang.String[] getInfo()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de