Class KeyNames

java.lang.Object
com.basis.filesystem.util.KeyNames

public final class KeyNames extends Object
The rule for VKEYED key names: no two keys may have the same name (bug 36814). Older BBj let several keys share a name; a read by that name used the first of them, so where names from such a file are copied (recovery, replication, online copy) the first key keeps the name and the later ones have none.
  • Method Details

    • otherKeyNamed

      public static int otherKeyNamed(String[] p_keyNames, int p_keyNumber, String p_keyName)
      The number of a key other than p_keyNumber that has p_keyName, or -1 when there is none or p_keyName is null.
      Parameters:
      p_keyNames - the names by key number; an entry may be null
      p_keyNumber - the key that is to have the name, or -1 for a key not yet added
    • firstNamesOnly

      public static String[] firstNamesOnly(String[] p_keyNames)
      A copy of p_keyNames where a key whose name an earlier key has has no name (null); null for null.