catch (NumberFormatException nfex) {
throw new ValidationException("Invalid number");
}
}
DbKeyGenerator generator = mediator.getCurrentDbEntity().getPrimaryKeyGenerator();
if (!Util.nullSafeEquals(generator.getKeyCacheSize(), new Integer(cacheSize))) {
generator.setKeyCacheSize(new Integer(cacheSize));
mediator.fireDbEntityEvent(new EntityEvent(this, generator.getDbEntity()));
}
}