Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb
Class HsqlDatabaseProperties  view HsqlDatabaseProperties download HsqlDatabaseProperties.java

java.lang.Object
  extended byorg.hsqldb.HsqlProperties
      extended byorg.hsqldb.HsqlDatabaseProperties

class HsqlDatabaseProperties
extends HsqlProperties

Manages a .properties file for a database.

Version:
1.7.0

Field Summary
private  java.io.FileInputStream propsFileStream
           
 
Fields inherited from class org.hsqldb.HsqlProperties
fileName, stringProps
 
Constructor Summary
private HsqlDatabaseProperties()
           
  HsqlDatabaseProperties(java.lang.String name)
           
 
Method Summary
 void close()
           
protected  boolean isFileOpen()
          check by trying to delete the properties file this will not work if some application has the file open this is why the properties file is kept open when running ;-) todo: check if this works in all operating systems
 void load()
           
 void save()
          Method declaration
 
Methods inherited from class org.hsqldb.HsqlProperties
addProperties, argArrayToProps, checkFileExists, getIntegerProperty, getProperty, getProperty, isPropertyTrue, isPropertyTrue, removeProperty, setFileName, setProperty, setProperty, setProperty, setPropertyIfNotExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propsFileStream

private java.io.FileInputStream propsFileStream
Constructor Detail

HsqlDatabaseProperties

private HsqlDatabaseProperties()

HsqlDatabaseProperties

public HsqlDatabaseProperties(java.lang.String name)
Method Detail

close

public void close()
           throws java.sql.SQLException

load

public void load()
          throws java.sql.SQLException
Overrides:
load in class HsqlProperties

save

public void save()
          throws java.sql.SQLException
Method declaration

Overrides:
save in class HsqlProperties

isFileOpen

protected boolean isFileOpen()
                      throws java.sql.SQLException
check by trying to delete the properties file this will not work if some application has the file open this is why the properties file is kept open when running ;-) todo: check if this works in all operating systems