Package org.drools.workbench.models.commons.shared.oracle.model

Examples of org.drools.workbench.models.commons.shared.oracle.model.ModelField


                    expression.appendPart(new ExpressionField(expressionPart, factType, DataType.TYPE_THIS));
                } else if (isBoundParam) {
                    expression.appendPart(new ExpressionVariable(expressionPart, factType, factType));
                    isBoundParam = false;
                } else {
                    ModelField currentField = findField(typeFields, expressionPart);
                    expression.appendPart(new ExpressionField(expressionPart, currentField.getType(), currentField.getClassName()));
                    typeFields = modelFields.get(currentField.getType());
                }
            }
            String expressionPart = splits[splits.length - 1].trim();
            ModelField currentField = findField(typeFields, expressionPart);
            expression.appendPart(new ExpressionField(expressionPart, currentField.getType(), currentField.getClassName()));
            return expression;
        }
View Full Code Here


        }

        final ModelField[] fields = filteredModelFields.get( shortName );
        final List<String> fieldNames = new ArrayList<String>();
        for ( int i = 0; i < fields.length; i++ ) {
            final ModelField field = fields[ i ];
            if ( FieldAccessorsAndMutators.compare( accessorOrMutator,
                                                    field.getAccessorsAndMutators() ) ) {
                fieldNames.add( field.getName() );
            }
        }
        return fieldNames.toArray( new String[ fieldNames.size() ] );
    }
View Full Code Here

        return fieldNames.toArray( new String[ fieldNames.size() ] );
    }

    public String getFieldClassName( final String modelClassName,
                                     final String fieldName ) {
        final ModelField field = getField( modelClassName,
                                           fieldName );
        return field == null ? null : field.getClassName();
    }
View Full Code Here

        return null;
    }

    public String getFieldType( final String modelClassName,
                                final String fieldName ) {
        final ModelField field = getField( modelClassName,
                                           fieldName );
        return field == null ? null : field.getType();
    }
View Full Code Here

            final String mfType_TypeName = getTypeName( mfType_QualifiedType );
            if ( mfType_PackageName.equals( packageName ) || isImported( mfType_QualifiedType,
                                                                         imports ) ) {
                mfType = mfType_TypeName;
            }
            correctedModelFields.add( new ModelField( mf.getName(),
                                                      mfClassName,
                                                      mf.getClassType(),
                                                      mf.getOrigin(),
                                                      mf.getAccessorsAndMutators(),
                                                      mfType ) );
View Full Code Here

        }

        final ModelField[] fields = projectModelFields.get( shortName );
        final List<String> fieldNames = new ArrayList<String>();
        for ( int i = 0; i < fields.length; i++ ) {
            final ModelField field = fields[ i ];
            if ( FieldAccessorsAndMutators.compare( accessorOrMutator,
                                                    field.getAccessorsAndMutators() ) ) {
                fieldNames.add( field.getName() );
            }
        }
        return fieldNames.toArray( new String[ fieldNames.size() ] );
    }
View Full Code Here

    }

    @Override
    public String getFieldType( final String modelClassName,
                                final String fieldName ) {
        final ModelField field = getField( modelClassName,
                                           fieldName );
        return field == null ? null : field.getType();
    }
View Full Code Here

    }

    @Override
    public String getFieldClassName( final String modelClassName,
                                     final String fieldName ) {
        final ModelField field = getField( modelClassName,
                                           fieldName );
        return field == null ? null : field.getClassName();
    }
View Full Code Here

TOP

Related Classes of org.drools.workbench.models.commons.shared.oracle.model.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.