/* (non-Javadoc)
* @see org.datanucleus.store.mapping.JavaTypeMapping#setObject(org.datanucleus.ObjectManager, java.lang.Object, int[], java.lang.Object)
*/
public void setObject(ObjectManager om, Object preparedStatement, int[] exprIndex, Object value)
{
QuadCurve2D line = (QuadCurve2D)value;
if (line == null)
{
for (int i = 0; i < exprIndex.length; i++)
{
getDataStoreMapping(i).setObject(preparedStatement, exprIndex[i], null);
}
}
else
{
getDataStoreMapping(0).setDouble(preparedStatement,exprIndex[0],line.getX1());
getDataStoreMapping(1).setDouble(preparedStatement,exprIndex[1],line.getY1());
getDataStoreMapping(2).setDouble(preparedStatement,exprIndex[2],line.getCtrlX());
getDataStoreMapping(3).setDouble(preparedStatement,exprIndex[3],line.getCtrlY());
getDataStoreMapping(4).setDouble(preparedStatement,exprIndex[4],line.getX2());
getDataStoreMapping(5).setDouble(preparedStatement,exprIndex[5],line.getY2());
}
}