Class TFCodeDatabase
java.lang.Object
edu.suffolk.litlab.efsp.db.Database
edu.suffolk.litlab.efsp.ecfcodes.CodeDatabaseAPI
edu.suffolk.litlab.efsp.truefiling.ecfcodes.TFCodeDatabase
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTFCodeDatabase(Jurisdiction jurisdiction, TrueFilingEnv env, Connection conn) -
Method Summary
Modifier and TypeMethodDescriptioncourtCoverageCaseCategory(String searchTerm) courtCoverageCaseType(String searchTerm) voidcreateTableIfAbsent(String tableName) voidbooleandeleteFromTable(String tableName) booleandeleteFromTable(String tableName, String courtLocation) Deletes all entries in a domain from a table in the given table fromcourtLocation.static TFCodeDatabasefromDS(Jurisdiction jurisdiction, TrueFilingEnv env, DataSource ds) Gets all court location identifiers (CLI) stored in the database.getBundleStatuses(String location) getCaseCategories(String courtLocationId) getCaseCategoryNames(String courtLocationId) getCaseTypeNamesFor(String courtLocationId, String caseCategoryCode, Optional<Boolean> initial) getCaseTypeWith(String courtLocationId, UUID caseTypeCode) getDocumentStatuses(String location) getDocumentTypes(String location, String caseTypeCode) getErrorCodes(String location) getFeeExceptionReasons(String location) The jurisdiction (e.g illinois) that this database is working overgetPartyTypeFor(String court) Returns a map from court names to tables that needed to be updated for it.retrieveCaseCategoryByName(String categoryName) Get the code and court locations of the case categories that match the given name exactly.retrieveCaseTypeByName(String caseTypeName) Get the code and court locations of the case types that match the given name exactly.searchCaseCategory(String searchTerm) Gets all distinct case category names that have the search term in them.searchCaseType(String searchTerm) Gets all distinct case type names that have the search term in them.voidupdateTable(String tableName, String courtName, InputStream is) voidupdateTable(String tableName, String courtName, String newVersion, Iterator<Map<String, String>> rows) The iterator (rows) will be consumed by this function.voidMaps the name of an ECF element to be substituted by a court-specific code list or extension.Methods inherited from class edu.suffolk.litlab.efsp.ecfcodes.CodeDatabaseAPI
genericSearch, indiciesExists, safetyWrap, safetyWrapOpt, tableExists, validTableMethods inherited from class edu.suffolk.litlab.efsp.db.Database
close, commit, rollback, setAutoCommit, setSavepoint
-
Constructor Details
-
TFCodeDatabase
-
-
Method Details
-
fromDS
-
getJurisdiction
Description copied from class:CodeDatabaseAPIThe jurisdiction (e.g illinois) that this database is working over- Specified by:
getJurisdictionin classCodeDatabaseAPI
-
xmlElemToTableName
Description copied from class:CodeDatabaseAPIMaps the name of an ECF element to be substituted by a court-specific code list or extension.- Specified by:
xmlElemToTableNamein classCodeDatabaseAPI
-
systemTables
- Specified by:
systemTablesin classCodeDatabaseAPI
-
getAllLocations
Description copied from class:CodeDatabaseAPIGets all court location identifiers (CLI) stored in the database.- Specified by:
getAllLocationsin classCodeDatabaseAPI- Returns:
- a list of all valid CLIs for this jurisdiction
-
getLocationNames
- Specified by:
getLocationNamesin classCodeDatabaseAPI
-
getFileableLocationNames
- Specified by:
getFileableLocationNamesin classCodeDatabaseAPI
-
getFileableInitialLocationNames
- Specified by:
getFileableInitialLocationNamesin classCodeDatabaseAPI
-
getFileableSubsequentLocationNames
- Specified by:
getFileableSubsequentLocationNamesin classCodeDatabaseAPI
-
getPartyTypeFor
-
updateTable
public void updateTable(String tableName, String courtName, InputStream is) throws SQLException, CodeDocException - Specified by:
updateTablein classCodeDatabaseAPI- Throws:
SQLExceptionCodeDocException
-
updateTable
public void updateTable(String tableName, String courtName, String newVersion, Iterator<Map<String, String>> rows) throws SQLExceptionDescription copied from class:CodeDatabaseAPIThe iterator (rows) will be consumed by this function.- Specified by:
updateTablein classCodeDatabaseAPI- Throws:
SQLException
-
deleteFromTable
- Specified by:
deleteFromTablein classCodeDatabaseAPI- Throws:
SQLException
-
deleteFromTable
Description copied from class:CodeDatabaseAPIDeletes all entries in a domain from a table in the given table fromcourtLocation.- Specified by:
deleteFromTablein classCodeDatabaseAPI- Throws:
SQLException
-
createTableIfAbsent
- Specified by:
createTableIfAbsentin classCodeDatabaseAPI- Throws:
SQLException
-
getVersionsToUpdate
Description copied from class:CodeDatabaseAPIReturns a map from court names to tables that needed to be updated for it.- Specified by:
getVersionsToUpdatein classCodeDatabaseAPI- Throws:
SQLException
-
vacuumAll
public void vacuumAll()- Specified by:
vacuumAllin classCodeDatabaseAPI
-
searchCaseCategory
Description copied from class:CodeDatabaseAPIGets all distinct case category names that have the search term in them.- Specified by:
searchCaseCategoryin classCodeDatabaseAPI- Parameters:
searchTerm-- Returns:
-
courtCoverageCaseCategory
- Specified by:
courtCoverageCaseCategoryin classCodeDatabaseAPI
-
retrieveCaseCategoryByName
Description copied from class:CodeDatabaseAPIGet the code and court locations of the case categories that match the given name exactly.- Specified by:
retrieveCaseCategoryByNamein classCodeDatabaseAPI- Parameters:
categoryName-- Returns:
-
getCaseCategoryNames
- Specified by:
getCaseCategoryNamesin classCodeDatabaseAPI
-
getCaseCategories
-
searchCaseType
Description copied from class:CodeDatabaseAPIGets all distinct case type names that have the search term in them.- Specified by:
searchCaseTypein classCodeDatabaseAPI- Parameters:
searchTerm-- Returns:
-
courtCoverageCaseType
- Specified by:
courtCoverageCaseTypein classCodeDatabaseAPI
-
retrieveCaseTypeByName
Description copied from class:CodeDatabaseAPIGet the code and court locations of the case types that match the given name exactly.- Specified by:
retrieveCaseTypeByNamein classCodeDatabaseAPI- Parameters:
caseTypeName-- Returns:
-
getCaseTypeNamesFor
public List<NameAndCode> getCaseTypeNamesFor(String courtLocationId, String caseCategoryCode, Optional<Boolean> initial) - Specified by:
getCaseTypeNamesForin classCodeDatabaseAPI
-
getCaseTypeWith
-
getCauseOfActionCodes
-
getBundleStatuses
-
getDocumentStatuses
-
getDocumentTypes
-
getErrorCodes
-
getFeeExceptionReasons
-
createTablesIfAbsent
- Specified by:
createTablesIfAbsentin classDatabase- Throws:
SQLException
-