Package com.db4o.cs.config

Examples of com.db4o.cs.config.ServerConfiguration


    {
      logger.log(Level.FINE, "Opening connection to db4o database...");
      myself = new DataStore();
      // accessLocalServer
      // Please see Wiki for more information on the ServerConfiguration.
      ServerConfiguration config = Db4oClientServer.newServerConfiguration();
      config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));
      config.common().objectClass(User.class).storeTransientFields(true); // Enables data persistence for passwords

      //Connect to the Database
      server = Db4oClientServer.openServer(config, WPI_TNG_DB, PORT);
      server.grantAccess(DB4oUser,DB4oPass);
View Full Code Here

TOP

Related Classes of com.db4o.cs.config.ServerConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.