/** * Creates a new instance. * * @param dbCtx * The database context to use for all database access. */ public PostgresqlIdentityValueLoader(DatabaseContext dbCtx) { this.dbCtx = dbCtx; statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx * The database context to use for all database access. */ public MysqlIdentityValueLoader(DatabaseContext dbCtx) { this.dbCtx = dbCtx; statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx * The database context to use for accessing the database. */ protected BaseDao(DatabaseContext dbCtx) { this.dbCtx = dbCtx; statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx * The database context to use for all database access. */ public PostgresqlIdentityValueLoader(DatabaseContext dbCtx) { this.dbCtx = dbCtx; statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx * The database context to use for all database access. */ public MysqlIdentityValueLoader(DatabaseContext dbCtx) { this.dbCtx = dbCtx; statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx The database context to use for all database access. */ public UserManager(DatabaseContext dbCtx) { this.dbCtx = dbCtx; updatedUsers = new HashSet<Integer>(); statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx The database context to use for all database access. */ public UserManager(DatabaseContext dbCtx) { this.dbCtx = dbCtx; updatedUsers = new HashSet<Integer>(); statementContainer = new ReleasableStatementContainer(); }
/** * Creates a new instance. * * @param dbCtx The database context to use for all database access. */ public ChangesetManager(DatabaseContext dbCtx) { this.dbCtx = dbCtx; releasableContainer = new ReleasableContainer(); statementContainer = new ReleasableStatementContainer(); releasableContainer.add(statementContainer); knownChangesetIds = new LinkedHashSet<Long>(32768); }
/** * Creates a new instance. * * @param dbCtx The database context to use for all database access. */ public ChangesetManager(DatabaseContext dbCtx) { this.dbCtx = dbCtx; releasableContainer = new ReleasableContainer(); statementContainer = new ReleasableStatementContainer(); releasableContainer.add(statementContainer); knownChangesetIds = new LinkedHashSet<Long>(32768); }
/** * Performs post-change database updates. */ public void complete() { CallableStatement updateStatement; try (ReleasableStatementContainer statementContainer = new ReleasableStatementContainer()) { updateStatement = statementContainer.add(dbCtx.prepareCall("{call osmosisUpdate()}")); updateStatement.executeUpdate(); } catch (SQLException e) { throw new OsmosisRuntimeException("Unable to invoke the osmosis update stored function.", e); } // Clear all action records. actionDao.truncate(); }
/** * Creates a new instance. * * @param loginCredentials Contains all information required to connect to the database. * @param populateCurrentTables If true, the current tables will be populated as well as history * tables. */ public ChangeWriter(DatabaseLoginCredentials loginCredentials, boolean populateCurrentTables) { dbCtx = new DatabaseContext(loginCredentials); statementContainer = new ReleasableStatementContainer(); userManager = new UserManager(dbCtx); changesetManager = new ChangesetManager(dbCtx); this.populateCurrentTables = populateCurrentTables; tileCalculator = new TileCalculator(); memberTypeRenderer = new MemberTypeRenderer(); }
/** * Creates a new instance. * * @param loginCredentials Contains all information required to connect to the database. * @param populateCurrentTables If true, the current tables will be populated as well as history * tables. */ public ChangeWriter(DatabaseLoginCredentials loginCredentials, boolean populateCurrentTables) { dbCtx = new DatabaseContext(loginCredentials); statementContainer = new ReleasableStatementContainer(); userManager = new UserManager(dbCtx); changesetManager = new ChangesetManager(dbCtx); this.populateCurrentTables = populateCurrentTables; tileCalculator = new TileCalculator(); memberTypeRenderer = new MemberTypeRenderer(); }
wayGeometryBuilder = new WayGeometryBuilder(storeType); statementContainer = new ReleasableStatementContainer();