Package org.hsqldb.persist

Examples of org.hsqldb.persist.HsqlDatabaseProperties


        boolean isNew;

        setState(DATABASE_OPENING);

        try {
            databaseProperties = new HsqlDatabaseProperties(this);
            isNew = !DatabaseURL.isFileBasedDatabaseType(sType)
                    ||!databaseProperties.checkFileExists();

            if (isNew && urlProperties.isPropertyTrue("ifexists")) {
                throw Trace.error(Trace.DATABASE_NOT_EXISTS, sName);
View Full Code Here


    case 316:
      this.session.checkAdmin();
      str1 = this.tokenizer.getSimpleName();
      if (!this.tokenizer.wasQuotedIdentifier())
        throw Trace.error(125);
      HsqlDatabaseProperties localHsqlDatabaseProperties = this.database.getProperties();
      boolean bool1 = localHsqlDatabaseProperties.isBoolean(str1);
      boolean bool2 = localHsqlDatabaseProperties.isIntegral(str1);
      boolean bool4 = localHsqlDatabaseProperties.isString(str1);
      Trace.check((bool1) || (bool2) || (bool4), 33, str1);
      int k = bool2 ? 4 : bool1 ? 16 : 12;
      Object localObject2 = this.tokenizer.getInType(k);
      if (("hsqldb.cache_file_scale".equals(str1)) && ((this.database.logger.hasCache()) || (((Integer)localObject2).intValue() != 8)))
        Trace.throwerror(33, str1);
      localHsqlDatabaseProperties.setDatabaseProperty(str1, localObject2.toString().toLowerCase());
      localHsqlDatabaseProperties.setDatabaseVariables();
      break;
    case 338:
      this.session.setScripting(false);
      this.session.setSchema(this.tokenizer.getSimpleName());
      break;
View Full Code Here

      addColumn(localTable, "PROPERTY_CLASS", 12, false);
      localTable.createPrimaryKey(null, new int[] { 0, 1, 2 }, true);
      return localTable;
    }
    String str1 = "SESSION";
    HsqlDatabaseProperties localHsqlDatabaseProperties = this.database.getProperties();
    String str2 = "database.properties";
    Iterator localIterator = localHsqlDatabaseProperties.getUserDefinedPropertyData().iterator();
    while (localIterator.hasNext())
    {
      Object[] arrayOfObject2 = (Object[])localIterator.next();
      arrayOfObject1 = localTable.getEmptyRowData();
      arrayOfObject1[0] = str1;
      arrayOfObject1[1] = str2;
      arrayOfObject1[2] = arrayOfObject2[0];
      arrayOfObject1[3] = localHsqlDatabaseProperties.getProperty((String)arrayOfObject1[2]);
      arrayOfObject1[4] = arrayOfObject2[2];
      localTable.insertSys(arrayOfObject1);
    }
    Object[] arrayOfObject1 = localTable.getEmptyRowData();
    arrayOfObject1[0] = str1;
View Full Code Here

    throws HsqlException
  {
    setState(4);
    try
    {
      this.databaseProperties = new HsqlDatabaseProperties(this);
      int i = (!DatabaseURL.isFileBasedDatabaseType(this.sType)) || (!this.databaseProperties.checkFileExists()) ? 1 : 0;
      if ((i != 0) && (this.urlProperties.isPropertyTrue("ifexists")))
        throw Trace.error(94, this.sName);
      this.databaseProperties.load();
      this.databaseProperties.setURLProperties(this.urlProperties);
View Full Code Here

      addColumn(localTable1, "IN_KEY", 16, false);
      localTable1.createPrimaryKey(null, new int[] { 0, 8, 9, 10, 1 }, false);
      return localTable1;
    }
    DITableInfo localDITableInfo = new DITableInfo();
    HsqlDatabaseProperties localHsqlDatabaseProperties = this.database.getProperties();
    Iterator localIterator = localHsqlDatabaseProperties.isPropertyTrue("hsqldb.system_table_bri") ? allTables() : this.database.schemaManager.allTablesIterator();
    while (localIterator.hasNext())
    {
      Table localTable2 = (Table)localIterator.next();
      if ((localTable2.isView()) || (!isAccessibleTable(localTable2)))
        continue;
View Full Code Here

      addColumn(localTable1, "ROW_CARDINALITY", 4);
      localTable1.createPrimaryKey(null, new int[] { 3, 6, 5, 7, 4, 2 }, false);
      return localTable1;
    }
    DITableInfo localDITableInfo = new DITableInfo();
    HsqlDatabaseProperties localHsqlDatabaseProperties = this.database.getProperties();
    Iterator localIterator = localHsqlDatabaseProperties.isPropertyTrue("hsqldb.system_table_indexinfo") ? allTables() : this.database.schemaManager.allTablesIterator();
    while (localIterator.hasNext())
    {
      Table localTable2 = (Table)localIterator.next();
      if ((localTable2.isView()) || (!isAccessibleTable(localTable2)))
        continue;
View Full Code Here

      addColumn(localTable1, "KEY_SEQ", 5, false);
      addColumn(localTable1, "PK_NAME", 12);
      localTable1.createPrimaryKey(null, new int[] { 3, 2, 1, 0 }, false);
      return localTable1;
    }
    HsqlDatabaseProperties localHsqlDatabaseProperties = this.database.getProperties();
    Iterator localIterator = localHsqlDatabaseProperties.isPropertyTrue("hsqldb.system_table_primarykeys") ? allTables() : this.database.schemaManager.allTablesIterator();
    while (localIterator.hasNext())
    {
      Table localTable2 = (Table)localIterator.next();
      if ((localTable2.isView()) || (!isAccessibleTable(localTable2)) || (!localTable2.hasPrimaryKey()))
        continue;
View Full Code Here

TOP

Related Classes of org.hsqldb.persist.HsqlDatabaseProperties

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.