Examples of common()


Examples of com.db4o.cs.config.ClientConfiguration.common()

   * @return The object being deleted
   */
  public <T> T delete(T aTNG){
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    logger.log(Level.FINE, "Database Delete Attempt...");
    //ObjectContainer client = server.openClient();
    ObjectSet<T> result = theDB.queryByExample(aTNG);
    T found = (T) result.next();
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   * @return a List of all of the objects deleted
   */
  public <T> List<T> deleteAll(T aSample){
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    List<T> toBeDeleted = retrieveAll(aSample);
    for(T aTNG: toBeDeleted){
      System.out.println("Deleting: "+aTNG);
      theDB.delete(aTNG);
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   * @return a List of all of the objects of the given class in the given project
   */
  public <T> List<Model> deleteAll(T aSample, Project aProject){
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    List<Model> toBeDeleted = retrieveAll(aSample, aProject);
    for(Model aTNG: toBeDeleted){
      System.out.println("Deleting: "+aTNG);
      theDB.delete(aTNG);
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   */
  @SuppressWarnings("rawtypes") //Ignore the warning about the use of type Class
  public List<Model> notRetrieve(final Class anObjectQueried, String aFieldName, final Object theGivenValue) throws WPISuiteException{
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    Method[] allMethods = anObjectQueried.getMethods();
    Method methodToBeSaved = null;
    for(Method m: allMethods){//Cycles through all of the methods in the class anObjectQueried
      if(m.getName().equalsIgnoreCase("get"+aFieldName)){
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   */
  @SuppressWarnings("rawtypes") //Ignore the warning about the use of type Class
  public List<Model> orRetrieve(final Class anObjectQueried, String[] aFieldNameList, final List<Object> theGivenValueList) throws WPISuiteException, IllegalArgumentException, IllegalAccessException, InvocationTargetException{
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    final int aFieldNameListSize = aFieldNameList.length;
    final int theGivenValueListSize = theGivenValueList.size();
    if(aFieldNameListSize != theGivenValueListSize)
    {
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   */
  @SuppressWarnings("rawtypes") //Ignore the warning about the use of type Class
  public List<Model> andRetrieve(final Class anObjectQueried, String[] aFieldNameList, final List<Object> theGivenValueList) throws WPISuiteException, IllegalArgumentException, IllegalAccessException, InvocationTargetException{
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    final int aFieldNameListSize = aFieldNameList.length;
    final int theGivenValueListSize = theGivenValueList.size();
    if(aFieldNameListSize != theGivenValueListSize)
    {
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   */
  @SuppressWarnings("rawtypes") //Ignore the warning about the use of type Class
  public List<Model> andRetrieve(final Class anObjectQueried, String[] aFieldNameList, final List<Object> theGivenValueList, final Project aProject) throws WPISuiteException, IllegalArgumentException, IllegalAccessException, InvocationTargetException{
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    if(aProject == null){
      return andRetrieve(anObjectQueried, aFieldNameList, theGivenValueList);
    }
    final int aFieldNameListSize = aFieldNameList.length;
View Full Code Here

Examples of com.db4o.cs.config.ClientConfiguration.common()

   */
  @SuppressWarnings("rawtypes") //Ignore the warning about the use of type Class
  public List<Model> orRetrieve(final Class anObjectQueried, String[] aFieldNameList, final List<Object> theGivenValueList, final Project aProject) throws WPISuiteException, IllegalArgumentException, IllegalAccessException, InvocationTargetException{
    // Please see Wiki for more information on the ServerConfiguration.
    ClientConfiguration config = Db4oClientServer.newClientConfiguration();
    config.common().reflectWith(new JdkReflector(Thread.currentThread().getContextClassLoader()));

    if(aProject==null){
      return orRetrieve(anObjectQueried, aFieldNameList, theGivenValueList);
    }
    final int aFieldNameListSize = aFieldNameList.length;
View Full Code Here

Examples of com.db4o.cs.config.ServerConfiguration.common()

      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

Examples of com.db4o.cs.config.ServerConfiguration.common()

      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
Copyright © 2018 www.massapi.com. 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.