Package database.logic.element
Class DBCollectionManager
java.lang.Object
database.logic.element.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) void
updateSingleObject
(Long objId, int dbIndex, Object valueToSet) Deprecated.
-
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
-
updateSingleObject
@Deprecated public void updateSingleObject(Long objId, int dbIndex, Object valueToSet) throws SQLException Deprecated.- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-