Package com.intersys.gds

Examples of com.intersys.gds.DocumentType.addIndex()


        // Customers schema
        DocumentType customersType = DocumentType.createDocumentType("Customers",firstCustomer);
        customersType.setReference("account",ElementType.TYPE_REFERENCE,"Accounts","number");

        // Customer indices
        customersType.addIndex("name",false);
        customersType.addIndex("ssn",true);
        customersType.addIndex("age",false);
        connection.saveDocumentType(customersType);

        // Accounts schema
View Full Code Here


        DocumentType customersType = DocumentType.createDocumentType("Customers",firstCustomer);
        customersType.setReference("account",ElementType.TYPE_REFERENCE,"Accounts","number");

        // Customer indices
        customersType.addIndex("name",false);
        customersType.addIndex("ssn",true);
        customersType.addIndex("age",false);
        connection.saveDocumentType(customersType);

        // Accounts schema
        Document firstAccount = (Document)firstCustomer.get("account");
View Full Code Here

        customersType.setReference("account",ElementType.TYPE_REFERENCE,"Accounts","number");

        // Customer indices
        customersType.addIndex("name",false);
        customersType.addIndex("ssn",true);
        customersType.addIndex("age",false);
        connection.saveDocumentType(customersType);

        // Accounts schema
        Document firstAccount = (Document)firstCustomer.get("account");
        DocumentType accountsType = DocumentType.createDocumentType("Accounts",firstAccount);
View Full Code Here

        Document firstAccount = (Document)firstCustomer.get("account");
        DocumentType accountsType = DocumentType.createDocumentType("Accounts",firstAccount);
        accountsType.setReference("owner",ElementType.TYPE_BACK_REFERENCE,"Customers","TODO");

        // Accounts indices
        accountsType.addIndex("owner",true);
        accountsType.addIndex("number",true);
        connection.saveDocumentType(accountsType);
    }

   /** Deletes Customers and Accounts schema (by deleting
View Full Code Here

        DocumentType accountsType = DocumentType.createDocumentType("Accounts",firstAccount);
        accountsType.setReference("owner",ElementType.TYPE_BACK_REFERENCE,"Customers","TODO");

        // Accounts indices
        accountsType.addIndex("owner",true);
        accountsType.addIndex("number",true);
        connection.saveDocumentType(accountsType);
    }

   /** Deletes Customers and Accounts schema (by deleting
    * ^Schema(Customers), ^Schema(Accounts), ^Index(Customers)
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.