Ejemplo n.º 1
0
 public void activateLogging(Object... values) {
   this.close();
   if ((Boolean) values[0]) {
     if (values.length < 2) throw new InvalidParameterException();
     this.conex =
         DbmsInterpreter.connectLogging(db, ((String) values[1]), DbmsInterpreter.properties);
   } else {
     this.conex = DbmsInterpreter.connect(db, DbmsInterpreter.properties);
   }
 }
Ejemplo n.º 2
0
  protected AdminBase(DATABASE db, String... args) {

    this.db = db;
    this.commit = true;
    this.autoCommit = false;
    this.startObtainAll = false;
    this.collection = false;
    this.collectionHasName = false;
    this.forceTable = false;
    this.tableForcedName = "";
    this.manager = new EntityManager();
    this.arrayRs = new Stack<ResultSet>();
    this.conex = DbmsInterpreter.connect(db, args);
  }