Package database.logic.element
Class DBIntegrationUtility
java.lang.Object
database.logic.element.DBIntegrationUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRouteToDBAndCollection(Route route, long creatorID) clearCollectionInDBAndMemory(long creatorID) <T extends Collection<Route>>
TgetAccessibleCollection(long callerID, Supplier<T> constructor) static DBIntegrationUtilitybooleanremoveFromCollectionAndDB(long creatorID, long routeID) updateElementInDBAndCollection(Route route, long elementID, long creatorID) updateSingleField(long creatorID, Long objId, RouteFields field, Object valueToSet)
-
Constructor Details
-
DBIntegrationUtility
public DBIntegrationUtility()
-
-
Method Details
-
getInstance
-
addRouteToDBAndCollection
-
updateElementInDBAndCollection
-
getAccessibleCollection
public <T extends Collection<Route>> T getAccessibleCollection(long callerID, Supplier<T> constructor) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
removeFromCollectionAndDB
public boolean removeFromCollectionAndDB(long creatorID, long routeID) -
clearCollectionInDBAndMemory
-
updateSingleField
public StatusResponse updateSingleField(long creatorID, Long objId, RouteFields field, Object valueToSet)
-