Examples of DBType


Examples of ch.inftec.ju.db.JuConnUtil.DbType

   * @param changeLogResourceName
   * @param parameters
   */
  private void runLiquibaseChangeLog(final String changeLogResourceName, final Map<String, String> parameters) {
    // Make sure we have a transaction when accessing entity manager meta data
    final DbType dbType = this.connUtil.getDbType();
    final String metaDataUserName = this.connUtil.getMetaDataInfo().getUserName();
   
    this.connUtil.doWork(new DbWork() {
      @Override
      public void execute(Connection conn) {
View Full Code Here

Examples of ch.inftec.ju.db.JuConnUtil.DbType

   * @param emptyTables If true, the default tables will be cleaned
   * @param resetSequences If true, sequences (or identity columns) will be reset to 1
   * @param createSchema If true, the Schema will be created (or verified) using Liquibase
   */
  public void prepareDefaultTestData(boolean emptyTables, boolean resetSequences, boolean createSchema) {
    DbType dbType = this.connUtil.getDbType();
   
    if (createSchema) {
      this.runLiquibaseChangeLog("ju-testing/data/default-changeLog.xml");
     
      // For non-MySQL DBs, we also need to create the hibernate_sequence sequence...
View Full Code Here

Examples of ch.inftec.ju.db.JuConnUtil.DbType

   * @param types Types we assume the DB is not
   * @deprecated Use dbIsNot(JuConnUtil, DbType...) instead
   */
  @Deprecated
  public static void dbIsNot(JuEmUtil emUtil, DbType... types) {
    DbType actualType = emUtil.getDbType();
   
    for (DbType type : types) {
      Assume.assumeFalse("Assumed DB was not " + type, type == actualType);
    }
  }
View Full Code Here

Examples of ch.inftec.ju.db.JuConnUtil.DbType

   * DbTypes specified.
   * @param connUtil JuConnUtil
   * @param types Types we assume the DB is not
   */
  public static void dbIsNot(JuConnUtil connUtil, DbType... types) {
    DbType actualType = connUtil.getDbType();
   
    for (DbType type : types) {
      Assume.assumeFalse("Assumed DB was not " + type, type == actualType);
    }
  }
View Full Code Here

Examples of ch.inftec.ju.db.JuConnUtil.DbType

   * @param changeLogResourceName Name of the change log resource. The resource will be loaded using the
   * default class loader.
   */
  public void runLiquibaseChangeLog(final String changeLogResourceName) {
    // Make sure we have a transaction when accessing entity manager meta data
    final DbType dbType = this.connUtil.getDbType();
    final String metaDataUserName = this.connUtil.getMetaDataInfo().getUserName();
//    this.tx.commit(); // We must not be within a managed transaction when performing Liquibase work...
   
    this.connUtil.doWork(new DbWork() {
      @Override
View Full Code Here

Examples of ch.inftec.ju.db.JuConnUtil.DbType

   * @param emptyTables If true, the default tables will be cleaned
   * @param resetSequences If true, sequences (or identity columns) will be reset to 1
   * @param createSchema If true, the Schema will be created (or verified) using Liquibase
   */
  public void prepareDefaultTestData(boolean emptyTables, boolean resetSequences, boolean createSchema) {
    DbType dbType = this.connUtil.getDbType();
   
    if (createSchema) {
      this.runLiquibaseChangeLog("ju-testing/data/default-changeLog.xml");
     
      // For non-MySQL DBs, we also need to create the hibernate_sequence sequence...
View Full Code Here

Examples of ch.inftec.ju.db.JuEmUtil.DbType

   * DbTypes specified.
   * @param emUtil JuEmUtil
   * @param types Types we assume the DB is not
   */
  public static void dbIsNot(JuEmUtil emUtil, DbType... types) {
    DbType actualType = emUtil.getDbType();
   
    for (DbType type : types) {
      Assume.assumeFalse("Assumed DB was not " + type, type == actualType);
    }
  }
View Full Code Here

Examples of ch.inftec.ju.db.JuEmUtil.DbType

   * @param changeLogResourceName Name of the change log resource. The resource will be loaded using the
   * default class loader.
   */
  public void runLiquibaseChangeLog(final String changeLogResourceName) {
    // Make sure we have a transaction when accessing entity manager meta data
    final DbType dbType = this.emUtil.getDbType();
    final String metaDataUserName = this.emUtil.getMetaDataUserName();
    this.tx.commit(); // We must not be within a managed transaction when performing Liquibase work...
   
    this.emUtil.doWork(new DsWork() {
      @Override
View Full Code Here

Examples of ch.inftec.ju.db.JuEmUtil.DbType

   * @param resetSequences If true, sequences (or identity columns) will be reset to 1
   * @param createSchema If true, the Schema will be created (or verified) using Liquibase
   */
  public void prepareDefaultTestData(boolean emptyTables, boolean resetSequences, boolean createSchema) {
    try {
      DbType dbType = this.emUtil.getDbType();
     
      if (createSchema) {
        this.runLiquibaseChangeLog("ju-testing/data/default-changeLog.xml");
       
        // For non-MySQL DBs, we also need to create the hibernate_sequence sequence...
View Full Code Here

Examples of com.antlersoft.analyzer.DBType

    {
      name=name.substring( 0, array_offset);
      array_references="["+array_references;
    }
    String base_type=DBType.TypeStringMap.userToInternal( name);
    DBType found=null;
    try
    {
      if ( base_type==null)
      {
        DBClass referenced=(DBClass)db.findWithIndex( DBClass.CLASS_NAME_INDEX, name);
        if ( referenced!=null)
        {
          found=DBType.getFromClass( db, referenced);
          if ( array_references.length()>0)
            found=(DBType)db.findWithIndex( DBType.TYPE_KEY_INDEX,
                array_references+found.getTypeString());
        }
      }
      else
        found=(DBType)db.findWithIndex( DBType.TYPE_KEY_INDEX, array_references+base_type);
    }
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.