Package fr.soleil.data.adapter.source

Examples of fr.soleil.data.adapter.source.NumberToStringDataAdapter


    @Override
    public DataSourceAdapter<U, T> createAdapter(AbstractDataSource<U> source) {
        DataSourceAdapter<U, T> adapter;
        if (targetType.equals(String.class) && sourceType.equals(Number.class)
                && source.getDataType().getConcernedClass().equals(Number.class)) {
            adapter = (DataSourceAdapter<U, T>) new NumberToStringDataAdapter(
                    (AbstractDataSource<Number>) source, new NumberToStringAdapter<Number>(
                            Number.class));
        }
        else {
            adapter = super.createAdapter(source);
View Full Code Here


    @Override
    public DataSourceAdapter<U, T> createAdapter(AbstractDataSource<U> source) {
        DataSourceAdapter<U, T> adapter;
        if (targetType.equals(String.class) && sourceType.equals(Number.class)
                && source.getDataType().getConcernedClass().equals(Number.class)) {
            adapter = (DataSourceAdapter<U, T>) new NumberToStringDataAdapter(
                    (AbstractDataSource<Number>) source, new NumberToStringAdapter<Number>(
                            Number.class));
        }
        else {
            adapter = super.createAdapter(source);
View Full Code Here

TOP

Related Classes of fr.soleil.data.adapter.source.NumberToStringDataAdapter

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.