public class Import extends Object implements AutoCloseable
Use the methods in the following order:
constructor Import(Map), setOntology(Ontology), processOntology(), close()
| Constructor and Description |
|---|
Import(Map<String,String> props)
Connect to the i2b2 database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
main(String[] args) |
void |
processOntology() |
void |
setOntology(Ontology ontology) |
public Import(Map<String,String> props) throws ClassNotFoundException, SQLException
Two connections are established: One for access to the metadata schema, the second for access to concept_dimension in the data schema.
Connection arguments start with meta.jdbc. or data.jdbc..
props - connection parameters.
Use meta.sourcesystem_cd for the source system.
jdbc.host, jdbc.port, jdbc.database are used to construct the connect string.
Any other parameters starting with jdbc. are also passed to DriverManager.getConnection(String, Properties).
More parameters: ont.language and ont.scheme.
ClassNotFoundException - if database driver not foundSQLException - for SQL errorspublic void processOntology()
throws SQLException,
OntologyException
SQLExceptionOntologyExceptionpublic void setOntology(Ontology ontology)
public void close()
close in interface AutoCloseablepublic static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2013–2015 R.W.Majeed. All rights reserved.