Package ComplexMappingTest

Examples of ComplexMappingTest.Address


    public Array_Of_Address<Address> getL_Address() {
        return this.l_Address;
    }

    public void setR_Address(Address r_Address) {
        Address oldValue = this.r_Address;
        this.r_Address = r_Address;
        this.qq_Listeners.firePropertyChange("r_Address", oldValue, this.r_Address);
    }
View Full Code Here


                aDate.setValue("18-Dec-1993 00:00:00");
                break;
            }
        }
        this.setDOB(aDate);
        this.setR_Address(new Address().create());

        int limit = (x.nextInt(65536) % 4)+1;
        int qq_localVector = limit;
        for (int i = 1; i <= qq_localVector; i++) {
            this.getL_Address().add(new Address().create());
        }

        return this;
    }
View Full Code Here

                // ---------------------------------
                if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdateOnePostCodeBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Address anAddress = this.selectOneAddress();
                        if (anAddress != null) {
                            Postcode aPostCode = new Postcode().create();
                            anAddress.getR_Postcode().setCity(aPostCode.getCity());
                            anAddress.getR_Postcode().setState(aPostCode.getState());
                            anAddress.getR_Postcode().setPostCodeNumber(aPostCode.getPostCodeNumber());
                            this.getStatus().concat("Updated postcode to: ").concat(aPostCode.toString()).concat("\n");
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // --------------------------------
                // self.<UpdateOneAddressBtn>.Click
                // --------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdateOneAddressBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Address anAddress = this.selectOneAddress();
                        if (anAddress != null) {
                            Address newAddress = new Address().create();
                            anAddress.setLine1(newAddress.getLine1());
                            anAddress.setLine2(newAddress.getLine2());
                            anAddress.setLine3(newAddress.getLine3());
                            this.getStatus().concat("Updated Address to: ").concat(newAddress.toString()).concat("\n");
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // --------------------------------
                // self.<RemoveOneAddressBtn>.Click
                // --------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_RemoveOneAddressBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Address anAddress = this.selectOneAddress();
                        if (anAddress != null) {
                            // TODO [1037,Major]: If you are deleting a row inside a loop, use the Iterator in place of the array
                            this.getACustomer().getL_Address().deleteRow(anAddress);
                            this.getStatus().concat("Row removed\n");
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------------
                // self.<PrintCustomerBtn>.Click
                // -----------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_PrintCustomerBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        this.getStatus().concat(this.getACustomer().toString()).concat("\n");

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------------------
                // self.<CreatePostCodeBtn>.Click
                // ------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreatePostCodeBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        if (this.getACustomer() != null && this.getACustomer().getR_Address() != null) {
                            Postcode aPostCode = new Postcode().create();
                            this.getStatus().concat("Created postcode: ").concat(aPostCode.toString()).concat("\n");
                            this.getACustomer().getR_Address().setR_Postcode(aPostCode);
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------------------
                // self.<CreateCustomerBtn>.Click
                // ------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateCustomerBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Customer aCustomer = new Customer().create();
                        this.getStatus().concat("Created customer: ").concat(aCustomer.toString()).concat("\n");
                        this.setACustomer(aCustomer);

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------------
                // self.<CreateAddressBtn>.Click
                // -----------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateAddressBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        if (this.getACustomer() != null) {
                            Address anAddress = new Address().create();
                            this.getStatus().concat("Created address: ").concat(anAddress.toString()).concat("\n");
                            this.getACustomer().setR_Address(anAddress);
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------------
                // self.<AddOneAddressBtn>.Click
                // -----------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_AddOneAddressBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        if (this.getACustomer() != null && this.getACustomer().getL_Address() != null) {
                            Address anAddress = new Address().create();
                            this.getStatus().concat("Added address: ").concat(anAddress.toString()).concat("\n");
                            this.getACustomer().getL_Address().add(anAddress);
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------------------
                // self.<CreateOneNewAddressBtn>.Click
                // -----------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateOneNewAddressBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Address anAddress = this.selectOneAddress();
                        if (anAddress != null) {
                            int row = this.getACustomer().getL_Address().indexOf(anAddress)+1;
                            anAddress = new Address().create();
                            this.getStatus().concat("Created new address: ").concat(anAddress.toString()).concat("\n");
                            this.getACustomer().getL_Address().set(row-1, anAddress);
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------------------------
                // self.<CreateOneNewPostcodeBtn>.Click
                // ------------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CreateOneNewPostcodeBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Address anAddress = this.selectOneAddress();
                        if (anAddress != null) {
                            Postcode aPostCode = new Postcode().create();
                            anAddress.setR_Postcode(aPostCode);
                            this.getStatus().concat("Created new postcode: ").concat(aPostCode.toString()).concat("\n");
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------------------
                // self.<UpdatePostcodeBtn>.Click
                // ------------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdatePostcodeBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        if (this.getACustomer() != null && this.getACustomer().getR_Address() != null) {
                            Postcode aPostCode = new Postcode().create();
                            this.getACustomer().getR_Address().getR_Postcode().setCity(aPostCode.getCity());
                            this.getACustomer().getR_Address().getR_Postcode().setState(aPostCode.getState());
                            this.getACustomer().getR_Address().getR_Postcode().setPostCodeNumber(aPostCode.getPostCodeNumber());
                            this.getStatus().concat("Updated postcode to: ").concat(aPostCode.toString()).concat("\n");
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------------
                // self.<UpdateAddressBtn>.Click
                // -----------------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_UpdateAddressBtn)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        if (this.getACustomer() != null) {
                            Address newAddress = new Address().create();
                            this.getACustomer().getR_Address().setLine1(newAddress.getLine1());
                            this.getACustomer().getR_Address().setLine2(newAddress.getLine2());
                            this.getACustomer().getR_Address().setLine3(newAddress.getLine3());
                            this.getStatus().concat("Updated Address to: ").concat(newAddress.toString()).concat("\n");
                        }

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
View Full Code Here

TOP

Related Classes of ComplexMappingTest.Address

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.