|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.root.rt.util.VariableTransporter
public class VariableTransporter
An attribute transporter for persistent variables.
| Constructor Summary | |
|---|---|
VariableTransporter()
Constructs a new transporter. |
|
VariableTransporter(boolean foreign)
Constructs a new transporter with a foreign option. |
|
| Method Summary | |
|---|---|
AttributeList |
exportAttributes(Variable var,
Identity id,
Object source,
boolean foreign)
Exports attribute values to another variable identified by the specified identity. |
AttributeList |
exportAttributes(Variable var,
Variable other,
Object source,
boolean foreign)
Exports attribute values to another variable. |
String |
getEnumerationKey(Variable var,
Variable e,
String pkField,
String enumField,
Persister persister)
Gets the enumeration key. |
Object |
getEnumerationValue(Variable var,
Variable e,
String pkField,
String enumField,
Persister persister)
Gets the enumeration value. |
AttributeFilter |
getExportFilter()
Gets the export filter. |
AttributeFilter |
getImportFilter()
Gets the import filter. |
AttributeList |
importAttributes(Variable var,
Identity id,
Object source,
boolean foreign)
Imports attribute values from another variable identified by the specified identity. |
AttributeList |
importAttributes(Variable var,
Variable other,
Object source,
boolean foreign)
Imports attribute values from another variable. |
boolean |
isForeign()
Checks foreign imports. |
List |
transportEnumeration(Variable var,
String name,
String type,
String enumField,
boolean nullable,
Persister persister)
Transports the specified enumeration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableTransporter()
public VariableTransporter(boolean foreign)
Foreign transporters transport attributes from identities that are not of the same type as the target variable.
foreign - true for foreign transports, false otherwise.| Method Detail |
|---|
public AttributeList importAttributes(Variable var,
Identity id,
Object source,
boolean foreign)
AttributeImporter
importAttributes in interface AttributeImportervar - this variable.id - the identity.source - the source object.foreign - true for a foreign import, false otherwise.
public AttributeList importAttributes(Variable var,
Variable other,
Object source,
boolean foreign)
AttributeImporter
importAttributes in interface AttributeImportervar - this variable.other - the other variable.source - the source object.foreign - true for a foreign import, false otherwise.
public AttributeList exportAttributes(Variable var,
Identity id,
Object source,
boolean foreign)
AttributeExporter
exportAttributes in interface AttributeExportervar - this variable.id - the identity.source - the source object.foreign - true for a foreign export, false otherwise.
public AttributeList exportAttributes(Variable var,
Variable other,
Object source,
boolean foreign)
AttributeExporter
exportAttributes in interface AttributeExportervar - this variable.other - the other variable.source - the source object.foreign - true for a foreign export, false otherwise.
public boolean isForeign()
public AttributeFilter getImportFilter()
public AttributeFilter getExportFilter()
public List transportEnumeration(Variable var,
String name,
String type,
String enumField,
boolean nullable,
Persister persister)
throws AttributeNotFoundException,
PersisterException
var - the target variable.name - the enumeration attribute.type - the enumeration type.enumField - the enumeration field.nullable - true if nullable, false otherwise.persister - the persister to apply.
AttributeNotFoundException - for missing attributes.
PersisterException - if a persister operation fails.
public String getEnumerationKey(Variable var,
Variable e,
String pkField,
String enumField,
Persister persister)
throws AttributeNotFoundException
var - this variable.e - the enumeration variable.pkField - the primary key field.enumField - the enumeration field.persister - the persister to apply.
AttributeNotFoundException - for missing attributes.
public Object getEnumerationValue(Variable var,
Variable e,
String pkField,
String enumField,
Persister persister)
throws AttributeNotFoundException
var - this variable.e - the enumeration variable.pkField - the primary key field.enumField - the enumeration field.persister - the persister to apply.
AttributeNotFoundException - for missing attributes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||