SQLTranslator changes for revisions 26095:26263

Those changes have not been ported to SIS. They do not apply anyway because SIS SQLTranslator class does not extend anymore a factory class (we separated to factory task from the SQL adaptation task), and we do not port the Hints system to SIS.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r26095:26263 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/factory/epsg/AnsiDialectEpsgFactory.java
Revision 26095Revision 26263
import java.util.LinkedHashMap;
import java.util.Map;

// Geotools dependencies
import org.geotools.factory.Hints;


/**
import java.util.LinkedHashMap;
import java.util.Map;

import javax.sql.DataSource;

// Geotools dependencies
import org.geotools.factory.Hints;
import org.opengis.referencing.FactoryException;


/**
 * @author Didier Richard
 * @author John Grange
 */
public class AnsiDialectEpsgFactory extends DirectEpsgFactory {
    /**
     * The default map using ANSI names.
     */
 * @author Didier Richard
 * @author John Grange
 */
public class AnsiDialectEpsgFactory extends AbstractEpsgFactory {
    /**
     * The default map using ANSI names.
     */
private String prefix = "epsg_";

/**
 * Constructs an authority factory using the specified connection.
 *
 * @param userHints  The underlying factories used for objects creation.
 * @param connection The connection to the underlying EPSG database.
 */
public AnsiDialectEpsgFactory(final Hints      userHints,
                              final Connection connection)
{
    super(userHints, connection);
    for (int i=0; i<ANSI.length; i++) {
        map.put(ANSI[i], ANSI[++i]);
    }
}

/**
 * Replaces the {@code "epsg_"} prefix by the specified schema name. If the removal
private String prefix = "epsg_";

/**
 * Constructs an authority factory, the hints should describe the data source it use.
 *
 * @param userHints  The underlying factories used for objects creation.
 * @throws FactoryException
 */
public AnsiDialectEpsgFactory(final Hints userHints) throws FactoryException
{
    super(userHints );
    for (int i=0; i<ANSI.length; i++) {
        map.put(ANSI[i], ANSI[++i]);
    }
}
/**
 * Constructs an authority factory using the specified connection.
 *
 * @param userHints  The underlying factories used for objects creation.
 * @param connection The connection to the underlying EPSG database.
 * @throws FactoryException
 */
public AnsiDialectEpsgFactory( Hints hints, Connection connection ) {
    super(hints, connection );
    for (int i=0; i<ANSI.length; i++) {
        map.put(ANSI[i], ANSI[++i]);
    }
}
/**
 * Constructs an authority factory using the specified connection.
 *
 * @param userHints  The underlying factories used for objects creation.
 * @param  dataSource Used to create a connection to the underlying EPSG database
 * @throws FactoryException
 */
public AnsiDialectEpsgFactory( Hints hints, DataSource dataSource ) {
    super(hints, dataSource);
    for (int i=0; i<ANSI.length; i++) {
        map.put(ANSI[i], ANSI[++i]);
    }
}

/**
 * Replaces the {@code "epsg_"} prefix by the specified schema name. If the removal