Examples of SchemaTool


Examples of org.apache.openjpa.jdbc.schema.SchemaTool

  private static LogImpl getLogImpl(JDBCConfiguration conf) {
    return (LogImpl)conf.getLog(JDBCConfiguration.LOG_SCHEMA);
  }

  private static void runSchemaTool(JDBCConfigurationImpl conf, String action) throws Exception {
    SchemaTool st = new SchemaTool(conf, action);
    st.setIgnoreErrors(true);
    st.setOpenJPATables(true);
    st.setIndexes(false);
    st.setPrimaryKeys(false);
    if (!SchemaTool.ACTION_DROPDB.equals(action)) {
      st.setSchemaGroup(st.getDBSchemaGroup());
    }
    st.run();
  }
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.SchemaTool

        Log log = _conf.getLog(OpenJPAConfiguration.LOG_RUNTIME);
        if (log.isInfoEnabled())
            log.info(_loc.get("make-native-seq"));

        // create the sequence
        SchemaTool tool = new SchemaTool(_conf);
        tool.setIgnoreErrors(true);
        tool.createSequence(_seq);
    }
View Full Code Here

Examples of org.kitesdk.data.hbase.tool.SchemaTool

  public static SchemaManager initializeSchemaManager(
      HTablePool tablePool, String directory) throws Exception {
    SchemaManager entityManager = new DefaultSchemaManager(
        tablePool);
    SchemaTool schemaTool = new SchemaTool(new HBaseAdmin(getConf()),
        entityManager);
    schemaTool.createOrMigrateSchemaDirectory(directory, true);
    return entityManager;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.