Class DBCollectionManager
java.lang.Object
databaseLogic.databaseElementLogic.DBCollectionManager
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddElementToDataBase(Route route) voidclose()protected booleanprotected booleanupdateElementInDataBase(Route route, Long id) protected voidupdateNullableLocation(Location location, ResultSet lastLocationIdRs, int columnIndex)
-
Constructor Details
-
DBCollectionManager
- Throws:
SQLExceptionIOException
-
-
Method Details
-
updateElementInDataBase
- Throws:
SQLException
-
updateNullableLocation
protected void updateNullableLocation(Location location, ResultSet lastLocationIdRs, int columnIndex) throws ElementNotAddedException, SQLException - Throws:
ElementNotAddedExceptionSQLException
-
addElementToDataBase
- Throws:
SQLException
-
removeElementFromDatabase
- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-