Skip to content
rnentjes edited this page Dec 16, 2012 · 11 revisions

test

  • PersistentManager.DATA_DIRECTORY (String), location for the transaction log and snapshots. Defaults to "persistent".
  • PersistentManager.AUTOCOMMIT (true/false), whether store/remove actions outside of transactions are allowed and will be executed. Defaults to false.
  • PersistentManager.SAFEMODE (true/false), if enabled any query on the object model will return a copy so no changes can be made outside of transactions (requires autocommit == false). Defaults to false.
  • PersistentManager.FILE_AGE_THRESHOLD (long, time is ms), maximum age of a transaction log file. Defaults to one minute.
  • PersistentManager.FILE_SIZE_THRESHOLD (long, size in bytes), maximum size of a transaction log file. Defaults to 10 MB.

Setting

Set properties before any object models calls are made, eg:

public static void main(String [] args) {
    System.setProperty(PersistentManager.AUTOCOMMIT, String.valueOf(true));
    System.setProperty(PersistentManager.SAFEMODE, String.valueOf(false));

    new MyProgramStart();
}

Clone this wiki locally