public class Point2dDouble extends Point2D.Double 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 |
x, y| Constructor and Description |
|---|
Point2dDouble(org.datanucleus.state.ObjectProvider ownerOP,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
Assigns owning object and field name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachCopy(Object value) |
Object |
clone()
Creates and returns a copy of this object.
|
Object |
detachCopy(org.datanucleus.state.FetchPlanState state) |
String |
getFieldName() |
Object |
getOwner() |
Object |
getValue() |
void |
initialise() |
void |
initialise(Object value,
boolean forInsert,
boolean forUpdate) |
void |
makeDirty()
Utility to mark the object as dirty
|
void |
setLocation(double x,
double y) |
void |
setLocation(Point2D p) |
void |
unsetOwner() |
getX, getY, toStringdistance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCodeprotected transient org.datanucleus.state.ObjectProvider ownerOP
protected transient String fieldName
public Point2dDouble(org.datanucleus.state.ObjectProvider ownerOP,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
ownerOP - the owning objectmmd - Metadata for the memberpublic void initialise(Object value, boolean forInsert, boolean forUpdate) throws ClassCastException
initialise in interface org.datanucleus.store.types.SCOClassCastExceptionpublic void initialise()
initialise in interface org.datanucleus.store.types.SCOpublic 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.SCOpublic void attachCopy(Object value)
attachCopy in interface org.datanucleus.store.types.SCOpublic 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 Point2D.Doublepublic void setLocation(Point2D p)
setLocation in class Point2DCopyright © 2015. All rights reserved.