Package org.drools.workbench.models.datamodel.oracle

Examples of org.drools.workbench.models.datamodel.oracle.ModelField


        when(
                dmo.getProjectModelFields()
            ).thenReturn(
                new HashMap<String, ModelField[]>() {{
                    put( "Goober", new ModelField[]{
                            new ModelField(
                                    "gooField",
                                    "Goo",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
                                    "Goo"
                            ),
                            new ModelField(
                                    "fooField",
                                    "Foo",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
                                    "Foo"
                            ),
                            new ModelField(
                                    "zooField",
                                    "Zoo",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
                                    "Zoo"
                            )
                    } );
                    put( "Foo", new ModelField[]{
                            new ModelField(
                                    "barField",
                                    "Bar",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
View Full Code Here


    @Override
    protected ProjectDataModelOracle getProjectDataModelOracle( final Path path ) {
        final ProjectDataModelOracle dmo = new ProjectDataModelOracleImpl();
        dmo.addProjectModelFields( new HashMap<String, ModelField[]>() {{
            put( "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Applicant",
                 new ModelField[]{ new ModelField( "age",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
            put( "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Mortgage",
                 new ModelField[]{ new ModelField( "amount",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
            put( "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Mortgage",
                 new ModelField[]{ new ModelField( "applicant",
                                                   "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Applicant",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Applicant" ) } );
View Full Code Here

    @Override
    protected ProjectDataModelOracle getProjectDataModelOracle( final Path path ) {
        final ProjectDataModelOracle dmo = new ProjectDataModelOracleImpl();
        dmo.addProjectModelFields( new HashMap<String, ModelField[]>() {{
            put( "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Applicant",
                 new ModelField[]{ new ModelField( "age",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
            put( "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Mortgage",
                 new ModelField[]{ new ModelField( "amount",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
            put( "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Mortgage",
                 new ModelField[]{ new ModelField( "applicant",
                                                   "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Applicant",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   "org.drools.workbench.screens.guided.rule.backend.server.indexing.classes.Applicant" ) } );
View Full Code Here

    @Override
    protected ProjectDataModelOracle getProjectDataModelOracle( final Path path ) {
        final ProjectDataModelOracle dmo = new ProjectDataModelOracleImpl();
        dmo.addProjectModelFields( new HashMap<String, ModelField[]>() {{
            put( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Applicant",
                 new ModelField[]{ new ModelField( "age",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
            put( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Mortgage",
                 new ModelField[]{ new ModelField( "amount",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
View Full Code Here

    @Override
    protected ProjectDataModelOracle getProjectDataModelOracle( final Path path ) {
        final ProjectDataModelOracle dmo = new ProjectDataModelOracleImpl();
        dmo.addProjectModelFields( new HashMap<String, ModelField[]>() {{
            put( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Applicant",
                 new ModelField[]{ new ModelField( "age",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
            put( "org.drools.workbench.screens.guided.scorecard.backend.server.indexing.classes.Mortgage",
                 new ModelField[]{ new ModelField( "amount",
                                                   "java.lang.Integer",
                                                   ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS,
                                                   ModelField.FIELD_ORIGIN.DECLARED,
                                                   FieldAccessorsAndMutators.ACCESSOR,
                                                   DataType.TYPE_NUMERIC_INTEGER ) } );
View Full Code Here

    private void addModelField( final String factName,
                                final String fieldName,
                                final String clazz,
                                final String type ) {
        ModelField[] modelFields = new ModelField[ 1 ];
        modelFields[ 0 ] = new ModelField( fieldName,
                                           clazz,
                                           ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                           ModelField.FIELD_ORIGIN.DECLARED,
                                           FieldAccessorsAndMutators.BOTH,
                                           type );
View Full Code Here

                dmo.getProjectModelFields()
            ).thenReturn(
                new HashMap<String, ModelField[]>() {{
                    put( "Customer",
                         new ModelField[]{
                                 new ModelField(
                                         "contact",
                                         "Contact",
                                         ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                         ModelField.FIELD_ORIGIN.DECLARED,
                                         FieldAccessorsAndMutators.BOTH,
                                         "Contact"
                                 )
                         } );
                    put( "Contact",
                         new ModelField[]{
                                 new ModelField(
                                         "tel1",
                                         "Integer",
                                         ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                         ModelField.FIELD_ORIGIN.DECLARED,
                                         FieldAccessorsAndMutators.BOTH,
View Full Code Here

        when(
                dmo.getProjectModelFields()
            ).thenReturn(
                new HashMap<String, ModelField[]>() {{
                    put( "Person", new ModelField[]{
                            new ModelField(
                                    "favouriteCheese",
                                    "Cheese",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
                                    "Cheese"
                            )
                    } );
                    put( "Cheese", new ModelField[]{
                            new ModelField(
                                    "name",
                                    "String",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
View Full Code Here

        when(
                dmo.getProjectModelFields()
            ).thenReturn(
                new HashMap<String, ModelField[]>() {{
                    put( "Person", new ModelField[]{
                            new ModelField(
                                    "favouriteCheese",
                                    "Cheese",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
                                    "Cheese"
                            )
                    } );
                    put( "Cheese", new ModelField[]{
                            new ModelField(
                                    "age",
                                    "Integer",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
View Full Code Here

        when(
                dmo.getProjectModelFields()
            ).thenReturn(
                new HashMap<String, ModelField[]>() {{
                    put( "Person", new ModelField[]{
                            new ModelField(
                                    "favouriteCheese",
                                    "Cheese",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
                                    "Cheese"
                            )
                    } );
                    put( "Cheese", new ModelField[]{
                            new ModelField(
                                    "dateBrought",
                                    "Date",
                                    ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
                                    ModelField.FIELD_ORIGIN.DECLARED,
                                    FieldAccessorsAndMutators.BOTH,
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.datamodel.oracle.ModelField

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.