Package com.arconsis.android.datarobot.builder.schema.visitor

Examples of com.arconsis.android.datarobot.builder.schema.visitor.TypeResolvingVisitor


  @Override
  public Schema read() {
    Schema schema = new Schema(persistence.dbName(), persistence.dbVersion(), updateHookClassName, createHookClassName);
    for (Element element : entities) {
      TypeElement entity = element.accept(new TypeResolvingVisitor(), null);
      TableReader tableReader = new TableReader(entity, entityNames, messager);
      Table read = tableReader.read();
      if (read != null) {
        schema.addTable(read);
      }
View Full Code Here


      messager.printMessage(Kind.ERROR,
          "Only one " + hookAnnotation.getCanonicalName() + " hook is allowed with the project", annotated.iterator().next());
      return null;
    }
    Element updateElement = annotated.iterator().next();
    TypeElement typeElement = updateElement.accept(new TypeResolvingVisitor(), null);
    boolean implementsDbUpdate = false;
    for (TypeMirror typeMirror : typeElement.getInterfaces()) {
      if (typeMirror.toString().equals(hookInterface.getCanonicalName())) {
        implementsDbUpdate = true;
      }
View Full Code Here

    if (updateAnnotated.size() > 1) {
      messager.printMessage(Kind.ERROR, "Only one @Update hook is allowed with the project", updateAnnotated.iterator().next());
      return null;
    }
    Element updateElement = updateAnnotated.iterator().next();
    TypeElement typeElement = updateElement.accept(new TypeResolvingVisitor(), null);
    boolean implementsDbUpdate = false;
    for (TypeMirror typeMirror : typeElement.getInterfaces()) {
      if (typeMirror.toString().equals(DbUpdate.class.getCanonicalName())) {
        implementsDbUpdate = true;
      }
View Full Code Here

  @Override
  public Schema read() {
    Schema schema = new Schema(persistence.dbName(), persistence.dbVersion(), updateHookClassName);
    for (Element element : entities) {
      TypeElement entity = element.accept(new TypeResolvingVisitor(), null);
      TableReader tableReader = new TableReader(entity, entityNames, messager);
      Table read = tableReader.read();
      if (read != null) {
        schema.addTable(read);
      }
View Full Code Here

TOP

Related Classes of com.arconsis.android.datarobot.builder.schema.visitor.TypeResolvingVisitor

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.