Package com.db4o.reflect.generic

Examples of com.db4o.reflect.generic.GenericClass


  public boolean processAtServer(ServerMessageDispatcher serverThread) {
    ObjectContainerBase stream = stream();
    unmarshall();
    try{
      ClassInfo classMeta = (ClassInfo) stream().unmarshall(_payLoad);
      GenericClass genericClass = stream.getClassMetaHelper().classMetaToGenericClass(stream().reflector(), classMeta);
      if (genericClass != null) {
        synchronized (streamLock()) {
          Transaction trans = stream.getSystemTransaction();
 
          ClassMetadata yapClass = stream.produceYapClass(genericClass);
View Full Code Here


      return (GenericClass) reflector.forName(classMeta.getClassName());
    }

    String className = classMeta.getClassName();
    // look up from generic class table.
    GenericClass genericClass = lookupGenericClass(className);
    if (genericClass != null) {
      return genericClass;
    }

    GenericClass genericSuperClass = null;
    ClassInfo superClassMeta = classMeta.getSuperClass();
    if (superClassMeta != null) {
      genericSuperClass = classMetaToGenericClass(reflector,
          superClassMeta);
    }

    genericClass = new GenericClass(reflector, null, className,
        genericSuperClass);
    registerGenericClass(className, genericClass);

    FieldInfo[] fields = classMeta.getFields();
    GenericField[] genericFields = new GenericField[fields.length];

    for (int i = 0; i < fields.length; ++i) {
      ClassInfo fieldClassMeta = fields[i].getFieldClass();
      String fieldName = fields[i].getFieldName();
      GenericClass genericFieldClass = classMetaToGenericClass(reflector,
          fieldClassMeta);
      genericFields[i] = new GenericField(fieldName, genericFieldClass,
          fields[i]._isPrimitive, fields[i]._isArray, fields[i]._isNArray);
    }
View Full Code Here

TOP

Related Classes of com.db4o.reflect.generic.GenericClass

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.