|
db4o v1.10 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.db4o.Db4o
factory class with static methods to configure and start the engine.
This class serves as a factory class, to open
ObjectContainer
connections.
The global db4o Configuration
object for the running Java session is available through the
configure()
method.
On running the Db4o
class it prints the version
information to System.out.
Method Summary | |
static Configuration |
configure()
returns the global db4o Configuration object for the running Java session. |
static void |
echo(boolean displayMessages)
turns db4o messages on and off. |
static void |
main(java.lang.String[] args)
prints version information to System.out. |
static ObjectContainer |
openFile(java.lang.String databaseFileName)
opens an ObjectContainer
interface to the specified database file. |
static ObjectContainer |
use(java.lang.Object jNLPRandomAccessFile)
Java Web Start interface to open an ObjectContainer
on a JNLPRandomAccessFile.
|
static java.lang.String |
version()
returns the used db4o version. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Configuration configure()
Configuration
the global Configuration objectpublic static final void echo(boolean displayMessages)
displayMessages
- true
if echo messages are to be given outpublic static void main(java.lang.String[] args)
public static final ObjectContainer openFile(java.lang.String databaseFileName)
ObjectContainer
interface to the specified database file.fileName
- the full path to the database filepublic static final ObjectContainer use(java.lang.Object jNLPRandomAccessFile)
ObjectContainer
on a JNLPRandomAccessFile.
Make sure the JNLPRandomAccessFile is opened for readwrite access and that
sufficient filespace is reserved with FileContents.setMaxLength().jNLPRandomAccessFile
- a javax.jnlp.JNLPRandomAccessFile, typically opened with
javax.jnlp.FileContents.getRandomAccessFile("rw");public static final java.lang.String version()