Class DBIntegrationUtility
java.lang.Object
databaseLogic.databaseElementLogic.DBIntegrationUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRouteToDBAndCollection
(Route route, long creatorID) clearCollectionInDBAndMemory
(long creatorID) <T extends Collection<Route>>
TgetAccessibleCollection
(long callerID, Supplier<T> constructor) static DBIntegrationUtility
boolean
removeFromCollectionAndDB
(long creatorID, long routeID) updateElementInDBAndCollection
(Route route, long elementID, long creatorID)
-
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:
SQLException
IOException
-
removeFromCollectionAndDB
public boolean removeFromCollectionAndDB(long creatorID, long routeID) -
clearCollectionInDBAndMemory
-