Package org.openstreetmap.osmosis.apidb.common

Examples of org.openstreetmap.osmosis.apidb.common.DatabaseContext2


  /**
   * {@inheritDoc}
   */
  @Override
  public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          runImpl(dbCtx);

        } finally {
            dbCtx.release();
        }
  }
View Full Code Here


    /**
     * Reads all data from the database and send it to the sink.
     */
    public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
            private DatabaseContext2 dbCtxInner = dbCtx;

        @Override
        protected void doInTransactionWithoutResult(TransactionStatus arg0) {
          runImpl(dbCtxInner);
        } });

        } finally {
            dbCtx.release();
        }
    }
View Full Code Here

    /**
     * Reads all data from the database and send it to the sink.
     */
    public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
            private DatabaseContext2 dbCtxInner = dbCtx;

        @Override
        protected void doInTransactionWithoutResult(TransactionStatus arg0) {
          runImpl(dbCtxInner);
        } });

        } finally {
            dbCtx.release();
        }
    }
View Full Code Here

    /**
     * Reads all data from the database and send it to the sink.
     */
    public void run() {
        final DatabaseContext2 dbCtx = new DatabaseContext2(loginCredentials);
     
        try {
          dbCtx.executeWithinTransaction(new TransactionCallbackWithoutResult() {
            private DatabaseContext2 dbCtxInner = dbCtx;

        @Override
        protected void doInTransactionWithoutResult(TransactionStatus arg0) {
          runImpl(dbCtxInner);
        } });

        } finally {
            dbCtx.release();
        }
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.apidb.common.DatabaseContext2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.