Class FactoryUsingSQL

    • Constructor Detail

      • FactoryUsingSQL

        public FactoryUsingSQL​(Hints userHints,
                               Connection connection)
        Constructs an authority factory using the specified connection.
        Parameters:
        userHints - The underlying factories used for objects creation.
        connection - The connection to the underlying EPSG database.
        Since:
        2.2
      • FactoryUsingSQL

        public FactoryUsingSQL​(Hints userHints,
                               DataSource dataSource)
        Constructs an authority factory using the specified connection.
        Parameters:
        userHints - The underlying factories used for objects creation.
        dataSource - The connection to the underlying EPSG database.
        Since:
        2.5
    • Method Detail

      • adaptSQL

        protected String adaptSQL​(String statement)
        Invoked when a new PreparedStatement is about to be created from a SQL string.

        Since the EPSG database is available mainly in MS-Access format, and this is the target of our super class, we have no work to do here.

        Specified by:
        adaptSQL in class DirectEpsgFactory
        Parameters:
        statement - The statement in MS-Access syntax.
        Returns:
        The SQL statement to use. This implementation returns the string unchanged.