I have a java class that has one field with getter and setter, and a second pair of getter and setter that access this field differently:
public class NullAbleId { private static final int NULL_ID = -1; private int internalId; getter & setter for internalId public Integer getId() { if(this.internalId == NULL_ID) { return null; } else { return Integer.valueOf(internalId); } } public void setId(Integer id) { if (id == null) { this.internalId = NULL_ID; } else { this.internalId = id.intValue(); } } }
(the reason for this design is that I want to create a method for passing Nullable Intergers )
On the client side of Flash / Flex, I have a class with two properties: id and internalId (id properties are for testing only, in the end they should return internalId)
BlazeDS are seams for passing both values: id and internalId, because both have a complete getter mesh pair. I want Blaze not to pass an identifier, only internalId should be passed. But I donโt know how to set it up for me.
Ralph source share