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

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


      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);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaToManyField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here


      throw new RuntimeException("You have entityType="+entityType.getName()+" so that class needs the NoSqlEntity annotation" +
          " since field has OneToMany annotation.  field="+field.getDeclaringClass().getName()+"."+field.getName()+" (or your wrote in the wrong entityType??)");

    MetaAbstractClass<?> fkMeta = metaInfo.findOrCreate(entityType);
    if(field.getType().equals(CursorToMany.class)) {
      MetaCursorField metaField = metaCursorProvider.get();
      metaField.setup(t, field, colName, ownerMeta, fkMeta);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaListField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here

      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);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaToManyField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here

      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);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaToManyField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here

      throw new RuntimeException("You have entityType="+entityType.getName()+" so that class needs the NoSqlEntity annotation" +
          " since field has OneToMany annotation.  field="+field.getDeclaringClass().getName()+"."+field.getName()+" (or your wrote in the wrong entityType??)");

    MetaAbstractClass<?> fkMeta = metaInfo.findOrCreate(entityType);
    if(field.getType().equals(CursorToMany.class)) {
      MetaCursorField metaField = metaCursorProvider.get();
      metaField.setup(t, field, colName, ownerMeta, fkMeta);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaToManyField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here

      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);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaToManyField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here

      throw new RuntimeException("You have entityType="+entityType.getName()+" so that class needs the NoSqlEntity annotation" +
          " since field has OneToMany annotation.  field="+field.getDeclaringClass().getName()+"."+field.getName()+" (or your wrote in the wrong entityType??)");

    MetaAbstractClass<?> fkMeta = metaInfo.findOrCreate(entityType);
    if(field.getType().equals(CursorToMany.class)) {
      MetaCursorField metaField = metaCursorProvider.get();
      metaField.setup(t, field, colName, ownerMeta, fkMeta);
      return metaField;
    }
    //field's type must be Map or List right now today
    if(!field.getType().equals(Map.class) && !field.getType().equals(List.class)
        && !field.getType().equals(Set.class) && !field.getType().equals(Collection.class))
      throw new RuntimeException("field="+field+" must be Set, Collection, List or Map since it is annotated with OneToMany");

    MetaToManyField metaField = metaListProvider.get();
    metaField.setup(t, field, colName,  fkMeta, fieldForKey);
   
    return metaField;
  }
View Full Code Here

TOP

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

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.