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

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


  private MetaInfo metaInfo;
  @Inject
  private DboDatabaseMeta databaseInfo;
 
  public void addClassForQueries(Class<?> clazz) {
    MetaClassSingle classMeta = (MetaClassSingle)metaInfo.findOrCreate(clazz);
    DboTableMeta metaDbo = classMeta.getMetaDbo();
    scanForAnnotations(classMeta);
    scanSingle(classMeta, metaDbo);
    metaInfo.addTableNameLookup(classMeta);
    databaseInfo.addMetaClassDbo(classMeta.getMetaDbo());
  }
View Full Code Here


    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
    }
   
    if(classMeta.getIdField() == null && !metaDbo.isEmbeddable() && clazz.getSuperclass() != java.lang.Object.class)
View Full Code Here

    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

  private MetaInfo metaInfo;
  @Inject
  private DboDatabaseMeta databaseInfo;

  public void addClassForQueries(Class<?> clazz) {
    MetaClassSingle classMeta = (MetaClassSingle)metaInfo.findOrCreate(clazz);
    DboTableMeta metaDbo = classMeta.getMetaDbo();
    //NOTE: This is causing a double scan since scanSingle was already called on a lot of classes....do we need these calls ....
    scanForAnnotations(classMeta);
    scanSingle(classMeta, metaDbo);
    metaInfo.addTableNameLookup(classMeta);
    databaseInfo.addMetaClassDbo(classMeta.getMetaDbo());
  }
View Full Code Here

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
    }
   
    if(classMeta.getIdField() == null && !metaDbo.isEmbeddable() && clazz.getSuperclass() != java.lang.Object.class)
View Full Code Here

    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(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
    }
   
    if(classMeta.getIdField() == null && !metaDbo.isEmbeddable())
View Full Code Here

  @Inject
  private DboDatabaseMeta databaseInfo;
  private Set<Class> alreadyScanned = new HashSet<Class>();

  public void addClassForQueries(Class<?> clazz) {
    MetaClassSingle classMeta = (MetaClassSingle)metaInfo.findOrCreate(clazz);
    DboTableMeta metaDbo = classMeta.getMetaDbo();
    //NOTE: This is causing a double scan since scanSingle was already called on a lot of classes....do we need these calls ....
    scanForAnnotations(classMeta);
    scanSingle(classMeta, metaDbo);
    metaInfo.addTableNameLookup(classMeta);
    databaseInfo.addMetaClassDbo(classMeta.getMetaDbo());
  }
View Full Code Here

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
      scanForAnnotations(classMeta2);
      scanSingle(classMeta2, metaDbo);
    }
   
    if(classMeta.getIdField() == null && !metaDbo.isEmbeddable() && clazz.getSuperclass() != java.lang.Object.class)
View Full Code Here

TOP

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

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.