All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.dbmigration.ddlgeneration.platform.SplitColumns Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.dbmigration.ddlgeneration.platform;

public class SplitColumns {

  /**
   * Return as an array of string column names.
   */
  public static String[] split(String columns) {
    if (columns == null || columns.isEmpty()) {
      return new String[0];
    }
    return columns.split(",");
  }

  /**
   * Split returning null when columns is null or empty.
   */
  public static String[] splitWithNull(String columns) {
    if (columns == null || columns.isEmpty()) {
      return null;
    }
    return columns.split(",");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy