SPT Object Database API

com.sptci.prevayler
Class RelationStorage.DeleteRule

java.lang.Object
  extended by com.sptci.prevayler.RelationStorage.DeleteRule
All Implemented Interfaces:
Serializable
Enclosing class:
RelationStorage

private class RelationStorage.DeleteRule
extends Object
implements Serializable

A class used to capture the names of the fields in a prevalent object that are related to the prevalent object being managed by this store.


Field Summary
private  Map<String,ForeignKey.DeleteAction> actionMap
          The map used to maintain the field-name to delete rule mapping.
private static long serialVersionUID
           
 
Constructor Summary
private RelationStorage.DeleteRule()
           
 
Method Summary
private  void add(String field, ForeignKey.DeleteAction action)
          Add a mapping for the specified field name with the associated deleted rule.
private  Map<String,ForeignKey.DeleteAction> getRules()
          Return the actionMap as an unmodifiable view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

actionMap

private Map<String,ForeignKey.DeleteAction> actionMap
The map used to maintain the field-name to delete rule mapping.

Constructor Detail

RelationStorage.DeleteRule

private RelationStorage.DeleteRule()
Method Detail

add

private void add(String field,
                 ForeignKey.DeleteAction action)
Add a mapping for the specified field name with the associated deleted rule.

Parameters:
field - The name of the field for the mapping.
action - The delete rule to apply for the field.

getRules

private Map<String,ForeignKey.DeleteAction> getRules()
Return the actionMap as an unmodifiable view.

Returns:
The mappings in actionMap.

SPT Object Database API