throw new IndexOutOfBoundsException();
}
public void setObject(ExecutionContext ec, PreparedStatement preparedStmt, int[] exprIndex, Object value)
{
Blob blob = ((Blob)value);
if (blob == null) {
getDatastoreMapping(0).setObject(preparedStmt, exprIndex[0], null);
getDatastoreMapping(1).setObject(preparedStmt, exprIndex[1], null);
getDatastoreMapping(2).setObject(preparedStmt, exprIndex[2], null);
} else {
getDatastoreMapping(0).setString(preparedStmt, exprIndex[0], blob.getName());
getDatastoreMapping(1).setString(preparedStmt, exprIndex[1], blob.getMimeType().getBaseType());
getDatastoreMapping(2).setObject(preparedStmt, exprIndex[2], blob.getBytes());
}
}