public int setValue(double value, boolean bDisplayOption, int moveMode) { // Set this field's value Integer tempLong = new Integer((int)value); int iErrorCode = this.setData(tempLong, bDisplayOption, moveMode); return iErrorCode; } /**
public int setValue(double value, boolean bDisplayOption, int moveMode) { // Set this field's value Integer tempLong = new Integer((int)value); int iErrorCode = this.setData(tempLong, bDisplayOption, moveMode); return iErrorCode; } /**
public int setValue(double value, boolean bDisplayOption, int moveMode) { // Set this field's value Integer tempLong = new Integer((int)value); int iErrorCode = this.setData(tempLong, bDisplayOption, moveMode); return iErrorCode; } /**
/** * Read the physical data from a stream file and set this field. * @param daIn Input stream to read this field's data from * @return boolean Success? */ public boolean read(DataInputStream daIn, boolean bFixedLength) // Fixed length = false { try { int iData = daIn.readInt(); Integer inData = null; if (iData != NAN) inData = new Integer(iData); int iErrorCode = this.setData(inData, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE); return (iErrorCode == 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 * @return boolean Success? */ public boolean read(DataInputStream daIn, boolean bFixedLength) // Fixed length = false { try { int iData = daIn.readInt(); Integer inData = null; if (iData != NAN) inData = new Integer(iData); int iErrorCode = this.setData(inData, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE); return (iErrorCode == 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 * @return boolean Success? */ public boolean read(DataInputStream daIn, boolean bFixedLength) // Fixed length = false { try { int iData = daIn.readInt(); Integer inData = null; if (iData != NAN) inData = new Integer(iData); int iErrorCode = this.setData(inData, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE); return (iErrorCode == DBConstants.NORMAL_RETURN); // Success } catch (IOException ex) { ex.printStackTrace(); return false; } } /**