Class AccessDialectEpsgFactory

All Implemented Interfaces:
AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, Factory, CoordinateOperationAuthorityFactory, BufferedFactory, Factory, RegistrableFactory

public class AccessDialectEpsgFactory extends AbstractEpsgFactory
This factory uses the MS-Access dialect of SQL. Because the primary distribution format for the EPSG database is MS-Access there is very little work to do in our adaptSQL(java.lang.String) method.
Since:
2.4
Author:
Jody Garnett
  • Constructor Details

    • AccessDialectEpsgFactory

      public AccessDialectEpsgFactory(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.
  • Method Details

    • 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 AbstractEpsgFactory
      Parameters:
      statement - The statement in MS-Access syntax.
      Returns:
      The SQL statement to use. This implementation returns the string unchanged.