/** * Set the Value of this field as a double. * For a boolean, 0 for false 1 for true. * @param value The value of this field. * @param iDisplayOption If true, display the new field. * @param iMoveMove The move mode. * @return An error code (NORMAL_RETURN for success). */ public int setValue(double value, boolean bDisplayOption, int iMoveMode) { // Set this field's value Boolean bField = Boolean.FALSE; if (value != 0) bField = Boolean.TRUE; int errorCode = this.setData(bField, bDisplayOption, iMoveMode); return errorCode; } /**
/** * Set the Value of this field as a double. * For a boolean, 0 for false 1 for true. * @param value The value of this field. * @param iDisplayOption If true, display the new field. * @param iMoveMove The move mode. * @return An error code (NORMAL_RETURN for success). */ public int setValue(double value, boolean bDisplayOption, int iMoveMode) { // Set this field's value Boolean bField = Boolean.FALSE; if (value != 0) bField = Boolean.TRUE; int errorCode = this.setData(bField, bDisplayOption, iMoveMode); return errorCode; } /**
/** * Set the Value of this field as a double. * For a boolean, 0 for false 1 for true. * @param value The value of this field. * @param iDisplayOption If true, display the new field. * @param iMoveMove The move mode. * @return An error code (NORMAL_RETURN for success). */ public int setValue(double value, boolean bDisplayOption, int iMoveMode) { // Set this field's value Boolean bField = Boolean.FALSE; if (value != 0) bField = Boolean.TRUE; int errorCode = this.setData(bField, bDisplayOption, iMoveMode); return errorCode; } /**
/** * Read the physical data from a stream file and set this field. * @param daIn Input stream to read this field's data from. * @param bFixedLength If false (default) be sure to save the length in the stream. * @return boolean Success? */ public boolean read(DataInputStream daIn, boolean bFixedLength) // Fixed length = false { try { boolean bData = daIn.readBoolean(); Boolean boData = new Boolean(bData); int errorCode = this.setData(boData, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE); return (errorCode == DBConstants.NORMAL_RETURN); // Success } catch (IOException ex) { ex.printStackTrace(); return false; } } /**
/** * Read the physical data from a stream file and set this field. * @param daIn Input stream to read this field's data from. * @param bFixedLength If false (default) be sure to save the length in the stream. * @return boolean Success? */ public boolean read(DataInputStream daIn, boolean bFixedLength) // Fixed length = false { try { boolean bData = daIn.readBoolean(); Boolean boData = new Boolean(bData); int errorCode = this.setData(boData, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE); return (errorCode == DBConstants.NORMAL_RETURN); // Success } catch (IOException ex) { ex.printStackTrace(); return false; } } /**
/** * Read the physical data from a stream file and set this field. * @param daIn Input stream to read this field's data from. * @param bFixedLength If false (default) be sure to save the length in the stream. * @return boolean Success? */ public boolean read(DataInputStream daIn, boolean bFixedLength) // Fixed length = false { try { boolean bData = daIn.readBoolean(); Boolean boData = new Boolean(bData); int errorCode = this.setData(boData, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE); return (errorCode == DBConstants.NORMAL_RETURN); // Success } catch (IOException ex) { ex.printStackTrace(); return false; } } /**