com.irisel.oms.exchange
Class DataExchange
java.lang.Object
com.irisel.oms.exchange.DataExchange
public final class DataExchange
- extends java.lang.Object
Constructor Summary |
DataExchange()
This constructor requires previous initialization of the system. |
DataExchange(java.lang.String dbType,
java.lang.String host,
java.lang.String port,
java.lang.String db,
java.lang.String user,
java.lang.String pass)
|
Method Summary |
static void |
doExport(java.lang.String[] args)
Exports data to a file |
static void |
doExportSchema(java.lang.String[] args)
|
static void |
doFixSequentials(java.lang.String[] args)
|
static void |
doImport(java.lang.String[] args)
|
void |
export(com.irisel.oms.exchange.DataExchange.DataExchangeSpec spec,
java.io.File exportFile)
|
void |
export(java.io.File specFile,
java.io.File exportFile)
|
void |
exportSchema()
|
void |
imp(java.io.File archiveFile)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPRESS
public static final boolean COMPRESS
- See Also:
- Constant Field Values
XML_SERIALIZATION
public static boolean XML_SERIALIZATION
DataExchange
public DataExchange(java.lang.String dbType,
java.lang.String host,
java.lang.String port,
java.lang.String db,
java.lang.String user,
java.lang.String pass)
throws DataExchangeException
- Throws:
DataExchangeException
DataExchange
public DataExchange()
throws java.lang.Exception
- This constructor requires previous initialization of the system.
- Throws:
java.sql.SQLException
DataModelException
ConnectionException
java.lang.Exception
export
public final void export(com.irisel.oms.exchange.DataExchange.DataExchangeSpec spec,
java.io.File exportFile)
throws DataExchangeException,
java.io.FileNotFoundException,
java.io.IOException,
java.sql.SQLException,
javax.xml.transform.TransformerConfigurationException,
org.xml.sax.SAXException,
javax.xml.stream.XMLStreamException,
QueryTreeException,
ConnectionException,
DataModelException
- Throws:
DataExchangeException
java.io.FileNotFoundException
java.io.IOException
java.sql.SQLException
javax.xml.transform.TransformerConfigurationException
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
QueryTreeException
ConnectionException
DataModelException
export
public final void export(java.io.File specFile,
java.io.File exportFile)
throws DataExchangeException,
java.io.FileNotFoundException,
java.io.IOException,
java.sql.SQLException,
javax.xml.transform.TransformerConfigurationException,
org.xml.sax.SAXException,
javax.xml.stream.XMLStreamException,
QueryTreeException,
ConnectionException,
DataModelException
- Throws:
DataExchangeException
java.io.FileNotFoundException
java.io.IOException
java.sql.SQLException
javax.xml.transform.TransformerConfigurationException
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
QueryTreeException
ConnectionException
DataModelException
imp
public final void imp(java.io.File archiveFile)
throws DataExchangeException,
java.io.FileNotFoundException,
javax.xml.transform.TransformerConfigurationException,
java.io.IOException,
org.xml.sax.SAXException,
javax.xml.stream.XMLStreamException
- Throws:
DataExchangeException
java.io.FileNotFoundException
javax.xml.transform.TransformerConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
exportSchema
public final void exportSchema()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args
-
- Throws:
java.lang.Exception
doExport
public static void doExport(java.lang.String[] args)
throws java.lang.Exception
- Exports data to a file
- Parameters:
args
- args[0] is XML spec document, args[1] is export file name.
- Throws:
java.lang.Exception
org.xml.sax.SAXException
java.io.IOException
doImport
public static void doImport(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
doFixSequentials
public static void doFixSequentials(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
doExportSchema
public static void doExportSchema(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception