Package com.alvazan.orm.impl.meta.data

Examples of com.alvazan.orm.impl.meta.data.MetaClassInheritance


      SpiMetaQuery metaQuery = createQueryAndAdd(classMeta, query);
      classMeta.addQuery(query.name(), metaQuery);
    }
   
    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance parentMeta = (MetaClassInheritance) classMeta;
      @SuppressWarnings("unchecked")
      Collection<MetaClassSingle> subMetas = parentMeta.fetchSubclassList();
      for(MetaClassSingle meta : subMetas) {
        setupQueryStuff(meta);
      }
    }
  }
View Full Code Here


   
    if(theSuperclass != null) {
      //we need to swap the classMeta to the more specific class meta which may have not been
      //created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
      //that @NoSqlEntity when it scans the subclasses.
      MetaClassInheritance meta = (MetaClassInheritance) fkMeta;
      fkMeta = meta.findOrCreate(entityType, theSuperclass);
    }
   
    if(field.getType().equals(CursorToMany.class)) {
      MetaCursorField metaField = metaCursorProvider.get();
      metaField.setup(t, field, colName, ownerMeta, fkMeta);
View Full Code Here

   
    if(theSuperclass != null) {
      //we need to swap the classMeta to the more specific class meta which may have not been
      //created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
      //that @NoSqlEntity when it scans the subclasses.
      MetaClassInheritance meta = (MetaClassInheritance) classMeta;
      classMeta = meta.findOrCreate(field.getType(), theSuperclass);
    }
   
    metaField.setup(t, field, colName, classMeta, isIndexed, isPartitionedBy);
    return metaField;
  }
View Full Code Here

   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    DboTableMeta metaDbo = classMeta.getMetaDbo();

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
View Full Code Here

    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      DboTableMeta metaDbo = classMeta2.getMetaDbo();
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
    }
   
    if(classMeta.getIdField() == null)
View Full Code Here

   
    if(theSuperclass != null) {
      //we need to swap the classMeta to the more specific class meta which may have not been
      //created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
      //that @NoSqlEntity when it scans the subclasses.
      MetaClassInheritance meta = (MetaClassInheritance) classMeta;
      classMeta = meta.findOrCreate(field.getType(), theSuperclass);
    }
   
    metaField.setup(t, field, colName, classMeta, isIndexed, isPartitionedBy);
    return metaField;
  }
View Full Code Here

   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    DboTableMeta metaDbo = classMeta.getMetaDbo();

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
View Full Code Here

   
    if(theSuperclass != null) {
      //we need to swap the classMeta to the more specific class meta which may have not been
      //created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
      //that @NoSqlEntity when it scans the subclasses.
      MetaClassInheritance meta = (MetaClassInheritance) fkMeta;
      fkMeta = meta.findOrCreate(entityType, theSuperclass);
    }
   
    if(field.getType().equals(CursorToMany.class)) {
      MetaCursorField metaField = metaCursorProvider.get();
      metaField.setup(t, field, colName, ownerMeta, fkMeta);
View Full Code Here

   
    if(theSuperclass != null) {
      //we need to swap the classMeta to the more specific class meta which may have not been
      //created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
      //that @NoSqlEntity when it scans the subclasses.
      MetaClassInheritance meta = (MetaClassInheritance) classMeta;
      classMeta = meta.findOrCreate(field.getType(), theSuperclass);
    }
   
    metaField.setup(t, field, colName, classMeta, isIndexed, isPartitionedBy);
    return metaField;
  }
View Full Code Here

    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      DboTableMeta metaDbo = classMeta2.getMetaDbo();
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
    }
   
    if(classMeta.getIdField() == null)
View Full Code Here

TOP

Related Classes of com.alvazan.orm.impl.meta.data.MetaClassInheritance

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.