com.partnersoft.v3x.io.sql
Class DatabaseMirror

java.lang.Object
  extended by com.partnersoft.v3x.io.sql.DatabaseMirror

public class DatabaseMirror
extends java.lang.Object

A thread that runs queries on one database and uses them to populate another.


Constructor Summary
DatabaseMirror()
           
 
Method Summary
 void copy()
          Copies all tables from the source to the destination.
 int getBatchLength()
           
 DatabaseConnectionConfig getDestinationDatabase()
           
 DatabaseConnectionConfig getSourceDatabase()
           
 java.util.Map getTables()
           
 boolean isHssql()
           
static void main(java.lang.String[] argv)
           
 void setBatchLength(int newLength)
           
 void setDestinationDatabase(DatabaseConnectionConfig newDatabase)
           
 void setHssql(boolean tizit)
           
 void setSourceDatabase(DatabaseConnectionConfig newDatabase)
           
 void setTables(java.util.Map newTables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseMirror

public DatabaseMirror()
Method Detail

main

public static void main(java.lang.String[] argv)

copy

public void copy()
Copies all tables from the source to the destination.


getSourceDatabase

public DatabaseConnectionConfig getSourceDatabase()

setSourceDatabase

public void setSourceDatabase(DatabaseConnectionConfig newDatabase)

getDestinationDatabase

public DatabaseConnectionConfig getDestinationDatabase()

setDestinationDatabase

public void setDestinationDatabase(DatabaseConnectionConfig newDatabase)

getBatchLength

public int getBatchLength()

setBatchLength

public void setBatchLength(int newLength)

getTables

public java.util.Map getTables()

setTables

public void setTables(java.util.Map newTables)

isHssql

public boolean isHssql()

setHssql

public void setHssql(boolean tizit)