Package org.hivedb

Examples of org.hivedb.UnsupportedDialectException


    else if (dialect == HiveDbDialect.H2)
      statement = "int not null auto_increment primary key";
    else if (dialect == HiveDbDialect.Derby)
      statement = "int not null generated always as identity primary key";
    else
      throw new UnsupportedDialectException("Unsupported dialect: " + dialect.toString());
    return statement;
  }
View Full Code Here


  {
    if (dialect.equals(HiveDbDialect.MySql) || dialect.equals(HiveDbDialect.H2))
      return "BOOLEAN";
    else if (dialect.equals(HiveDbDialect.Derby))
      return "INT";     
    throw new UnsupportedDialectException("No option boolean option configured for " + dialect.name());
  }
View Full Code Here

    else if(dialect == HiveDbDialect.Derby)
      return DERBY;
    else if(dialect == HiveDbDialect.MySql)
      return MYSQL;
    else
      throw new UnsupportedDialectException("Unkown database dialect.  HiveDB supports MySQL, H2 and Derby.");
  }
View Full Code Here

    else if(dialect.toLowerCase().equals(DERBY.toLowerCase()))
      return HiveDbDialect.Derby;
    else if(dialect.toLowerCase().equals(MYSQL.toLowerCase()))
      return HiveDbDialect.MySql;
    else
      throw new UnsupportedDialectException("Unkown database dialect.  HiveDB supports MySQL, H2 and Derby.");
  }
View Full Code Here

    if(hibernateDialect.isAssignableFrom(H2Dialect.class))
      return HiveDbDialect.H2;
    else if(hibernateDialect.isAssignableFrom(MySQLInnoDBDialect.class))
      return HiveDbDialect.MySql;
    else
      throw new UnsupportedDialectException("Unkown database dialect.  HiveDB supports MySQL and H2.");
  }
View Full Code Here

      return HiveDbDialect.MySql;
    if (uri.startsWith("jdbc:derby:"))
      return HiveDbDialect.Derby;
    if (uri.startsWith("jdbc:h2:"))
      return HiveDbDialect.H2;
    throw new UnsupportedDialectException("Could not discern the HiveDbDialect from the uri " + uri);
  }
View Full Code Here

      return "mysql";
    else if(dialect == HiveDbDialect.Derby)
      return "derby";
    else if(dialect == HiveDbDialect.H2)
      return "h2:mem";
    throw new UnsupportedDialectException("This dialect is not supported.");
  }
View Full Code Here

    HiveDbDialect discernDialect = discernDialect(uri);
    if (discernDialect == HiveDbDialect.MySql)
      return "jdbc:mysql://${db.host}/${db.name}?user=${db.user}&password=${db.password}";
    if (discernDialect == HiveDbDialect.Derby)
      return uri;
    throw new UnsupportedDialectException("Could not discern the HiveDbDialect from the uri " + uri);
  }
View Full Code Here

    HiveDbDialect discernDialect = discernDialect(uri);
    if (discernDialect == HiveDbDialect.MySql)
      return "jdbc:mysql://${db.host}/${db.name}?user=${db.user}&password=${db.password}";
    if (discernDialect == HiveDbDialect.Derby)
      return uri;
    throw new UnsupportedDialectException("Could not discern the HiveDbDialect from the uri " + uri);
  }
View Full Code Here

    HiveDbDialect discernDialect = discernDialect(uri);
    if (discernDialect == HiveDbDialect.MySql)
      return "jdbc:mysql://${db.host}/${db.name}?user=${db.user}&password=${db.password}";
    if (discernDialect == HiveDbDialect.Derby)
      return uri;
    throw new UnsupportedDialectException("Could not discern the HiveDbDialect from the uri " + uri);
  }
View Full Code Here

TOP

Related Classes of org.hivedb.UnsupportedDialectException

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.