|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaspoev.primitive.StaticPrimitive
aspoev.primitive.RuntimePrimitive
A Runtime Primitive is an action that is taken on an persistent
instance when it is returned from the database. A runtime
primitive defines 1.) whether it is applicable with respect to a
given instance and 2.) what action to take on that instance. NOTE:
The boolean 'active' is for use within the execution of the action
statement only, ie, 'thisRule.isActive()'. In other words,
RuntimePrimitive will still execute the action statement if active
is false.
Runtime primitives can be declared in the command line environment
in the following manner:
AroundPrimitive,
Binding,
Serialized Form
Field Summary
protected java.lang.StringactionCode
protected booleanactive
static intAFTER
static intAROUND
static intBEFORE
protected pJ.jasmine.ListOfObjectbindings
protected intbindType
protected VariableReferenceElementthisPrimitive
Fields inherited from class aspoev.primitive.StaticPrimitive
action, effectedTypes, typeVariable
Fields inherited from interface pJ.jasmine.PRI
DELETECHANGE, MODIFYCHANGE, NOCHANGE
Constructor Summary
RuntimePrimitive()
RuntimePrimitive(aspoev.Executable action)
RuntimePrimitive(aspoev.Executable action,
java.util.Collection bindingNames,
int type)
RuntimePrimitive(aspoev.Executable action,
int type)
RuntimePrimitive(java.lang.String statementString)
Method Summary
protected voiddeclareThisPrimitive()
java.lang.Objectexecute()
Executes this static primitive's execution block once for each
associated type.
aspoev.ExecutablegetActionStatement()
booleanisActive()
protected static voidregisterWithBinding(RuntimePrimitive primitive,
java.lang.String bindingName)
voidregisterWithBindings()
protected static voidregisterWithBindings(RuntimePrimitive rule,
java.util.Collection bindingNames)
voidsetActive()
voidsetInactive()
java.lang.StringtoString()
Methods inherited from class aspoev.primitive.StaticPrimitive
declarePrimitiveVariables
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Field Detail
BEFORE
public static final int BEFORE
AFTER
public static final int AFTER
AROUND
public static final int AROUND
active
protected transient boolean active
actionCode
protected java.lang.String actionCode
thisPrimitive
protected VariableReferenceElement thisPrimitive
bindType
protected int bindType
bindings
protected pJ.jasmine.ListOfObject bindings
Constructor Detail
RuntimePrimitive
public RuntimePrimitive(aspoev.Executable action,
int type)
RuntimePrimitive
public RuntimePrimitive(aspoev.Executable action,
java.util.Collection bindingNames,
int type)
RuntimePrimitive
public RuntimePrimitive(aspoev.Executable action)
RuntimePrimitive
public RuntimePrimitive(java.lang.String statementString)
RuntimePrimitive
public RuntimePrimitive()
Method Detail
registerWithBindings
public void registerWithBindings()
registerWithBindings
protected static void registerWithBindings(RuntimePrimitive rule,
java.util.Collection bindingNames)
registerWithBinding
protected static void registerWithBinding(RuntimePrimitive primitive,
java.lang.String bindingName)
setActive
public void setActive()
setInactive
public void setInactive()
declareThisPrimitive
protected void declareThisPrimitive()
execute
public java.lang.Object execute()
StaticPrimitive
execute in interface aspoev.Executableexecute in class StaticPrimitive
getActionStatement
public aspoev.Executable getActionStatement()
isActive
public boolean isActive()
toString
public java.lang.String toString()
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD