/**
*
*/
protected void setDataImpl(int type, String key, Object value) throws PropertyException
{
PropertySetItem item = configProvider.getPropertySetDAO().findByKey(entityName, entityId, key);
boolean update = (item == null) ? false : true;
if (item == null)
{
item = configProvider.getPropertySetDAO().create(entityName, entityId.longValue(), key);
}
else if (item.getType() != type)
{
throw new PropertyException("Existing key '" + key + "' does not have matching type of " + type);
}
((InfogluePropertySetItem) item).setDataVal(((com.opensymphony.util.Data) value).getBytes());
item.setType(type);
configProvider.getPropertySetDAO().setImpl(item, update);
}