Package net.sourceforge.jdbclogger.core.formatters

Examples of net.sourceforge.jdbclogger.core.formatters.ParameterFormatter


                _paramIndexToListIndex.get(new Integer(parameterIndex));

        if(listIndex != null)
        {
            String sql;
            ParameterFormatter pf;

            if (parameter == null)
                sql = "null";
            else if ((pf = getParamFormatterFor(parameter.getClass ())) != null)
                sql = pf.format (parameter);
            else
                sql = "'"+parameter+"'";

            getSqlAsList().set(listIndex.intValue(), sql);
        }
View Full Code Here


    protected ParameterFormatter getParamFormatterFor (Class clazz)
    {
        for (int i = 0; i < _paramFormatterList.size (); i++)
        {
            ParameterFormatter pf = (ParameterFormatter) _paramFormatterList.get (i);

            if (pf.getFormattingClass().isAssignableFrom (clazz))
                return pf;
        }

        return null;
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.jdbclogger.core.formatters.ParameterFormatter

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.