Package ch.inftec.ju.util

Examples of ch.inftec.ju.util.RegexUtil.matches()


    @Override
    public SchemaInfo getSchemaInfo() {
      if (this.connUtil.getDbType() == DbType.MYSQL) {
        // Get the Schema info from the URL (has the form jdbc:mysql://host/schema)
        RegexUtil ru = new RegexUtil(".*/([^/]+)");
        if (!ru.matches(this.getUrl())) {
          return null;
        } else {
          String schemaName = ru.getMatches(this.getUrl())[0].getGroups()[0];
          return new SchemaInfoImpl(schemaName, null);             
        }
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.