/* (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)
{
RoundRectangle2D roundRectangle = (RoundRectangle2D)value;
if (roundRectangle == null)
{
for (int i = 0; i < exprIndex.length; i++)
{
getDatastoreMapping(i).setObject(preparedStatement, exprIndex[i], null);
}
}
else
{
getDatastoreMapping(0).setDouble(preparedStatement,exprIndex[0],roundRectangle.getX());
getDatastoreMapping(1).setDouble(preparedStatement,exprIndex[1],roundRectangle.getY());
getDatastoreMapping(2).setDouble(preparedStatement,exprIndex[2],roundRectangle.getWidth());
getDatastoreMapping(3).setDouble(preparedStatement,exprIndex[3],roundRectangle.getHeight());
getDatastoreMapping(4).setDouble(preparedStatement,exprIndex[4],roundRectangle.getArcWidth());
getDatastoreMapping(5).setDouble(preparedStatement,exprIndex[5],roundRectangle.getArcHeight());
}
}