Examples of JdkReflector


Examples of com.db4o.reflect.jdk.JdkReflector

   * @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.reflect.jdk.JdkReflector

   * @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.reflect.jdk.JdkReflector

   */
  @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.reflect.jdk.JdkReflector

   */
  @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.reflect.jdk.JdkReflector

   */
  @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.reflect.jdk.JdkReflector

   */
  @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.reflect.jdk.JdkReflector

   */
  @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.reflect.jdk.JdkReflector

           
            // if (cl == null || classloaderName.indexOf("eclipse") >= 0) {
                classLoader= Db4o.class.getClassLoader();
            // }
      }
      return new JdkReflector((ClassLoader)classLoader);
    }
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.