private Table _getTable(String catalog, String schema, String tableName) throws SQLException {
    if (tableName == null || tableName.trim().length() == 0)
      throw new IllegalArgumentException("tableName must be not empty");
    catalog = StringHelper.defaultIfEmpty(catalog, null);
    schema = StringHelper.defaultIfEmpty(schema, null);

    Connection conn = getConnection();
    DatabaseMetaData dbMetaData = conn.getMetaData();
    ResultSet rs = dbMetaData.getTables(catalog, schema, tableName, null);
    while (rs.next()) {
      Table table = createTable(conn, rs);
      return table;
    }
    return null;
  }
 private String getParamsPattern(Class<?>[] parameterTypes) {
   List paramPatterns = new ArrayList();
   for (int i = 0; i < parameterTypes.length; i++) {
     Class type = parameterTypes[i];
     String paramPattern = ".*" + type.getSimpleName() + ".*\\s+(\\w+).*";
     paramPatterns.add(paramPattern);
   }
   return StringHelper.join(paramPatterns, ",");
 }
 public GeneratorFacade() {
   if (StringHelper.isNotBlank(GeneratorProperties.getProperty("outRoot"))) {
     generator.setOutRootDir(GeneratorProperties.getProperty("outRoot"));
   }
 }
 public String getColumnNameOrLabel() {
   return StringHelper.isBlank(columnName) ? columnLabel : columnName;
 }