|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.root.rt.util.VariableTransporter
public class VariableTransporter
An attribute transporter for persistent variables.
Constructor Summary | |
---|---|
VariableTransporter()
Constructs a new transporter. |
Method Summary | |
---|---|
void |
exported(TransportedObjectEvent event)
Notifies the object that it has been exported to the repository. |
String |
getEnumerationKey(Variable var,
String name,
Object enumObject,
String enumValueField,
String enumKeyField,
Persister persister)
Gets the enumeration key. |
Object |
getEnumerationValue(Variable var,
String name,
Object enumObject,
String enumValueField,
String enumKeyField,
Persister persister)
Gets the enumeration value. |
AttributeFilter |
getExportFilter()
Gets the export filter. |
AttributeFilter |
getImportFilter()
Gets the import filter. |
EnumeratedAttribute |
getNullableEnum(Variable var,
String name,
String enumValueField,
String enumKeyField,
Persister persister)
Gets a nullable enumerated attribute to be applied as a non-mandatory value. |
void |
imported(TransportedObjectEvent event)
Notifies the object that it has been imported from the repository. |
boolean |
isEmptyEnumeration(VariableAttributeInfo info)
Checks whether the enumeration of the specified attribute is empty. |
boolean |
isEqualTypes(Variable source,
Variable target)
Checks whether the source and target types are equal. |
List<EnumeratedAttribute> |
transportEnumeration(Variable var,
String name,
DependenceRule dr,
String enumKeyField,
Persister persister)
Transports the dependent foreign enumeration by calling the corresponding methods on foreign objects to retrieve the enumeration keys and values. |
List<EnumeratedAttribute> |
transportEnumeration(Variable var,
String name,
String enumClassName,
String enumKeyField,
Persister persister)
Transports the specified foreign enumeration by calling the corresponding methods on foreign objects to retrieve the enumeration keys and values. |
List<EnumeratedAttribute> |
transportEnumeration(Variable var,
String name,
String enumClassName,
String enumValueField,
String enumKeyField,
Persister persister)
Transports the specified foreign enumeration by calling the corresponding methods on foreign objects to retrieve the enumeration keys and values. |
void |
transportEnumerations(Variable var,
String enumKeyField,
Persister persister)
Transports dependent foreign enumerations of the specified variable. |
void |
transportUserId(Variable var,
String idFieldName,
Persister persister)
Transports the user id of the specified variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableTransporter()
Method Detail |
---|
public AttributeFilter getImportFilter()
TransportListener
getImportFilter
in interface TransportListener
public AttributeFilter getExportFilter()
TransportListener
getExportFilter
in interface TransportListener
public void imported(TransportedObjectEvent event)
TransportListener
imported
in interface TransportListener
event
- the transported object event.public void exported(TransportedObjectEvent event)
TransportListener
exported
in interface TransportListener
event
- the transported object event.public void transportUserId(Variable var, String idFieldName, Persister persister)
var
- the local variable.idFieldName
- the user id field name.persister
- the persister to apply.public void transportEnumerations(Variable var, String enumKeyField, Persister persister)
var
- the local variable.enumKeyField
- the enumeration key field.persister
- the persister to apply.public List<EnumeratedAttribute> transportEnumeration(Variable var, String name, DependenceRule dr, String enumKeyField, Persister persister) throws AttributeNotFoundException, PersistenceException
var
- the local variable.name
- the local field name.dr
- the dependent field rule.enumKeyField
- the enumeration key field.persister
- the persister to apply.
AttributeNotFoundException
- for missing attributes.
PersistenceException
- if a persister operation fails.public List<EnumeratedAttribute> transportEnumeration(Variable var, String name, String enumClassName, String enumKeyField, Persister persister) throws AttributeNotFoundException, PersistenceException
var
- the local variable.name
- the local field name.enumClassName
- the foreign class name.enumKeyField
- the enumeration key field.persister
- the persister to apply.
AttributeNotFoundException
- for missing attributes.
PersistenceException
- if a persister operation fails.public List<EnumeratedAttribute> transportEnumeration(Variable var, String name, String enumClassName, String enumValueField, String enumKeyField, Persister persister) throws AttributeNotFoundException, PersistenceException
var
- the local variable.name
- the local field name.enumClassName
- the foreign class name.enumValueField
- the enumeration value fieldenumKeyField
- the enumeration key fieldpersister
- the persister to apply.
AttributeNotFoundException
- for missing attributes.
PersistenceException
- if a persister operation fails.public String getEnumerationKey(Variable var, String name, Object enumObject, String enumValueField, String enumKeyField, Persister persister) throws AttributeNotFoundException
var
- the local variable.name
- the local field name.enumObject
- the foreign object.enumValueField
- the enumeration value field.enumKeyField
- the enumeration key field.persister
- the persister to apply.
AttributeNotFoundException
- for missing attributes.public Object getEnumerationValue(Variable var, String name, Object enumObject, String enumValueField, String enumKeyField, Persister persister) throws AttributeNotFoundException
var
- the local variable.name
- the local field name.enumObject
- the foreign object.enumValueField
- the enumeration value field.enumKeyField
- the enumeration key field.persister
- the persister to apply.
AttributeNotFoundException
- for missing attributes.public EnumeratedAttribute getNullableEnum(Variable var, String name, String enumValueField, String enumKeyField, Persister persister) throws AttributeNotFoundException
var
- the local variable.name
- the local field name.enumValueField
- the enumeration value field.enumKeyField
- the enumeration key field.persister
- the persister to apply.
AttributeNotFoundException
- for missing attributes.public boolean isEmptyEnumeration(VariableAttributeInfo info)
info
- the variable attribute info.
public boolean isEqualTypes(Variable source, Variable target)
source
- the source variable.target
- the target variable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |