Examples of MappingContext


Examples of ma.glasnost.orika.MappingContext

        }
       
    }
   
    public <S, D> void map(S sourceObject, D destinationObject, Type<S> sourceType, Type<D> destinationType) {
        MappingContext context = contextFactory.getContext();
        try {
            map(sourceObject, destinationObject, sourceType, destinationType, context);
        } finally {
            contextFactory.release(context);
        }
View Full Code Here

Examples of ma.glasnost.orika.MappingContext

                    + (destinationObject != null ? destinationObject.getClass() : null), e);
        }
    }
   
    public <S, D> void map(S sourceObject, D destinationObject) {
        MappingContext context = contextFactory.getContext();
        try {
            map(sourceObject, destinationObject, context);
        } finally {
            contextFactory.release(context);
        }
View Full Code Here

Examples of ma.glasnost.orika.MappingContext

            contextFactory.release(context);
        }
    }
   
    public final <S, D> Set<D> mapAsSet(Iterable<S> source, Type<S> sourceType, Type<D> destinationType) {
        MappingContext context = contextFactory.getContext();
        try {
            return mapAsSet(source, sourceType, destinationType, context);
        } finally {
            contextFactory.release(context);
       
View Full Code Here

Examples of ma.glasnost.orika.MappingContext

    public final <S, D> Set<D> mapAsSet(Iterable<S> source, Type<S> sourceType, Type<D> destinationType, MappingContext context) {
        return (Set<D>) mapAsCollection(source, sourceType, destinationType, new HashSet<D>(), context);
    }
   
    public final <S, D> List<D> mapAsList(Iterable<S> source, Type<S> sourceType, Type<D> destinationType) {
        MappingContext context = contextFactory.getContext();
        try {
            return (List<D>) mapAsCollection(source, sourceType, destinationType, new ArrayList<D>(), context);
        } finally {
            contextFactory.release(context);
        }
View Full Code Here

Examples of ma.glasnost.orika.MappingContext

    public final <S, D> List<D> mapAsList(Iterable<S> source, Type<S> sourceType, Type<D> destinationType, MappingContext context) {
        return (List<D>) mapAsCollection(source, sourceType, destinationType, new ArrayList<D>(), context);
    }
   
    public <S, D> D[] mapAsArray(D[] destination, Iterable<S> source, Type<S> sourceType, Type<D> destinationType) {
        MappingContext context = contextFactory.getContext();
        try {
            return mapAsArray(destination, source, sourceType, destinationType, context);
        } finally {
            contextFactory.release(context);
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.mapping.MappingContext

    }

    public ExpressionTree parseAnnotationExpr(final HConnection connection,
                                              final Object recordObj,
                                              final String expr) throws HBqlException {
        final MappingContext mappingContext = getAnnotationMappingContext(connection, recordObj);
        return parseDescWhereExpr(expr, mappingContext);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.mapping.MappingContext

        final MappingContext mappingContext = getAnnotationMappingContext(connection, recordObj);
        return parseDescWhereExpr(expr, mappingContext);
    }

    public ExpressionTree parseReflectionExpr(final Object recordObj, final String expr) throws HBqlException {
        final MappingContext mappingContext = getReflectionMappingContext(recordObj);
        return parseDescWhereExpr(expr, mappingContext);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.mapping.MappingContext

    }

    private static boolean evaluateAnnotationExpression(final HConnection connection,
                                                        final Object recordObj,
                                                        final String expr) throws HBqlException {
        final MappingContext mappingContext = getAnnotationMappingContext(connection, recordObj);
        final ExpressionTree tree = parseDescWhereExpr(expr, mappingContext);
        return evaluateExpression(recordObj, tree);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.mapping.MappingContext

        final ExpressionTree tree = parseDescWhereExpr(expr, mappingContext);
        return evaluateExpression(recordObj, tree);
    }

    private static boolean evaluateReflectionExpression(final Object recordObj, final String expr) throws HBqlException {
        final MappingContext mappingContext = getReflectionMappingContext(recordObj);
        final ExpressionTree tree = parseDescWhereExpr(expr, mappingContext);
        return evaluateExpression(recordObj, tree);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.mapping.MappingContext

    }

    private static MappingContext getAnnotationMappingContext(final HConnection connection,
                                                              final Object obj) throws HBqlException {
        if (obj == null)
            return new MappingContext();
        else
            return getAnnotatedMapping(connection, obj).getMappingContext();
    }
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.