Package com.basis.filesystem.util
Class KeyNames
java.lang.Object
com.basis.filesystem.util.KeyNames
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 Summary
Modifier and TypeMethodDescriptionstatic 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.static intotherKeyNamed(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.
-
Method Details
-
otherKeyNamed
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 nullp_keyNumber- the key that is to have the name, or -1 for a key not yet added
-
firstNamesOnly
A copy of p_keyNames where a key whose name an earlier key has has no name (null); null for null.
-