Class CodeDatabaseAPI
java.lang.Object
edu.suffolk.litlab.efspserver.db.Database
edu.suffolk.litlab.efspserver.ecfcodes.CodeDatabaseAPI
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
CodeDatabase
ECF says that certain parts of the information model of the data that we exchange with the EFM is
contained in Genericode code lists. The EfileProxyServer saves those Genericode code lists in a
SQL database, for immediate use.
This class is the exposed interface between the SQL databases that store genericode info and the rest of the proxy server, particularly { CodeUpdater }. It should be instanianted once per jurisiction.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
createTableIfAbsent
(String tableName) abstract boolean
deleteFromTable
(String tableName) abstract boolean
deleteFromTable
(String tableName, String courtLocation) Gets all court location identifiers (CLI) stored in the database.abstract String
The domain (the juristiction + environment, e.g. illinois-stage) that this database is working over.abstract void
updateTable
(String tableName, String courtName, InputStream is) void
updateTable
(String tableName, String courtName, XMLStreamReader xsr) abstract void
updateTable
(String tableName, String courtName, CodeListDocument doc) abstract void
Methods inherited from class edu.suffolk.litlab.efspserver.db.Database
close, commit, createTablesIfAbsent, rollback, setAutoCommit, setSavepoint
-
Constructor Details
-
CodeDatabaseAPI
-
-
Method Details
-
getDomain
The domain (the juristiction + environment, e.g. illinois-stage) that this database is working over. -
getAllLocations
Gets all court location identifiers (CLI) stored in the database.- Returns:
- a list of all valid CLIs for this jurisdiction
-
updateTable
public abstract void updateTable(String tableName, String courtName, InputStream is) throws jakarta.xml.bind.JAXBException, SQLException, XMLStreamException - Throws:
jakarta.xml.bind.JAXBException
SQLException
XMLStreamException
-
updateTable
public abstract void updateTable(String tableName, String courtName, CodeListDocument doc) throws SQLException - Throws:
SQLException
-
updateTable
public void updateTable(String tableName, String courtName, XMLStreamReader xsr) throws jakarta.xml.bind.JAXBException, SQLException - Throws:
jakarta.xml.bind.JAXBException
SQLException
-
deleteFromTable
- Throws:
SQLException
-
deleteFromTable
- Throws:
SQLException
-
createTableIfAbsent
- Throws:
SQLException
-
getVersionsToUpdate
- Throws:
SQLException
-
vacuumAll
public abstract void vacuumAll()
-