/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { return new City(recordOwner); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new Vendor(this); new City(this); City record = new City(this); try { record.hasNext(); // Make sure this is open before I change the name. } catch (DBException e) { e.printStackTrace(); } record.setTableNames("To" + record.getTableNames(false)); } /**
/** * Constructor. */ public City(RecordOwner screen) { this(); this.init(screen); } /**
if (iKeyArea == 0) keyArea = this.makeIndex(DBConstants.UNIQUE, ID_KEY); keyArea.addKeyField(ID, DBConstants.ASCENDING); keyArea = this.makeIndex(DBConstants.NOT_UNIQUE, DESCRIPTION_KEY); keyArea.addKeyField(DESCRIPTION, DBConstants.ASCENDING); keyArea = this.makeIndex(DBConstants.SECONDARY_KEY, CITY_CODE_KEY); keyArea.addKeyField(CITY_CODE, DBConstants.ASCENDING); keyArea = this.makeIndex(DBConstants.NOT_UNIQUE, COUNTRY_ID_KEY); keyArea.addKeyField(COUNTRY_ID, DBConstants.ASCENDING); keyArea.addKeyField(DESCRIPTION, DBConstants.ASCENDING); keyArea = this.makeIndex(DBConstants.NOT_UNIQUE, TICKET_CITY_DESC_KEY); keyArea.addKeyField(TICKET_CITY_DESC, DBConstants.ASCENDING);
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new City(this); }
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new City(this); } /**
/** * Override this to open other session files. */ public void openOtherRecords() { super.openOtherRecords(); new City(this); // For thin } /**
/** * Override this to open other session files. */ public void openOtherRecords() { super.openOtherRecords(); new City(this); // For thin } /**
/** * Override this to open other session files. */ public void openOtherRecords() { super.openOtherRecords(); new City(this); // Thin display screen uses this for depart and arrive city. } /**
/** * Override this to open other session files. */ public void openOtherRecords() { super.openOtherRecords(); new City(this); // Thin display screen uses this for depart and arrive city. } /**
/** * Override this to open other session files. */ public void openOtherRecords() { super.openOtherRecords(); new Region(this); new Country(this); new State(this); new City(this); } /**
/** * Override this to Setup all the records for this query. * Only used for querys and abstract-record queries. * Actually adds records not tables, but the records aren't physically * added here, the record's tables are added to my table. * @param The recordOwner to pass to the records that are added. * @see addTable. */ public void addTables(RecordOwner recordOwner) { this.addTable(new Land(recordOwner)); this.addTable(new City(recordOwner)); this.addTable(new Vendor(recordOwner)); } /**
/** * Override this to Setup all the records for this query. * Only used for querys and abstract-record queries. * Actually adds records not tables, but the records aren't physically * added here, the record's tables are added to my table. * @param The recordOwner to pass to the records that are added. * @see addTable. */ public void addTables(RecordOwner recordOwner) { this.addTable(new TourHeader(recordOwner)); this.addTable(new City(recordOwner)); this.addTable(new Vendor(recordOwner)); } /**
/** * Override this to Setup all the records for this query. * Only used for querys and abstract-record queries. * Actually adds records not tables, but the records aren't physically * added here, the record's tables are added to my table. * @param The recordOwner to pass to the records that are added. * @see addTable. */ public void addTables(RecordOwner recordOwner) { this.addTable(new Hotel(recordOwner)); this.addTable(new City(recordOwner)); this.addTable(new Vendor(recordOwner)); } /**
recLocation = new State(this); else if (City.CITY_FILE.equalsIgnoreCase(strRecordName)) recLocation = new City(this);
City pTkAirport = new City(recordOwner); this.addTable(pTkAirport);