| java.lang.Object com.db4o.Db4o
All known Subclasses: com.db4o.ext.ExtDb4o,
Method Summary | |
public static Configuration | cloneConfiguration() Creates a clone of the global db4o
Configuration Configuration . | public static Configuration | configure() returns the global db4o
Configuration Configuration context
for the running JVM session. | public static void | main(String args) prints the version name of this db4o version to System.out . | public static Configuration | newConfiguration() Creates a fresh
Configuration Configuration instance. | public static ObjectContainer | openClient(String hostName, int port, String user, String password) Operates just like
Db4o.openClient(ConfigurationStringintStringString) , but uses
the global db4o
Configuration Configuration context. | public static ObjectContainer | openClient(Configuration config, String hostName, int port, String user, String password) opens an
ObjectContainer ObjectContainer client and connects it to the specified named server and port. | public static ObjectContainer | openClient(Configuration config, String hostName, int port, String user, String password, NativeSocketFactory socketFactory) opens an
ObjectContainer ObjectContainer client and connects it to the specified named server and port. | final public static ObjectContainer | openFile(String databaseFileName) Operates just like
Db4o.openFile(ConfigurationString) , but uses
the global db4o
Configuration Configuration context.
opens an
ObjectContainer ObjectContainer on the specified database file for local use.
A database file can only be opened once, subsequent attempts to open
another
ObjectContainer ObjectContainer against the same file will result in
a
DatabaseFileLockedException DatabaseFileLockedException .
Database files can only be accessed for readwrite access from one process
(one Java VM) at one time. | final public static ObjectContainer | openFile(Configuration config, String databaseFileName) opens an
ObjectContainer ObjectContainer on the specified database file for local use.
A database file can only be opened once, subsequent attempts to open
another
ObjectContainer ObjectContainer against the same file will result in
a
DatabaseFileLockedException DatabaseFileLockedException .
Database files can only be accessed for readwrite access from one process
(one Java VM) at one time. | final protected static ObjectContainer | openMemoryFile1(Configuration config, MemoryFile memoryFile) | final public static ObjectServer | openServer(String databaseFileName, int port) Operates just like
Db4o.openServer(ConfigurationStringint) , but uses
the global db4o
Configuration Configuration context.
opens an
ObjectServer ObjectServer on the specified database file and port.
If the server does not need to listen on a port because it will only be used
in embedded mode with
ObjectServer.openClient , specify '0' as the
port number.
Parameters: databaseFileName - an absolute or relative path to the database file Parameters: port - the port to be used, or 0, if the server should not open a port,because it will only be used with ObjectServer.openClient.Specify a value < 0 if an arbitrary free port should be chosen - see ExtObjectServer.port. | final public static ObjectServer | openServer(Configuration config, String databaseFileName, int port) opens an
ObjectServer ObjectServer on the specified database file and port.
If the server does not need to listen on a port because it will only be used
in embedded mode with
ObjectServer.openClient , specify '0' as the
port number.
Parameters: config - a custom Configuration Configuration instance to be obtained via Db4o.newConfiguration Parameters: databaseFileName - an absolute or relative path to the database file Parameters: port - the port to be used, or 0, if the server should not open a port,because it will only be used with ObjectServer.openClient.Specify a value < 0 if an arbitrary free port should be chosen - see ExtObjectServer.port. | final public static ObjectServer | openServer(Configuration config, String databaseFileName, int port, NativeSocketFactory socketFactory) opens an
ObjectServer ObjectServer on the specified database file and port.
If the server does not need to listen on a port because it will only be used
in embedded mode with
ObjectServer.openClient , specify '0' as the
port number.
Parameters: config - a custom Configuration Configuration instance to be obtained via Db4o.newConfiguration Parameters: databaseFileName - an absolute or relative path to the database file Parameters: port - the port to be used, or 0, if the server should not open a port,because it will only be used with ObjectServer.openClient.Specify a value < 0 if an arbitrary free port should be chosen - see ExtObjectServer.port. Parameters: socketFactory - the NativeSocketFactory to be used for socket creation an ObjectServer ObjectServer listeningon the specified port. See Also: Configuration.readOnly See Also: Configuration.encrypt See Also: Configuration.password throws: Db4oIOException - I/O operation failed or was unexpectedly interrupted. throws: DatabaseFileLockedException - the required database file is locked by another process. throws: IncompatibleFileFormatException - runtime com.db4o.config.Configuration configuration is not compatiblewith the configuration of the database file. | static Reflector | reflector() | final public static String | version() returns the version name of the used db4o version. |
cloneConfiguration | public static Configuration cloneConfiguration()(Code) | | Creates a clone of the global db4o
Configuration Configuration .
a fresh configuration with all option values set to the valuescurrently configured for the global db4o configuration context |
main | public static void main(String args)(Code) | | prints the version name of this db4o version to System.out .
|
newConfiguration | public static Configuration newConfiguration()(Code) | | Creates a fresh
Configuration Configuration instance.
a fresh, independent configuration with all options set to their default values |
openServer | final public static ObjectServer openServer(String databaseFileName, int port) throws Db4oIOException, IncompatibleFileFormatException, OldFormatException, DatabaseFileLockedException, DatabaseReadOnlyException(Code) | | Operates just like
Db4o.openServer(ConfigurationStringint) , but uses
the global db4o
Configuration Configuration context.
opens an
ObjectServer ObjectServer on the specified database file and port.
If the server does not need to listen on a port because it will only be used
in embedded mode with
ObjectServer.openClient , specify '0' as the
port number.
Parameters: databaseFileName - an absolute or relative path to the database file Parameters: port - the port to be used, or 0, if the server should not open a port,because it will only be used with ObjectServer.openClient.Specify a value < 0 if an arbitrary free port should be chosen - see ExtObjectServer.port. an ObjectServer ObjectServer listeningon the specified port. See Also: Configuration.readOnly See Also: Configuration.encrypt See Also: Configuration.password throws: Db4oIOException - I/O operation failed or was unexpectedly interrupted. throws: DatabaseFileLockedException - the required database file is locked by another process. throws: IncompatibleFileFormatException - runtime com.db4o.config.Configuration configuration is not compatiblewith the configuration of the database file. throws: OldFormatException - open operation failed because the database fileis in old format and com.db4o.config.Configuration.allowVersionUpdates(boolean) is set to false. throws: DatabaseReadOnlyException - database was configured as read-only. |
openServer | final public static ObjectServer openServer(Configuration config, String databaseFileName, int port) throws Db4oIOException, IncompatibleFileFormatException, OldFormatException, DatabaseFileLockedException, DatabaseReadOnlyException(Code) | | opens an
ObjectServer ObjectServer on the specified database file and port.
If the server does not need to listen on a port because it will only be used
in embedded mode with
ObjectServer.openClient , specify '0' as the
port number.
Parameters: config - a custom Configuration Configuration instance to be obtained via Db4o.newConfiguration Parameters: databaseFileName - an absolute or relative path to the database file Parameters: port - the port to be used, or 0, if the server should not open a port,because it will only be used with ObjectServer.openClient.Specify a value < 0 if an arbitrary free port should be chosen - see ExtObjectServer.port. an ObjectServer ObjectServer listeningon the specified port. See Also: Configuration.readOnly See Also: Configuration.encrypt See Also: Configuration.password throws: Db4oIOException - I/O operation failed or was unexpectedly interrupted. throws: DatabaseFileLockedException - the required database file is locked by another process. throws: IncompatibleFileFormatException - runtime com.db4o.config.Configuration configuration is not compatiblewith the configuration of the database file. throws: OldFormatException - open operation failed because the database fileis in old format and com.db4o.config.Configuration.allowVersionUpdates(boolean) is set to false. throws: DatabaseReadOnlyException - database was configured as read-only. |
openServer | final public static ObjectServer openServer(Configuration config, String databaseFileName, int port, NativeSocketFactory socketFactory) throws Db4oIOException, IncompatibleFileFormatException, OldFormatException, DatabaseFileLockedException, DatabaseReadOnlyException(Code) | | opens an
ObjectServer ObjectServer on the specified database file and port.
If the server does not need to listen on a port because it will only be used
in embedded mode with
ObjectServer.openClient , specify '0' as the
port number.
Parameters: config - a custom Configuration Configuration instance to be obtained via Db4o.newConfiguration Parameters: databaseFileName - an absolute or relative path to the database file Parameters: port - the port to be used, or 0, if the server should not open a port,because it will only be used with ObjectServer.openClient.Specify a value < 0 if an arbitrary free port should be chosen - see ExtObjectServer.port. Parameters: socketFactory - the NativeSocketFactory to be used for socket creation an ObjectServer ObjectServer listeningon the specified port. See Also: Configuration.readOnly See Also: Configuration.encrypt See Also: Configuration.password throws: Db4oIOException - I/O operation failed or was unexpectedly interrupted. throws: DatabaseFileLockedException - the required database file is locked by another process. throws: IncompatibleFileFormatException - runtime com.db4o.config.Configuration configuration is not compatiblewith the configuration of the database file. throws: OldFormatException - open operation failed because the database fileis in old format and com.db4o.config.Configuration.allowVersionUpdates(boolean) is set to false. throws: DatabaseReadOnlyException - database was configured as read-only. |
version | final public static String version()(Code) | | returns the version name of the used db4o version.
version information as a String . |
|
|