public class Point extends Point implements org.datanucleus.store.types.SCO
Point2D.Double, Point2D.Float| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
protected org.datanucleus.state.ObjectProvider |
ownerOP |
| Constructor and Description |
|---|
Point(org.datanucleus.state.ObjectProvider op,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
Creates a Point object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachCopy(Object value)
Method to attach the passed value.
|
Object |
clone()
Creates and returns a copy of this object.
|
Object |
detachCopy(org.datanucleus.state.FetchPlanState state)
Method to detach a copy of this object.
|
String |
getFieldName()
Accessor for the field name
|
Object |
getOwner()
Accessor for the owner.
|
Object |
getValue()
Accessor for the unwrapped value that we are wrapping.
|
void |
initialise()
Method to initialise the SCO for use.
|
void |
initialise(Object o,
boolean forInsert,
boolean forUpdate)
Method to initialise the SCO from an existing value.
|
void |
makeDirty()
Utility to mark the object as dirty
|
void |
move(int x,
int y) |
void |
setLocation(double x,
double y)
Mutator for the location.
|
void |
setLocation(int x,
int y)
Mutator for the location.
|
void |
setLocation(Point point)
Mutator for the location.
|
void |
setLocation(Point2D point)
Mutator for the location.
|
void |
translate(int dx,
int dy) |
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.
|
distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCodeprotected transient org.datanucleus.state.ObjectProvider ownerOP
protected transient String fieldName
public Point(org.datanucleus.state.ObjectProvider op,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
op - ObjectProvider for the owning objectmmd - Metadata for the memberpublic void initialise()
initialise in interface org.datanucleus.store.types.SCOpublic void initialise(Object o, boolean forInsert, boolean forUpdate)
initialise in interface org.datanucleus.store.types.SCOo - The ObjectforInsert - Whether the object needs inserting in the datastore with this valueforUpdate - Whether to update the datastore with this valuepublic Object getValue()
getValue in interface org.datanucleus.store.types.SCOpublic void unsetOwner()
unsetOwner in interface org.datanucleus.store.types.SCOpublic Object getOwner()
getOwner in interface org.datanucleus.store.types.SCOpublic String getFieldName()
getFieldName in interface org.datanucleus.store.types.SCOpublic void makeDirty()
public Object detachCopy(org.datanucleus.state.FetchPlanState state)
detachCopy in interface org.datanucleus.store.types.SCOstate - State for detachment processpublic void attachCopy(Object value)
attachCopy in interface org.datanucleus.store.types.SCOvalue - The new valuepublic Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying persistable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
public void setLocation(double x,
double y)
setLocation in class Pointx - The location xy - The location ypublic void setLocation(int x,
int y)
setLocation in class Pointx - The location xy - The location ypublic void setLocation(Point point)
setLocation in class Pointpoint - The locationpublic void setLocation(Point2D point)
setLocation in class Point2Dpoint - The locationprotected Object writeReplace() throws ObjectStreamException
ObjectStreamException - when problem occurs on serializationCopyright © 2015. All rights reserved.