Examples of ModelAnnotation


Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

        Map<String, List<ModelAnnotation>> annotationMap = new HashMap<String, List<ModelAnnotation>>();
        for ( Map.Entry<String, Map<String, Map<String, String>>> factTypeEntry : this.annotationsForType.entrySet() ) {
            String factType = factTypeEntry.getKey();
            List<ModelAnnotation> annotations = new ArrayList<ModelAnnotation>();
            for ( Map.Entry<String, Map<String, String>> annotationEntry : factTypeEntry.getValue().entrySet() ) {
                ModelAnnotation ma = new ModelAnnotation();
                ma.setAnnotationName( annotationEntry.getKey() );
                ma.setAnnotationValues( annotationEntry.getValue() );
                annotations.add( ma );
            }
            annotationMap.put( factType,
                               annotations );
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

    }

    private int getIndexOfAnnotation(List<ModelAnnotation> annotations,
                                     String annotationName) {
        for ( int i = 0; i < annotations.size(); i++ ) {
            ModelAnnotation annotation = annotations.get( i );
            if ( annotationName.equals( annotation.getAnnotationName() ) ) {
                return i;
            }
        }
        return -1;
    }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

    }

    private int getIndexOfAnnotation(List<ModelAnnotation> annotations,
                                     String annotationName) {
        for ( int i = 0; i < annotations.size(); i++ ) {
            ModelAnnotation annotation = annotations.get( i );
            if ( annotationName.equals( annotation.getAnnotationName() ) ) {
                return i;
            }
        }
        return -1;
    }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

        Map<String, List<ModelAnnotation>> annotationMap = new HashMap<String, List<ModelAnnotation>>();
        for ( Map.Entry<String, Map<String, Map<String, String>>> factTypeEntry : this.annotationsForType.entrySet() ) {
            String factType = factTypeEntry.getKey();
            List<ModelAnnotation> annotations = new ArrayList<ModelAnnotation>();
            for ( Map.Entry<String, Map<String, String>> annotationEntry : factTypeEntry.getValue().entrySet() ) {
                ModelAnnotation ma = new ModelAnnotation();
                ma.setAnnotationName( annotationEntry.getKey() );
                ma.setAnnotationValues( annotationEntry.getValue() );
                annotations.add( ma );
            }
            annotationMap.put( factType,
                               annotations );
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

    }

    private int getIndexOfAnnotation(List<ModelAnnotation> annotations,
                                     String annotationName) {
        for ( int i = 0; i < annotations.size(); i++ ) {
            ModelAnnotation annotation = annotations.get( i );
            if ( annotationName.equals( annotation.getAnnotationName() ) ) {
                return i;
            }
        }
        return -1;
    }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

        Map<String, List<ModelAnnotation>> annotationMap = new HashMap<String, List<ModelAnnotation>>();
        for ( Map.Entry<String, Map<String, Map<String, String>>> factTypeEntry : this.annotationsForType.entrySet() ) {
            String factType = factTypeEntry.getKey();
            List<ModelAnnotation> annotations = new ArrayList<ModelAnnotation>();
            for ( Map.Entry<String, Map<String, String>> annotationEntry : factTypeEntry.getValue().entrySet() ) {
                ModelAnnotation ma = new ModelAnnotation();
                ma.setAnnotationName( annotationEntry.getKey() );
                ma.setAnnotationValues( annotationEntry.getValue() );
                annotations.add( ma );
            }
            annotationMap.put( factType,
                               annotations );
        }
View Full Code Here

Examples of org.drools.ide.common.client.modeldriven.ModelAnnotation

        Map<String, List<ModelAnnotation>> annotationMap = new HashMap<String, List<ModelAnnotation>>();
        for ( Map.Entry<String, Map<String, Map<String, String>>> factTypeEntry : this.annotationsForType.entrySet() ) {
            String factType = factTypeEntry.getKey();
            List<ModelAnnotation> annotations = new ArrayList<ModelAnnotation>();
            for ( Map.Entry<String, Map<String, String>> annotationEntry : factTypeEntry.getValue().entrySet() ) {
                ModelAnnotation ma = new ModelAnnotation();
                ma.setAnnotationName( annotationEntry.getKey() );
                ma.setAnnotationValues( annotationEntry.getValue() );
                annotations.add( ma );
            }
            annotationMap.put( factType,
                               annotations );
        }
View Full Code Here

Examples of quickdb.annotations.model.ModelAnnotation

        System.out.println("testDelete");
        this.testDelete();
    }

    public void testSave(){
        ModelAnnotation model = new ModelAnnotation();

        model.setAge(20);
        model.setBirth(new java.sql.Date(104, 4, 20));
        model.setName("model name");
        model.setSalary(3000.5);
        model.setDescription("parent description");

        CollectionAnnotation c = new CollectionAnnotation();
        c.setItemName("item name");

        ArrayList ar = new ArrayList();
        ar.add(new CollectionAnnotation("item1"));
        ar.add(new CollectionAnnotation("item2"));
        ar.add(new CollectionAnnotation("item3"));

        model.setArray(ar);
        model.setCollec(c);

        System.out.println(admin.save(model));
    }
View Full Code Here

Examples of quickdb.annotations.model.ModelAnnotation

        System.out.println(admin.save(model));
    }

    public void testSaveGetIndex(){
        ModelAnnotation model = new ModelAnnotation();

        model.setAge(20);
        model.setBirth(new java.sql.Date(104, 4, 20));
        model.setName("model name");
        model.setSalary(3000.5);
        model.setDescription("parent description");

        CollectionAnnotation c = new CollectionAnnotation();
        c.setItemName("item name");

        ArrayList ar = new ArrayList();
        ar.add(new CollectionAnnotation("item1"));
        ar.add(new CollectionAnnotation("item2"));
        ar.add(new CollectionAnnotation("item3"));

        model.setArray(ar);
        model.setCollec(c);

        System.out.println((admin.saveGetIndex(model) > 0));
    }
View Full Code Here

Examples of quickdb.annotations.model.ModelAnnotation

        System.out.println((admin.saveGetIndex(model) > 0));
    }

    public void testObtain(){
        ModelAnnotation model = new ModelAnnotation();

        System.out.println(admin.obtain(model).If("name").equal("model name").find());

        System.out.println(3000.5 == model.getterSalary());
        System.out.println(3 == model.getArray().size());
    }
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.