/** * Constructor. */ public PaxGroup(RecordOwner screen) { this(); this.init(screen); } /**
/** * Add this key area description to the Record. */ public KeyArea setupKey(int iKeyArea) { KeyArea keyArea = null; if (iKeyArea == 0) { keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY); keyArea.addKeyField(ID, DBConstants.ASCENDING); } if (iKeyArea == 1) { keyArea = this.makeIndex(DBConstants.UNIQUE, BOOKING_ID_KEY); keyArea.addKeyField(BOOKING_ID, DBConstants.ASCENDING); keyArea.addKeyField(GROUP_NO, DBConstants.ASCENDING); keyArea.addKeyField(PAX_ID, DBConstants.ASCENDING); } if (keyArea == null) keyArea = super.setupKey(iKeyArea); return keyArea; }