| java.lang.Object java.awt.geom.Point2D java.awt.Point org.jpox.sco.Point
Point | public class Point extends java.awt.Point implements SCO(Code) | | A mutable second-class java.awt.Point object.
version: $Revision: 1.26 $ |
Method Summary | |
public void | attachCopy(Object value) Method to attach the passed value. | public Object | clone() Creates and returns a copy of this object.
Mutable second-class Objects are required to provide a public
clone method in order to allow for copying PersistenceCapable
objects. | public Object | detachCopy(FetchPlanState state) Method to detach a copy of this object. | public String | getFieldName() | public Object | getOwner() Accessor for the owner. | public Object | getValue() Accessor for the unwrapped value that we are wrapping. | public void | initialise() Method to initialise the SCO for use. | public void | initialise(Object o, boolean forInsert, boolean forUpdate) Method to initialise the SCO from an existing value. | public void | makeDirty() | public void | move(int x, int y) | public void | setLocation(double x, double y) Mutator for the location. | public void | setLocation(int x, int y) Mutator for the location. | public void | setLocation(java.awt.Point point) Mutator for the location. | public void | setLocation(Point2D point) Mutator for the location. | public void | translate(int dx, int dy) | public void | unsetOwner() Utility to unset the owner. | protected Object | writeReplace() The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. |
Point | public Point(StateManager ownerSM, String fieldName)(Code) | | Creates a Point object. Assigns owning object and field name.
Parameters: ownerSM - the owning object Parameters: fieldName - the owning field name |
attachCopy | public void attachCopy(Object value)(Code) | | Method to attach the passed value.
Parameters: value - The new value |
clone | public Object clone()(Code) | | Creates and returns a copy of this object.
Mutable second-class Objects are required to provide a public
clone method in order to allow for copying PersistenceCapable
objects. In contrast to Object.clone(), this method must not throw a
CloneNotSupportedException.
A clone of the object |
detachCopy | public Object detachCopy(FetchPlanState state)(Code) | | Method to detach a copy of this object.
Parameters: state - State for detachment process The detached object |
getFieldName | public String getFieldName()(Code) | | Accessor for the field name
The field name |
getOwner | public Object getOwner()(Code) | | Accessor for the owner.
The owner |
getValue | public Object getValue()(Code) | | Accessor for the unwrapped value that we are wrapping.
The unwrapped value |
initialise | public void initialise()(Code) | | Method to initialise the SCO for use.
|
initialise | public void initialise(Object o, boolean forInsert, boolean forUpdate)(Code) | | Method to initialise the SCO from an existing value.
Parameters: o - The Object Parameters: forInsert - Whether the object needs inserting in the datastore with this value Parameters: forUpdate - Whether to update the datastore with this value |
makeDirty | public void makeDirty()(Code) | | Utility to mark the object as dirty
|
move | public void move(int x, int y)(Code) | | |
setLocation | public void setLocation(double x, double y)(Code) | | Mutator for the location.
Parameters: x - The location x Parameters: y - The location y |
setLocation | public void setLocation(int x, int y)(Code) | | Mutator for the location.
Parameters: x - The location x Parameters: y - The location y |
setLocation | public void setLocation(java.awt.Point point)(Code) | | Mutator for the location.
Parameters: point - The location |
setLocation | public void setLocation(Point2D point)(Code) | | Mutator for the location.
Parameters: point - The location |
translate | public void translate(int dx, int dy)(Code) | | |
unsetOwner | public void unsetOwner()(Code) | | Utility to unset the owner.
|
writeReplace | protected Object writeReplace() throws ObjectStreamException(Code) | | The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. The
ObjectOutputStream checks whether the class defines the writeReplace method. If the method is defined, the
writeReplace method is called to allow the object to designate its replacement in the stream. The object returned
should be either of the same type as the object passed in or an object that when read and resolved will result in
an object of a type that is compatible with all references to the object.
the replaced object throws: ObjectStreamException - |
|
|