Class DBIntegrationUtility

java.lang.Object
databaseLogic.databaseElementLogic.DBIntegrationUtility

public class DBIntegrationUtility extends Object
  • Constructor Details

    • DBIntegrationUtility

      public DBIntegrationUtility()
  • Method Details

    • getInstance

      public static DBIntegrationUtility getInstance()
    • addRouteToDBAndCollection

      public StatusResponse addRouteToDBAndCollection (Route route, long creatorID)
    • updateElementInDBAndCollection

      public StatusResponse updateElementInDBAndCollection (Route route, long elementID, long creatorID)
    • 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

      public StatusResponse clearCollectionInDBAndMemory (long creatorID)