Examples of PostCode


Examples of ComplexMappingTest.Postcode

    public Address() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();

        this.setDateBuilt(new DateTimeNullable(true, DateTimeNullable.qq_Resolver.cISNULL));
        this.setR_Postcode(new Postcode());

    }
View Full Code Here

Examples of ComplexMappingTest.Postcode

    public int getPropertyType() {
        return this.propertyType;
    }

    public void setR_Postcode(Postcode r_Postcode) {
        Postcode oldValue = this.r_Postcode;
        this.r_Postcode = r_Postcode;
        this.qq_Listeners.firePropertyChange("r_Postcode", oldValue, this.r_Postcode);
    }
View Full Code Here

Examples of ComplexMappingTest.Postcode

                }
            }
            aDate.concat(1900+(x.nextInt(65536) % 100)).concat(" 00:00:00");
            this.getDateBuilt().setValue(aDate);
        }
        this.setR_Postcode(new Postcode().create());

        return this;
    }
View Full Code Here

Examples of ComplexMappingTest.Postcode

                    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 {
View Full Code Here

Examples of org.apache.click.examples.domain.PostCode

        query.setFetchLimit(10);

        List list = performQuery(query);

        for (int i = 0; i < list.size(); i++) {
            PostCode postCode = (PostCode) list.get(i);
            String value = postCode.getLocality() + ", " + postCode.getState() + " " + postCode.getPostCode();
            list.set(i, value);
        }

        return list;
    }
View Full Code Here

Examples of org.apache.click.examples.domain.PostCode

                    String postcode = next(tokenizer);
                    String locality = WordUtils.capitalizeFully(next(tokenizer));
                    String state = next(tokenizer);

                    PostCode postCode = new PostCode();
                    postCode.setPostCode(postcode);
                    postCode.setLocality(locality);
                    postCode.setState(state);

                    dataContext.registerNewObject(postCode);
                }
            }
        });
View Full Code Here

Examples of org.apache.click.examples.domain.PostCode

        query.setFetchLimit(10);

        List list = performQuery(query);

        for (int i = 0; i < list.size(); i++) {
            PostCode postCode = (PostCode) list.get(i);
            String value = postCode.getLocality() + ", " + postCode.getState() + " " + postCode.getPostCode();
            list.set(i, value);
        }

        return list;
    }
View Full Code Here

Examples of org.apache.click.examples.domain.PostCode

                    String postcode = next(tokenizer);
                    String locality = WordUtils.capitalizeFully(next(tokenizer));
                    String state = next(tokenizer);

                    PostCode postCode = new PostCode();
                    postCode.setPostCode(postcode);
                    postCode.setLocality(locality);
                    postCode.setState(state);

                    dataContext.registerNewObject(postCode);
                }
            }
        });
View Full Code Here

Examples of org.apache.click.examples.domain.PostCode

                    String postcode = next(tokenizer);
                    String locality = WordUtils.capitalizeFully(next(tokenizer));
                    String state = next(tokenizer);

                    PostCode postCode = new PostCode();
                    postCode.setPostCode(postcode);
                    postCode.setLocality(locality);
                    postCode.setState(state);

                    dataContext.registerNewObject(postCode);
                }
            }
        });
View Full Code Here

Examples of org.apache.click.examples.domain.PostCode

        query.setFetchLimit(10);

        List list = performQuery(query);

        for (int i = 0; i < list.size(); i++) {
            PostCode postCode = (PostCode) list.get(i);
            String value = postCode.getLocality() + ", " + postCode.getState() + " " + postCode.getPostCode();
            list.set(i, value);
        }

        return list;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.