beginTransaction(db);
ConstraintExceptionBuffer ceb = interceptorVO.validate();
ceb.throwIfNotEmpty();
Interceptor interceptor = this.getInterceptorWithId(interceptorVO.getInterceptorId(), db);
interceptor.setValueObject(interceptorVO);
Collection interceptionPoints = interceptor.getInterceptionPoints();
Iterator interceptionPointsIterator = interceptionPoints.iterator();
while(interceptionPointsIterator.hasNext())
{
InterceptionPoint interceptionPoint = (InterceptionPoint)interceptionPointsIterator.next();
interceptionPoint.getInterceptors().remove(interceptor);
}
interceptor.getInterceptionPoints().clear();
if(values != null)
{
for(int i=0; i<values.length; i++)
{
String interceptionPointId = values[i];
InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithId(new Integer(interceptionPointId), db);
interceptor.getInterceptionPoints().add(interceptionPoint);
interceptionPoint.getInterceptors().add(interceptor);
}
}
if(configuration != null)