Package model

Examples of model.SQLData


import model.JPAResourceClassModel;
import model.SQLData;

public class GridFTPEndpointsGenerator {
  private static SQLData createSQLData() {
    SQLData data = new SQLData();
    data.setTableName("GRIDFTP_ENDPOINT");
    data.getFieldData().put("DATA_MOVEMENT_INTERFACE_ID", Arrays.asList(new String[]{"VARCHAR", "(255)", "NOT", "NULL"}));
    data.getFieldData().put("ENDPOINT", Arrays.asList(new String[]{"VARCHAR", "(255)", "NOT", "NULL"}));
    data.getPrimaryKeys().add("DATA_MOVEMENT_INTERFACE_ID");
    data.getPrimaryKeys().add("ENDPOINT");
    data.getForiegnKeys().put("DATA_MOVEMENT_INTERFACE_ID", new SQLData.ForiegnKeyData("GRIDFTP_DATA_MOVEMENT(DATA_MOVEMENT_INTERFACE_ID)","GridftpDataMovement","GridftpDataMovementResource"));
    return data;
  }
View Full Code Here


    data.getPrimaryKeys().add("ENDPOINT");
    data.getForiegnKeys().put("DATA_MOVEMENT_INTERFACE_ID", new SQLData.ForiegnKeyData("GRIDFTP_DATA_MOVEMENT(DATA_MOVEMENT_INTERFACE_ID)","GridftpDataMovement","GridftpDataMovementResource"));
    return data;
  }
  public static void testSqlGen() {
    SQLData data = createSQLData();
    SQLGenerator sqlGenerator = new SQLGenerator();
    System.out.println(sqlGenerator.generateSQLCreateQuery(data));
  }
View Full Code Here

    SQLGenerator sqlGenerator = new SQLGenerator();
    System.out.println(sqlGenerator.generateSQLCreateQuery(data));
  }
 
  public static void testJPAClassGen() {
    SQLData data = createSQLData();
    JPAClassGenerator jpaClassGenerator = new JPAClassGenerator();
    jpaClassGenerator.setJpaClassPackageName("org.apache.aiaravata.application.catalog.data.model");
    JPAClassModel model = jpaClassGenerator.createJPAClassModel(data);
    System.out.println(jpaClassGenerator.generateJPAClass(model));
    System.out.println(jpaClassGenerator.generateJPAPKClass(model.pkClassModel));
View Full Code Here

    System.out.println(jpaClassGenerator.generateJPAPKClass(model.pkClassModel));
    System.out.println(jpaClassGenerator.generatePersistenceXmlEntry(model));
  }
 
  public static void testJPAResourceClassGen() {
    SQLData data = createSQLData();
    JPAClassGenerator jpaClassGenerator = new JPAClassGenerator();
    JPAClassModel model = jpaClassGenerator.createJPAClassModel(data);
    JPAResourceClassGenerator jpaResourceClassGenerator = new JPAResourceClassGenerator();
    jpaResourceClassGenerator.setExceptionClassName("AppCatalogException");
    jpaResourceClassGenerator.setJpaUtilsClassName("AppCatalogJPAUtils");
View Full Code Here

import model.JPAResourceClassModel;
import model.SQLData;

public class ComputeResourceDescriptionGenerator {
  private static SQLData createSQLData() {
    SQLData data = new SQLData();
    data.setTableName("COMPUTE_RESOURCE");
    data.getFieldData().put("RESOURCE_ID", Arrays.asList(new String[]{"VARCHAR", "(255)", "NOT", "NULL"}));
    data.getFieldData().put("HOST_NAME", Arrays.asList(new String[]{"VARCHAR", "(255)", "NOT", "NULL"}));
    data.getFieldData().put("RESOURCE_DESCRIPTION", Arrays.asList(new String[]{"VARCHAR", "(255)"}));
    data.getPrimaryKeys().add("RESOURCE_ID");
    return data;
  }
View Full Code Here

    data.getFieldData().put("RESOURCE_DESCRIPTION", Arrays.asList(new String[]{"VARCHAR", "(255)"}));
    data.getPrimaryKeys().add("RESOURCE_ID");
    return data;
  }
  public static void testSqlGen() {
    SQLData data = createSQLData();
    SQLGenerator sqlGenerator = new SQLGenerator();
    System.out.println(sqlGenerator.generateSQLCreateQuery(data));
  }
View Full Code Here

    SQLGenerator sqlGenerator = new SQLGenerator();
    System.out.println(sqlGenerator.generateSQLCreateQuery(data));
  }
 
  public static void testJPAClassGen() {
    SQLData data = createSQLData();
    JPAClassGenerator jpaClassGenerator = new JPAClassGenerator();
    jpaClassGenerator.setJpaClassPackageName("org.apache.aiaravata.application.catalog.data.model");
    JPAClassModel model = jpaClassGenerator.createJPAClassModel(data);
    System.out.println(jpaClassGenerator.generateJPAClass(model));
    System.out.println(jpaClassGenerator.generateJPAPKClass(model.pkClassModel));
View Full Code Here

    System.out.println(jpaClassGenerator.generateJPAPKClass(model.pkClassModel));
    System.out.println(jpaClassGenerator.generatePersistenceXmlEntry(model));
  }
 
  public static void testJPAResourceClassGen() {
    SQLData data = createSQLData();
    JPAClassGenerator jpaClassGenerator = new JPAClassGenerator();
    JPAClassModel model = jpaClassGenerator.createJPAClassModel(data);
    JPAResourceClassGenerator jpaResourceClassGenerator = new JPAResourceClassGenerator();
    jpaResourceClassGenerator.setExceptionClassName("AppCatalogException");
    jpaResourceClassGenerator.setJpaUtilsClassName("AppCatalogJPAUtils");
View Full Code Here

import model.JPAResourceClassModel;
import model.SQLData;

public class LocalDataMovementGenerator {
  private static SQLData createSQLData() {
    SQLData data = new SQLData();
    data.setTableName("LOCAL_DATA_MOVEMENT");
    data.getFieldData().put("DATA_MOVEMENT_INTERFACE_ID", Arrays.asList(new String[]{"VARCHAR", "(255)", "NOT", "NULL"}));
    data.getPrimaryKeys().add("DATA_MOVEMENT_INTERFACE_ID");
    return data;
  }
View Full Code Here

    data.getFieldData().put("DATA_MOVEMENT_INTERFACE_ID", Arrays.asList(new String[]{"VARCHAR", "(255)", "NOT", "NULL"}));
    data.getPrimaryKeys().add("DATA_MOVEMENT_INTERFACE_ID");
    return data;
  }
  public static void testSqlGen() {
    SQLData data = createSQLData();
    SQLGenerator sqlGenerator = new SQLGenerator();
    System.out.println(sqlGenerator.generateSQLCreateQuery(data));
  }
View Full Code Here

TOP

Related Classes of model.SQLData

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.