@Override
public void removeEntry(String entityName, long entityId, String propertyKey)
{
final EntityCondition condition = new EntityFieldMap(FieldMap.build(
ENTITY_NAME, entityName,
ENTITY_ID, entityId,
PROPERTY_KEY, propertyKey),
AND);
try
{
final List<GenericValue> list = genericDelegator.findByCondition(PROPERTY_ENTRY, condition, SELECT_ID_AND_TYPE, null);
if (list != null)
{
for (GenericValue entry : list)
{
removeEntryAndValue(entry);
}
}
}
catch (GenericEntityException gee)
{
throw new PropertyImplementationException(gee);
}
finally
{
invalidateCacheEntry(entityName, entityId, propertyKey);
}
}