/* (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)
{
Line2D line = (Line2D)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.getX2());
getDatastoreMapping(3).setDouble(preparedStatement,exprIndex[3],line.getY2());
}
}