/* (non-Javadoc)
* @see org.datanucleus.store.mapping.JavaTypeMapping#setObject(org.datanucleus.ObjectManager, java.lang.Object, int[], java.lang.Object)
*/
public void setObject(ExecutionContext ec, Object preparedStatement, int[] exprIndex, Object value)
{
Ellipse2D ellipse = (Ellipse2D)value;
if (ellipse == null)
{
for (int i = 0; i < exprIndex.length; i++)
{
getDatastoreMapping(i).setObject(preparedStatement, exprIndex[i], null);
}
}
else
{
getDatastoreMapping(0).setDouble(preparedStatement,exprIndex[0],ellipse.getX());
getDatastoreMapping(1).setDouble(preparedStatement,exprIndex[1],ellipse.getY());
getDatastoreMapping(2).setDouble(preparedStatement,exprIndex[2],ellipse.getWidth());
getDatastoreMapping(3).setDouble(preparedStatement,exprIndex[3],ellipse.getHeight());
}
}