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