Thursday, July 5, 2007


A google search for ofbiz GenericPK will return the code for this class, but no explanation of what it is for. All the code examples in the OFBIZ codebase seem to use it in conjuction with GenericValue so that one may use a GenericValue retrieved from the EntityEngine to populate a an arbitrary or Generic PK for use with an operation like FindByPrimaryKey or RemoveByPrimaryKey. In other words, you got some data from somewhere and you would like to run a "PrimaryKey" operation. So first convert the data to a GenericPK and then use that for your operation.