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

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

Best Java code snippets using uk.ac.ebi.intact.core.util.SchemaUtils.createSchema (Showing top 7 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

/**
 * Creates a schema and initialize the database
 */
public static void createSchema() {
  createSchema(true);
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Creates a schema and initialize the database
 */
public static void createSchema() {
  createSchema(true);
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Creates a schema and initialize the database
 */
public static void createSchema() throws IntactTransactionException {
  createSchema(true);
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Creates a schema
 * @param initializeDatabase If false, do not initialize the database (e.g. don't create Institution)
 */
public void createSchema(boolean initializeDatabase) throws IntactTransactionException {
  SchemaUtils.createSchema(initializeDatabase);
}
origin: uk.ac.ebi.intact.core/intact-core

  /**
   * Drops and creates the schema. Beware that it commits transactions
   * @param initializeDatabase If false, do not initialize the database (e.g. don't create Institution)
   */
  public static void resetSchema(boolean initializeDatabase) throws IntactTransactionException {
    if (log.isDebugEnabled()) log.debug("Resetting schema");

    dropSchema();
    createSchema(initializeDatabase);
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

  /**
   * Drops and creates the schema. Beware that it commits transactions
   * @param initializeDatabase If false, do not initialize the database (e.g. don't create Institution)
   */
  public static void resetSchema(boolean initializeDatabase) throws IntactTransactionException {
    if (log.isDebugEnabled()) log.debug("Resetting schema");

    dropSchema();
    createSchema(initializeDatabase);
  }
}
origin: uk.ac.ebi.intact/intact-core

  /**
   * Drops and creates the schema. Beware that it commits transactions
   * @param initializeDatabase If false, do not initialize the database (e.g. don't create Institution)
   */
  public static void resetSchema(boolean initializeDatabase) throws IntactTransactionException {
    if (log.isDebugEnabled()) log.debug("Resetting schema");

    DataContext dataContext = IntactContext.getCurrentInstance().getDataContext();

    if (dataContext.isTransactionActive()) {
      throw new IllegalStateException("To reset the schema, the transaction must NOT be active: "+dataContext.getDaoFactory().getCurrentTransaction());
    }

    dropSchema();
    createSchema(initializeDatabase);
  }
}
uk.ac.ebi.intact.core.utilSchemaUtilscreateSchema

Javadoc

Creates a schema and initialize the database

Popular methods of SchemaUtils

  • 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
  • createConfiguration
  • generateUpdateSchemaDDL
  • newSchemaExport

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • orElseThrow (Optional)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Reference (javax.naming)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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