String className = null;
if (param instanceof String) {
/* The paramString is of the form "<className>:<keyString>" */
paramString = (String)param;
if (paramString.length() < 3) {
throw new JDOUserException(
msg.msg("EXC_ObjectIdentityStringConstructionTooShort") + //NOI18N
msg.msg("EXC_ObjectIdentityStringConstructionUsage", //NOI18N
paramString));
}
int indexOfDelimiter = paramString.indexOf(STRING_DELIMITER);
if (indexOfDelimiter < 0) {
throw new JDOUserException(
msg.msg("EXC_ObjectIdentityStringConstructionNoDelimiter") + //NOI18N
msg.msg("EXC_ObjectIdentityStringConstructionUsage", //NOI18N
paramString));
}
keyString = paramString.substring(indexOfDelimiter+1);