public abstract class BaseTransaction extends Object implements Transaction
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logmon |
private Properties |
props |
Constructor and Description |
---|
BaseTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
freeze(long timeout) |
boolean |
getBoolean(String key)
Returns
true if and only if the corresponding property exists
and is equal to the string "true" . |
Integer |
getInteger(String key)
Determines the integer value of the property with the specified name.
|
Integer |
getInteger(String key,
int value)
Determines the integer value of the property with the specified name.
|
String |
getProperty(String key)
Searches for the property with the specified key in the specific Transaction
property list.
|
String |
getProperty(String key,
String defaultValue)
Searches for the property with the specified key in the specific Transaction
property list.
|
void |
loadProperties(File dir) |
void |
saveProperties(File dir) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
backup, begin, close, commit, containsOperations, create, create, createByteArray, createByteArray, delete, delete, getCommitCount, getList, getOperationCount, getPhase, getPhaseInfo, init, isPersistent, load, load, loadAll, loadByteArray, loadByteArray, release, save, save, save, saveByteArray, saveByteArray, saveByteArray, stop, useLoadAll
protected static Logger logmon
private Properties props
public void freeze(long timeout) throws InterruptedException
freeze
in interface Transaction
InterruptedException
public void loadProperties(File dir) throws InvalidPropertiesFormatException, FileNotFoundException, IOException
public void saveProperties(File dir) throws IOException
IOException
public String getProperty(String key)
null
if the property is not found.getProperty
in interface Transaction
key
- the property key.public String getProperty(String key, String defaultValue)
getProperty
in interface Transaction
key
- the property key.defaultValue
- a default value.public Integer getInteger(String key)
getInteger
in interface Transaction
key
- property name.public Integer getInteger(String key, int value)
getInteger
in interface Transaction
key
- property name.value
- a default value.public boolean getBoolean(String key)
true
if and only if the corresponding property exists
and is equal to the string "true"
.getBoolean
in interface Transaction
key
- the property name.boolean
value of the property.Copyright © 2022 ScalAgent D.T.. All rights reserved.