Package com.asakusafw.dmdl.model

Examples of com.asakusafw.dmdl.model.BasicTypeKind


        assert attribute != null;
        assert types != null;
        assert types.length > 0;
        Type type = declaration.getType();
        if (type instanceof BasicType) {
            BasicTypeKind kind = ((BasicType) type).getKind();
            for (BasicTypeKind accept : types) {
                if (kind == accept) {
                    return;
                }
            }
View Full Code Here


            SimpleName value = f.newSimpleName("value");
            SimpleName calendar = f.newSimpleName(NAME_CALENDAR);
            SimpleName text = f.newSimpleName(NAME_TEXT);
            SimpleName date = f.newSimpleName(NAME_DATE);
            SimpleName datetime = f.newSimpleName(NAME_DATETIME);
            BasicTypeKind kind = toBasicKind(property.getType());
            switch (kind) {
            case INT:
                statements.add(createResultSetMapping(object, resultSet, position, property, "getInt"));
                statements.add(createResultSetNullMapping(object, resultSet, property));
                break;
View Full Code Here

            assert property != null;
            List<Statement> statements = Lists.create();
            SimpleName date = f.newSimpleName(NAME_DATE);
            SimpleName calendar = f.newSimpleName(NAME_CALENDAR);
            SimpleName datetime = f.newSimpleName(NAME_DATETIME);
            BasicTypeKind kind = toBasicKind(property.getType());
            switch (kind) {
            case INT:
                statements.add(createParameterMapping(object, statement, position, property, "setInt"));
                break;
            case LONG:
View Full Code Here

                .toExpression();
        }

        private String getJdbcTypeName(PropertyDeclaration property) {
            assert property != null;
            BasicTypeKind kind = toBasicKind(property.getType());
            switch (kind) {
            case INT:
                return "INTEGER";
            case LONG:
                return "BIGINT";
View Full Code Here

        assert attribute != null;
        assert types != null;
        assert types.length > 0;
        Type type = declaration.getType();
        if (type instanceof BasicType) {
            BasicTypeKind kind = ((BasicType) type).getKind();
            for (BasicTypeKind accept : types) {
                if (kind == accept) {
                    return;
                }
            }
View Full Code Here

        assert attribute != null;
        assert types != null;
        assert types.length > 0;
        Type type = declaration.getType();
        if (type instanceof BasicType) {
            BasicTypeKind kind = ((BasicType) type).getKind();
            for (BasicTypeKind accept : types) {
                if (kind == accept) {
                    return;
                }
            }
View Full Code Here

        assert attribute != null;
        assert types != null;
        assert types.length > 0;
        Type type = declaration.getType();
        if (type instanceof BasicType) {
            BasicTypeKind kind = ((BasicType) type).getKind();
            for (BasicTypeKind accept : types) {
                if (kind == accept) {
                    return;
                }
            }
View Full Code Here

    private void checkDeleteFlag(Holder holder, PropertySymbol delete, AstLiteral deleteValue) {
        assert holder != null;
        if (delete != null) {
            assert deleteValue != null;
            BasicTypeKind deleteType = type(delete);
            switch (deleteValue.getKind()) {
            case BOOLEAN:
                if (deleteType != BasicTypeKind.BOOLEAN) {
                    holder.error(
                            delete.getName(),
View Full Code Here

     */
    public static AstType toType(PropertyType type) {
        if (type == null) {
            throw new IllegalArgumentException("type must not be null"); //$NON-NLS-1$
        }
        BasicTypeKind kind = convert(type.getKind());
        return new AstBasicType(null, kind);
    }
View Full Code Here

        if (types == null) {
            throw new IllegalArgumentException("types must not be null"); //$NON-NLS-1$
        }
        Type type = declaration.getType();
        if (type instanceof BasicType) {
            BasicTypeKind kind = ((BasicType) type).getKind();
            for (BasicTypeKind accept : types) {
                if (kind == accept) {
                    return true;
                }
            }
View Full Code Here

TOP

Related Classes of com.asakusafw.dmdl.model.BasicTypeKind

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.