Package com.exedio.cope
Annotation Type CopeExternal
-
@Target({TYPE,FIELD}) @Retention(RUNTIME) public @interface CopeExternal
Allows a type's instances to be modified (created, updated and deleted) externally, directly in the database.COPE caches are disabled for the type.
External modifications of data must obey all consistency rules.
Listeners and hooks such as
change listeners
,change hooks
and item methods beforeNewCopeItem,afterNewCopeItem
,beforeSetCopeItem
, andbeforeDeleteCopeItem
may not get called on external modifications.For subtypes, this annotation must be set if and only if it is set for the
supertype
.This annotation is essentially applicable to types (@Target(TYPE)) only. When applying it to
features
(@Target(FIELD)) that arepatterns
, the annotation is forwarded to allsource types
of that pattern. When applying it to features that are not patterns, there is no effect at all.