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