Package com.zesped

Examples of com.zesped.DAO


public class CityWriter {

    public static void main(String[] args) throws Exception {
      ModelManager oMan = new ModelManager();
      DAO oDao = new DAO();   
      oDao.init(oMan.getConnectionProperties());
      AtrilSession oSes = DAO.getAdminSession("CityWriter");
      oSes.autoCommit(true);
      oMan.writeCities(oSes, "es");
      oSes.disconnect();
      oSes.close();
      oDao.destroy();
      }
View Full Code Here


  //-----------------------------------------------------------
 
  @BeforeClass public static void init() throws Exception {
    ModelManager oMan = new ModelManager();   
    oDao = new DAO();
    oDao.init(oMan.getConnectionProperties());
    AtrilSession oSes = DAO.getAdminSession("SmokeTest");
    oSes.autoCommit(true);   
    try {
      USRID = User.forEmail(TEST_USER_EMAIL);
View Full Code Here

    bStopOnError = false;
    sEncoding = "UTF-8";
    oAtrilProperties = new Properties();
  oAtrilProperties.load(getClass().getResourceAsStream("connection.properties"));
   
  DAO oDao = new DAO();
  oDao.init(oAtrilProperties)
    final String sDbmsProductName = DAO.getDatabaseProductName();   
    oDao.destroy();
   
    if (sDbmsProductName.equals("MySQL")) {
      sDbms = "mysql";
      iDbms = JDCConnection.DBMS_MYSQL;
    } else {
View Full Code Here

 
  public static void main(String[] args)
    throws Exception {
 
  ModelManager oMan = new ModelManager();
  DAO oDao = null;
 
  oDao = new DAO();   
  oDao.init(oMan.getConnectionProperties());
    oMan.createDataModel();
  oMan.writeInfrastructureDocuments();
  oDao.destroy();

  oDao = new DAO();
    oDao.init(oMan.getConnectionProperties());

    JDCConnection oCon = DAO.getConnection("ModelManager");
    createCache(oCon);
    oCon.close("ModelManager");

  AtrilSession oSes = DAO.getAdminSession("ModelManager");

  createDeposits(oSes)
  oSes.commit();
 
  createCaptureTypes(oSes);
  oSes.commit();
 
  oMan.writeServiceFlavors(oSes);
  oSes.commit();

  oMan.writeProducts(oSes);
  oSes.commit();
 
  oMan.writeVatPercents(oSes);
  oSes.commit();
 
  oMan.writeAccountingAccounts(oSes);
  oSes.commit();

  oMan.writeCountries(oSes);
  oSes.commit();

  oMan.writeStates(oSes, "es");
  oSes.commit();

  /*
  oMan.writeCities(oSes, "es");
  oSes.commit();
  */
 
    oSes.disconnect();
    oSes.close();
    oDao.destroy();
  System.out.println("Done!");
  }
View Full Code Here

TOP

Related Classes of com.zesped.DAO

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.