Codota Logo
SchemaUtils.createConfiguration
Code IndexAdd Codota to your IDE (free)

How to use
createConfiguration
method
in
uk.ac.ebi.intact.core.util.SchemaUtils

Best Java code snippets using uk.ac.ebi.intact.core.util.SchemaUtils.createConfiguration (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.core/intact-core

public static String[] getTableNames() {
  List<String> tableNames = new ArrayList<String>();
  Configuration cfg = createConfiguration(new Properties());
  Iterator<PersistentClass> classMappings = cfg.getClassMappings();
  while (classMappings.hasNext()) {
    PersistentClass o =  classMappings.next();
    tableNames.add(o.getTable().getName());
  }
  return tableNames.toArray(new String[tableNames.size()]);
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static String[] getTableNames() {
  List<String> tableNames = new ArrayList<String>();
  Configuration cfg = createConfiguration(new Properties());
  Iterator<PersistentClass> classMappings = cfg.getClassMappings();
  while (classMappings.hasNext()) {
    PersistentClass o =  classMappings.next();
    tableNames.add(o.getTable().getName());
  }
  return tableNames.toArray(new String[tableNames.size()]);
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Generates the DDL schema
 * @param dialect the dialect to use (complete class name for the hibernate dialect object)
 * @return an array containing the SQL statements
 */
public static String[] generateCreateSchemaDDL(String dialect) {
  Properties props = new Properties();
  props.put(Environment.DIALECT, dialect);
  Configuration cfg = createConfiguration(props);
  String[] sqls = cfg.generateSchemaCreationScript(Dialect.getDialect(props));
  addDelimiters(sqls);
  return sqls;
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Generates the DDL schema
 * @param dialect the dialect to use (complete class name for the hibernate dialect object)
 * @return an array containing the SQL statements
 */
public static String[] generateCreateSchemaDDL(String dialect) {
  Properties props = new Properties();
  props.put(Environment.DIALECT, dialect);
  Configuration cfg = createConfiguration(props);
  String[] sqls = cfg.generateSchemaCreationScript(Dialect.getDialect(props));
  addDelimiters(sqls);
  return sqls;
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Generates the DDL schema
 * @param dialect the dialect to use (complete class name for the hibernate dialect object)
 * @return an array containing the SQL statements
 */
public static String[] generateDropSchemaDDL(String dialect) {
  Properties props = new Properties();
  props.put(Environment.DIALECT, dialect);
  Configuration cfg = createConfiguration(props);
  String[] sqls = cfg.generateSchemaCreationScript(Dialect.getDialect(props));
  addDelimiters(sqls);
  return sqls;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Generates the DDL schema
 * @param dialect the dialect to use (complete class name for the hibernate dialect object)
 * @return an array containing the SQL statements
 */
public static String[] generateDropSchemaDDL(String dialect) {
  Properties props = new Properties();
  props.put(Environment.DIALECT, dialect);
  Configuration cfg = createConfiguration(props);
  String[] sqls = cfg.generateSchemaCreationScript(Dialect.getDialect(props));
  addDelimiters(sqls);
  return sqls;
}
origin: uk.ac.ebi.intact.core/intact-core

public static String[] generateUpdateSchemaDDL(String dialect, Connection connection) throws SQLException {
  Properties props = new Properties();
  props.put(Environment.DIALECT, dialect);
  Configuration cfg = createConfiguration(props);
  final Dialect dialectObj = Dialect.getDialect(props);
  String[] sqls = cfg.generateSchemaUpdateScript(dialectObj, new DatabaseMetadata(connection, dialectObj) );
  addDelimiters(sqls);
  return sqls;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

public static String[] generateUpdateSchemaDDL(String dialect, Connection connection) throws SQLException {
  Properties props = new Properties();
  props.put(Environment.DIALECT, dialect);
  Configuration cfg = createConfiguration(props);
  final Dialect dialectObj = Dialect.getDialect(props);
  String[] sqls = cfg.generateSchemaUpdateScript(dialectObj, new DatabaseMetadata(connection, dialectObj) );
  addDelimiters(sqls);
  return sqls;
}
uk.ac.ebi.intact.core.utilSchemaUtilscreateConfiguration

Popular methods of SchemaUtils

  • createSchema
    Creates a schema
  • dropSchema
    Drops the current schema, emptying the database
  • generateCreateSchemaDDL
    Generates the DDL schema
  • generateDropSchemaDDL
    Generates the DDL schema
  • resetSchema
    Drops and creates the schema. Beware that it commits transactions
  • addDelimiters
  • generateUpdateSchemaDDL
  • newSchemaExport

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • orElseThrow (Optional)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JTable (javax.swing)
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now