| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (11.0.4) on Fri Sep 20 12:10:30 CEST 2019 --> |
| <title>EPSGFactory (Apache SIS 1.0 API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2019-09-20"> |
| <meta name="keywords" content="org.apache.sis.referencing.factory.sql.EPSGFactory class"> |
| <meta name="keywords" content="dataSource"> |
| <meta name="keywords" content="nameFactory"> |
| <meta name="keywords" content="datumFactory"> |
| <meta name="keywords" content="csFactory"> |
| <meta name="keywords" content="crsFactory"> |
| <meta name="keywords" content="copFactory"> |
| <meta name="keywords" content="mtFactory"> |
| <meta name="keywords" content="getCodeSpaces()"> |
| <meta name="keywords" content="getLocale()"> |
| <meta name="keywords" content="install()"> |
| <meta name="keywords" content="newDataAccess()"> |
| <meta name="keywords" content="canClose()"> |
| <meta name="keywords" content="isCacheable()"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../sis.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="EPSGFactory (Apache SIS 1.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../../../"; |
| var useModuleDirectories = false; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/EPSGFactory.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.sis.referencing.factory.sql</a></div> |
| <h2 title="Class EPSGFactory" class="title">Class EPSGFactory</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../util/iso/AbstractFactory.html" title="class in org.apache.sis.util.iso">AbstractFactory</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../GeodeticAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">GeodeticAuthorityFactory</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../ConcurrentAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">ConcurrentAuthorityFactory</a><<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a>></li> |
| <li> |
| <ul class="inheritance"> |
| <li>EPSGFactory</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang" class="externalLink">AutoCloseable</a></code>, <code><a href="../../../util/Localized.html" title="interface in org.apache.sis.util">Localized</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/AuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing" class="externalLink">AuthorityFactory</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink">CRSAuthorityFactory</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink">CSAuthorityFactory</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink">DatumAuthorityFactory</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">CoordinateOperationAuthorityFactory</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/Factory.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">Factory</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public class <span class="typeNameLabel">EPSGFactory</span> |
| extends <a href="../ConcurrentAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">ConcurrentAuthorityFactory</a><<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a>> |
| implements <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink">CRSAuthorityFactory</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink">CSAuthorityFactory</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink">DatumAuthorityFactory</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">CoordinateOperationAuthorityFactory</a>, <a href="../../../util/Localized.html" title="interface in org.apache.sis.util">Localized</a></pre> |
| <div class="block">A geodetic object factory backed by the EPSG database. This class creates JDBC connections to the EPSG database |
| when first needed using the <a href="https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html?is-external=true" title="class or interface in javax.sql" class="externalLink"><code>DataSource</code></a> specified at construction time. The geodetic objects are cached |
| for reuse and the idle connections are closed after a timeout. |
| |
| <p>If no data source has been specified to the constructor, then <code>EPSGFactory</code> searches for a |
| default data source in JNDI, or in the directory given by the <code>SIS_DATA</code> environment variable, |
| or in the directory given by the <code>"derby.system.home"</code> property, in that order. |
| See the <a href="package-summary.html">package documentation</a> for more information.</p> |
| |
| <div class="section">EPSG dataset installation</div> |
| This class tries to automatically detect the schema that contains the EPSG tables |
| (see <a href="SQLTranslator.html" title="class in org.apache.sis.referencing.factory.sql"><code>SQLTranslator</code></a> for examples of tables to look for). If the tables are not found, |
| then the <a href="#install(java.sql.Connection)"><code>install(Connection)</code></a> method will be invoked for creating the EPSG schema. |
| The <code>install(…)</code> method can perform its work only if the definition files are reachable |
| on the classpath, or if the directory containing the files have been specified. |
| |
| <div class="section">Data Access Object (DAO)</div> |
| If there is no cached object for a given code, then <code>EPSGFactory</code> creates an <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql"><code>EPSGDataAccess</code></a> instance |
| for performing the actual creation work. Developers who need to customize the geodetic object creation can override |
| the <a href="#newDataAccess(java.sql.Connection,org.apache.sis.referencing.factory.sql.SQLTranslator)"><code>newDataAccess(Connection, SQLTranslator)</code></a> method in order to return their own <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql"><code>EPSGDataAccess</code></a> |
| subclass.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>0.7</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql"><code>EPSGDataAccess</code></a>, |
| <a href="SQLTranslator.html" title="class in org.apache.sis.referencing.factory.sql"><code>SQLTranslator</code></a>, |
| <a href="http://sis.apache.org/tables/CoordinateReferenceSystems.html">List of authority codes</a></dd> |
| |
| <p><font size="-1">Defined in the <code>sis-referencing</code> module</font></p> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">CoordinateOperationFactory</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copFactory">copFactory</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperation.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>CoordinateOperation</code></a> instances |
| from the properties read in the database.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSFactory.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink">CRSFactory</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#crsFactory">crsFactory</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CoordinateReferenceSystem.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink"><code>CoordinateReferenceSystem</code></a> instances |
| from the properties read in the database.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSFactory.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink">CSFactory</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#csFactory">csFactory</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CoordinateSystem.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink"><code>CoordinateSystem</code></a> instances |
| from the properties read in the database.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html?is-external=true" title="class or interface in javax.sql" class="externalLink">DataSource</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dataSource">dataSource</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink"><code>Connection</code></a>s to the EPSG database.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumFactory.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink">DatumFactory</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#datumFactory">datumFactory</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/Datum.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink"><code>Datum</code></a> instances |
| from the properties read in the database.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/MathTransformFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">MathTransformFactory</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mtFactory">mtFactory</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/MathTransform.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>MathTransform</code></a> instances.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/NameFactory.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">NameFactory</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nameFactory">nameFactory</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/GenericName.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink"><code>GenericName</code></a> instances.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.util.Map)">EPSGFactory</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>,​?> properties)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a factory using the given configuration.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canClose(org.apache.sis.referencing.factory.sql.EPSGDataAccess)">canClose</a></span>​(<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a> factory)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns <code>true</code> if the given Data Access Object (DAO) can be closed.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCodeSpaces()">getCodeSpaces</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the namespace of EPSG codes.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util" class="externalLink">Locale</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLocale()">getLocale</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the locale used by this factory for producing error messages.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#install(java.sql.Connection)">install</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink">Connection</a> connection)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates the EPSG schema in the database and populates the tables with geodetic definitions.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCacheable(java.lang.String,java.lang.Object)">isCacheable</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> code, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> object)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns whether the given object can be cached.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newDataAccess()">newDataAccess</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Creates the factory which will perform the actual geodetic object creation work.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>protected <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newDataAccess(java.sql.Connection,org.apache.sis.referencing.factory.sql.SQLTranslator)">newDataAccess</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink">Connection</a> connection, |
| <a href="SQLTranslator.html" title="class in org.apache.sis.referencing.factory.sql">SQLTranslator</a> translator)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates the factory which will perform the actual geodetic object creation from a given connection.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.ConcurrentAuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class <a href="../ConcurrentAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">ConcurrentAuthorityFactory</a></h3> |
| <code><a href="../ConcurrentAuthorityFactory.html#close()">close</a>, <a href="../ConcurrentAuthorityFactory.html#createCartesianCS(java.lang.String)">createCartesianCS</a>, <a href="../ConcurrentAuthorityFactory.html#createCompoundCRS(java.lang.String)">createCompoundCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createCoordinateOperation(java.lang.String)">createCoordinateOperation</a>, <a href="../ConcurrentAuthorityFactory.html#createCoordinateReferenceSystem(java.lang.String)">createCoordinateReferenceSystem</a>, <a href="../ConcurrentAuthorityFactory.html#createCoordinateSystem(java.lang.String)">createCoordinateSystem</a>, <a href="../ConcurrentAuthorityFactory.html#createCoordinateSystemAxis(java.lang.String)">createCoordinateSystemAxis</a>, <a href="../ConcurrentAuthorityFactory.html#createCylindricalCS(java.lang.String)">createCylindricalCS</a>, <a href="../ConcurrentAuthorityFactory.html#createDatum(java.lang.String)">createDatum</a>, <a href="../ConcurrentAuthorityFactory.html#createDerivedCRS(java.lang.String)">createDerivedCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createEllipsoid(java.lang.String)">createEllipsoid</a>, <a href="../ConcurrentAuthorityFactory.html#createEllipsoidalCS(java.lang.String)">createEllipsoidalCS</a>, <a href="../ConcurrentAuthorityFactory.html#createEngineeringCRS(java.lang.String)">createEngineeringCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createEngineeringDatum(java.lang.String)">createEngineeringDatum</a>, <a href="../ConcurrentAuthorityFactory.html#createExtent(java.lang.String)">createExtent</a>, <a href="../ConcurrentAuthorityFactory.html#createFromCoordinateReferenceSystemCodes(java.lang.String,java.lang.String)">createFromCoordinateReferenceSystemCodes</a>, <a href="../ConcurrentAuthorityFactory.html#createGeocentricCRS(java.lang.String)">createGeocentricCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createGeodeticDatum(java.lang.String)">createGeodeticDatum</a>, <a href="../ConcurrentAuthorityFactory.html#createGeographicCRS(java.lang.String)">createGeographicCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createImageCRS(java.lang.String)">createImageCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createImageDatum(java.lang.String)">createImageDatum</a>, <a href="../ConcurrentAuthorityFactory.html#createObject(java.lang.String)">createObject</a>, <a href="../ConcurrentAuthorityFactory.html#createOperationMethod(java.lang.String)">createOperationMethod</a>, <a href="../ConcurrentAuthorityFactory.html#createParameterDescriptor(java.lang.String)">createParameterDescriptor</a>, <a href="../ConcurrentAuthorityFactory.html#createPolarCS(java.lang.String)">createPolarCS</a>, <a href="../ConcurrentAuthorityFactory.html#createPrimeMeridian(java.lang.String)">createPrimeMeridian</a>, <a href="../ConcurrentAuthorityFactory.html#createProjectedCRS(java.lang.String)">createProjectedCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createSphericalCS(java.lang.String)">createSphericalCS</a>, <a href="../ConcurrentAuthorityFactory.html#createTemporalCRS(java.lang.String)">createTemporalCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createTemporalDatum(java.lang.String)">createTemporalDatum</a>, <a href="../ConcurrentAuthorityFactory.html#createTimeCS(java.lang.String)">createTimeCS</a>, <a href="../ConcurrentAuthorityFactory.html#createUnit(java.lang.String)">createUnit</a>, <a href="../ConcurrentAuthorityFactory.html#createVerticalCRS(java.lang.String)">createVerticalCRS</a>, <a href="../ConcurrentAuthorityFactory.html#createVerticalCS(java.lang.String)">createVerticalCS</a>, <a href="../ConcurrentAuthorityFactory.html#createVerticalDatum(java.lang.String)">createVerticalDatum</a>, <a href="../ConcurrentAuthorityFactory.html#getAuthority()">getAuthority</a>, <a href="../ConcurrentAuthorityFactory.html#getAuthorityCodes(java.lang.Class)">getAuthorityCodes</a>, <a href="../ConcurrentAuthorityFactory.html#getDescriptionText(java.lang.String)">getDescriptionText</a>, <a href="../ConcurrentAuthorityFactory.html#getTimeout(java.util.concurrent.TimeUnit)">getTimeout</a>, <a href="../ConcurrentAuthorityFactory.html#newIdentifiedObjectFinder()">newIdentifiedObjectFinder</a>, <a href="../ConcurrentAuthorityFactory.html#normalizeCode(java.lang.String)">normalizeCode</a>, <a href="../ConcurrentAuthorityFactory.html#printCacheContent(java.io.PrintWriter)">printCacheContent</a>, <a href="../ConcurrentAuthorityFactory.html#setTimeout(long,java.util.concurrent.TimeUnit)">setTimeout</a>, <a href="../ConcurrentAuthorityFactory.html#toString()">toString</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.GeodeticAuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class <a href="../GeodeticAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">GeodeticAuthorityFactory</a></h3> |
| <code><a href="../GeodeticAuthorityFactory.html#createParametricCRS(java.lang.String)">createParametricCRS</a>, <a href="../GeodeticAuthorityFactory.html#createParametricCS(java.lang.String)">createParametricCS</a>, <a href="../GeodeticAuthorityFactory.html#createParametricDatum(java.lang.String)">createParametricDatum</a>, <a href="../GeodeticAuthorityFactory.html#trimNamespace(java.lang.String)">trimNamespace</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.AbstractFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class <a href="../../../util/iso/AbstractFactory.html" title="class in org.apache.sis.util.iso">AbstractFactory</a></h3> |
| <code><a href="../../../util/iso/AbstractFactory.html#getVendor()">getVendor</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.AuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/AuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing" class="externalLink">AuthorityFactory</a></h3> |
| <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/AuthorityFactory.html?is-external=true#createObject(java.lang.String)" title="class or interface in org.opengis.referencing" class="externalLink">createObject</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/AuthorityFactory.html?is-external=true#getAuthority()" title="class or interface in org.opengis.referencing" class="externalLink">getAuthority</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/AuthorityFactory.html?is-external=true#getAuthorityCodes(java.lang.Class)" title="class or interface in org.opengis.referencing" class="externalLink">getAuthorityCodes</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/AuthorityFactory.html?is-external=true#getDescriptionText(java.lang.String)" title="class or interface in org.opengis.referencing" class="externalLink">getDescriptionText</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.CoordinateOperationAuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">CoordinateOperationAuthorityFactory</a></h3> |
| <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true#createCoordinateOperation(java.lang.String)" title="class or interface in org.opengis.referencing.operation" class="externalLink">createCoordinateOperation</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true#createFromCoordinateReferenceSystemCodes(java.lang.String,java.lang.String)" title="class or interface in org.opengis.referencing.operation" class="externalLink">createFromCoordinateReferenceSystemCodes</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true#createOperationMethod(java.lang.String)" title="class or interface in org.opengis.referencing.operation" class="externalLink">createOperationMethod</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.CRSAuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink">CRSAuthorityFactory</a></h3> |
| <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createCompoundCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createCompoundCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createCoordinateReferenceSystem(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createCoordinateReferenceSystem</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createDerivedCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createDerivedCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createEngineeringCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createEngineeringCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createGeocentricCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createGeocentricCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createGeographicCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createGeographicCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createImageCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createImageCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createProjectedCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createProjectedCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createTemporalCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createTemporalCRS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true#createVerticalCRS(java.lang.String)" title="class or interface in org.opengis.referencing.crs" class="externalLink">createVerticalCRS</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.CSAuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink">CSAuthorityFactory</a></h3> |
| <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createCartesianCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createCartesianCS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createCoordinateSystem(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createCoordinateSystem</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createCoordinateSystemAxis(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createCoordinateSystemAxis</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createCylindricalCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createCylindricalCS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createEllipsoidalCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createEllipsoidalCS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createPolarCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createPolarCS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createSphericalCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createSphericalCS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createTimeCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createTimeCS</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createUnit(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createUnit</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true#createVerticalCS(java.lang.String)" title="class or interface in org.opengis.referencing.cs" class="externalLink">createVerticalCS</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.DatumAuthorityFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink">DatumAuthorityFactory</a></h3> |
| <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createDatum(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createDatum</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createEllipsoid(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createEllipsoid</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createEngineeringDatum(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createEngineeringDatum</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createGeodeticDatum(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createGeodeticDatum</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createImageDatum(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createImageDatum</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createPrimeMeridian(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createPrimeMeridian</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createTemporalDatum(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createTemporalDatum</a>, <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true#createVerticalDatum(java.lang.String)" title="class or interface in org.opengis.referencing.datum" class="externalLink">createVerticalDatum</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.Factory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/Factory.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">Factory</a></h3> |
| <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/Factory.html?is-external=true#getVendor()" title="class or interface in org.opengis.util" class="externalLink">getVendor</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a id="dataSource"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dataSource</h4> |
| <pre>protected final <a href="https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html?is-external=true" title="class or interface in javax.sql" class="externalLink">DataSource</a> dataSource</pre> |
| <div class="block">The factory to use for creating <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink"><code>Connection</code></a>s to the EPSG database.</div> |
| </li> |
| </ul> |
| <a id="nameFactory"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>nameFactory</h4> |
| <pre>protected final <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/NameFactory.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">NameFactory</a> nameFactory</pre> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/GenericName.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink"><code>GenericName</code></a> instances.</div> |
| </li> |
| </ul> |
| <a id="datumFactory"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>datumFactory</h4> |
| <pre>protected final <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumFactory.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink">DatumFactory</a> datumFactory</pre> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/Datum.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink"><code>Datum</code></a> instances |
| from the properties read in the database.</div> |
| </li> |
| </ul> |
| <a id="csFactory"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>csFactory</h4> |
| <pre>protected final <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSFactory.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink">CSFactory</a> csFactory</pre> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CoordinateSystem.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink"><code>CoordinateSystem</code></a> instances |
| from the properties read in the database.</div> |
| </li> |
| </ul> |
| <a id="crsFactory"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>crsFactory</h4> |
| <pre>protected final <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSFactory.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink">CRSFactory</a> crsFactory</pre> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CoordinateReferenceSystem.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink"><code>CoordinateReferenceSystem</code></a> instances |
| from the properties read in the database.</div> |
| </li> |
| </ul> |
| <a id="copFactory"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copFactory</h4> |
| <pre>protected final <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">CoordinateOperationFactory</a> copFactory</pre> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperation.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>CoordinateOperation</code></a> instances |
| from the properties read in the database.</div> |
| </li> |
| </ul> |
| <a id="mtFactory"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>mtFactory</h4> |
| <pre>protected final <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/MathTransformFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink">MathTransformFactory</a> mtFactory</pre> |
| <div class="block">The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/MathTransform.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>MathTransform</code></a> instances. |
| The math transforms are created as part of <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperation.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>CoordinateOperation</code></a> |
| creation process.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>(java.util.Map)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>EPSGFactory</h4> |
| <pre>public EPSGFactory​(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>,​?> properties) |
| throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/FactoryException.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">FactoryException</a></pre> |
| <div class="block">Creates a factory using the given configuration. The properties recognized by this constructor |
| are listed in the table below. Any property not listed below will be ignored by this constructor. |
| All properties are optional and can <code>null</code> or omitted, in which case default values are used. |
| Those default values are implementation-specific and may change in any future SIS version. |
| |
| <table class="sis"> |
| <caption>Recognized properties</caption> |
| <tr> |
| <th>Key</th> |
| <th>Value class</th> |
| <th>Description</th> |
| </tr><tr> |
| <td><code>dataSource</code></td> |
| <td><a href="https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html?is-external=true" title="class or interface in javax.sql" class="externalLink"><code>DataSource</code></a></td> |
| <td>The factory to use for creating <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink"><code>Connection</code></a>s to the EPSG database.</td> |
| </tr><tr> |
| <td><code>nameFactory</code></td> |
| <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/NameFactory.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink"><code>NameFactory</code></a></td> |
| <td>The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/GenericName.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink"><code>GenericName</code></a> instances.</td> |
| </tr><tr> |
| <td><code>datumFactory</code></td> |
| <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/DatumAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink"><code>DatumAuthorityFactory</code></a></td> |
| <td>The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/datum/Datum.html?is-external=true" title="class or interface in org.opengis.referencing.datum" class="externalLink"><code>Datum</code></a> instances.</td> |
| </tr><tr> |
| <td><code>csFactory</code></td> |
| <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink"><code>CSAuthorityFactory</code></a></td> |
| <td>The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/cs/CoordinateSystem.html?is-external=true" title="class or interface in org.opengis.referencing.cs" class="externalLink"><code>CoordinateSystem</code></a> instances.</td> |
| </tr><tr> |
| <td><code>crsFactory</code></td> |
| <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CRSAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink"><code>CRSAuthorityFactory</code></a></td> |
| <td>The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/crs/CoordinateReferenceSystem.html?is-external=true" title="class or interface in org.opengis.referencing.crs" class="externalLink"><code>CoordinateReferenceSystem</code></a> instances.</td> |
| </tr><tr> |
| <td><code>copFactory</code></td> |
| <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperationAuthorityFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>CoordinateOperationAuthorityFactory</code></a></td> |
| <td>The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/CoordinateOperation.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>CoordinateOperation</code></a> instances.</td> |
| </tr><tr> |
| <td><code>mtFactory</code></td> |
| <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/MathTransformFactory.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>MathTransformFactory</code></a></td> |
| <td>The factory to use for creating <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/referencing/operation/MathTransform.html?is-external=true" title="class or interface in org.opengis.referencing.operation" class="externalLink"><code>MathTransform</code></a> instances.</td> |
| </tr><tr> |
| <td><code>catalog</code></td> |
| <td><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a></td> |
| <td>The database catalog that contains the EPSG schema (see <a href="#install(java.sql.Connection)">install</a>).</td> |
| </tr><tr> |
| <td><code>schema</code></td> |
| <td><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a></td> |
| <td>The database schema that contains the EPSG tables (see <a href="#install(java.sql.Connection)">install</a>).</td> |
| </tr><tr> |
| <td><code>scriptProvider</code></td> |
| <td><a href="InstallationScriptProvider.html" title="class in org.apache.sis.referencing.factory.sql"><code>InstallationScriptProvider</code></a></td> |
| <td>A provider of SQL scripts to use if <code>EPSGFactory</code> needs to create the database.</td> |
| </tr><tr> |
| <td><code>locale</code></td> |
| <td><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util" class="externalLink"><code>Locale</code></a></td> |
| <td>The locale for producing error messages on a <cite>best effort</cite> basis.</td> |
| </tr> |
| </table> |
| |
| <p>Default values</p> |
| <ul> |
| <li>If no <code>dataSource</code> is specified, this constructor defaults to the search algorithm described |
| in the <a href="package-summary.html">package documentation</a>.</li> |
| <li>If no <code>catalog</code> or <code>schema</code> is specified, <a href="SQLTranslator.html" title="class in org.apache.sis.referencing.factory.sql"><code>SQLTranslator</code></a> will try to auto-detect |
| the schema that contains the EPSG tables.</li> |
| <li>If no <code>locale</code> is specified, this constructor defaults to the |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true#getDefault(java.util.Locale.Category)" title="class or interface in java.util" class="externalLink">display locale</a>.</li> |
| </ul></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>properties</code> - the data source, authority factories and other configuration properties, |
| or <code>null</code> for the default values.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang" class="externalLink">ClassCastException</a></code> - if a property value is not of the expected class.</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a></code> - if a property value is invalid.</dd> |
| <dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/FactoryException.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">FactoryException</a></code> - if an error occurred while creating the EPSG factory.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="getCodeSpaces()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCodeSpaces</h4> |
| <pre class="methodSignature">public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>> getCodeSpaces()</pre> |
| <div class="block">Returns the namespace of EPSG codes.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../GeodeticAuthorityFactory.html#getCodeSpaces()">getCodeSpaces</a></code> in class <code><a href="../GeodeticAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">GeodeticAuthorityFactory</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>"EPSG"</code> string in a singleton map.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getLocale()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLocale</h4> |
| <pre class="methodSignature">public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util" class="externalLink">Locale</a> getLocale()</pre> |
| <div class="block">Returns the locale used by this factory for producing error messages. |
| This locale does not change the way data are read from the EPSG database.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../util/Localized.html#getLocale()">getLocale</a></code> in interface <code><a href="../../../util/Localized.html" title="interface in org.apache.sis.util">Localized</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the locale for error messages.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="install(java.sql.Connection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>install</h4> |
| <pre class="methodSignature">public void install​(<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink">Connection</a> connection) |
| throws <a href="../UnavailableFactoryException.html" title="class in org.apache.sis.referencing.factory">UnavailableFactoryException</a></pre> |
| <div class="block">Creates the EPSG schema in the database and populates the tables with geodetic definitions. |
| This method is invoked automatically when <a href="#newDataAccess()"><code>newDataAccess()</code></a> detects that the EPSG dataset is not installed. |
| Users can also invoke this method explicitly if they wish to force the dataset installation. |
| |
| <p>This method uses the following properties from the map specified at |
| <a href="#%3Cinit%3E(java.util.Map)">construction time</a>:</p> |
| |
| <ul class="verbose"> |
| <li><b><code>catalog</code>:</b><br> |
| a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a> giving the name of the database catalog where to create the EPSG schema. |
| If non-null, that catalog shall exist prior this method call (this method does not create any catalog). |
| If no catalog is specified or if the catalog is an empty string, |
| then the EPSG schema will be created without catalog. |
| If the database does not <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html?is-external=true#supportsCatalogsInTableDefinitions()" title="class or interface in java.sql" class="externalLink">support |
| catalogs in table definitions</a> or in <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html?is-external=true#supportsCatalogsInDataManipulation()" title="class or interface in java.sql" class="externalLink">data manipulation</a>, then this property is ignored.</li> |
| |
| <li><b><code>schema</code>:</b><br> |
| a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a> giving the name of the database schema where to create the EPSG tables. |
| That schema shall <strong>not</strong> exist prior this method call; |
| the schema will be created by this <code>install(…)</code> method. |
| If the schema is an empty string, then the tables will be created without schema. |
| If no schema is specified, then the default schema is <code>"EPSG"</code>. |
| If the database does not <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html?is-external=true#supportsSchemasInTableDefinitions()" title="class or interface in java.sql" class="externalLink">support |
| schemas in table definitions</a> or in <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html?is-external=true#supportsSchemasInDataManipulation()" title="class or interface in java.sql" class="externalLink">data manipulation</a>, then this property is ignored.</li> |
| |
| <li><b><code>scriptProvider</code>:</b><br> |
| an <a href="InstallationScriptProvider.html" title="class in org.apache.sis.referencing.factory.sql"><code>InstallationScriptProvider</code></a> giving the SQL scripts to execute for creating the EPSG database. |
| If no provider is specified, then this method will search on the classpath (with <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html?is-external=true" title="class or interface in java.util" class="externalLink"><code>ServiceLoader</code></a>) |
| for user-provided implementations of <code>InstallationScriptProvider</code>. |
| If no user-specified provider is found, then this method will search for |
| <code>"EPSG_*Tables.sql"</code>, <code>"EPSG_*Data.sql"</code> and <code>"EPSG_*FKeys.sql"</code> files in the |
| <code>$SIS_DATA/Databases/ExternalSources</code> directory where <code>*</code> stands for any characters |
| provided that there is no ambiguity.</li> |
| </ul> |
| |
| <p><b>Legal constraint:</b> |
| the EPSG dataset can not be distributed with Apache SIS at this time for licensing reasons. |
| Users need to either install the dataset manually (for example with the help of this method), |
| or add on the classpath to a separated bundle like <code>org.apache.sis:non-free:sis-epsg.jar</code>. |
| See <a href="http://sis.apache.org/epsg.html">How to use EPSG geodetic dataset</a> for more information.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - connection to the database where to create the EPSG schema.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../UnavailableFactoryException.html" title="class in org.apache.sis.referencing.factory">UnavailableFactoryException</a></code> - if installation failed. The exception will have a |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/io/FileNotFoundException.html?is-external=true" title="class or interface in java.io" class="externalLink"><code>FileNotFoundException</code></a> cause if a SQL script has not been found |
| (typically because a required resource is not on the classpath), an |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io" class="externalLink"><code>IOException</code></a> if an I/O error occurred while reading a SQL script, or a |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql" class="externalLink"><code>SQLException</code></a> if an error occurred while writing to the database.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="InstallationScriptProvider.html" title="class in org.apache.sis.referencing.factory.sql"><code>InstallationScriptProvider</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newDataAccess()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newDataAccess</h4> |
| <pre class="methodSignature">protected <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a> newDataAccess() |
| throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/FactoryException.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">FactoryException</a></pre> |
| <div class="block">Creates the factory which will perform the actual geodetic object creation work. |
| This method is invoked automatically when a new worker is required, either because the previous |
| one has been disposed after its timeout or because a new one is required for concurrency. |
| |
| <p>The default implementation performs the following steps:</p> |
| <ol> |
| <li>Gets a new connection from the <a href="#dataSource"><code>dataSource</code></a>.</li> |
| <li>If this method is invoked for the first time, verifies if the EPSG tables exists. |
| If the tables are not found, invokes <a href="#install(java.sql.Connection)"><code>install(Connection)</code></a>.</li> |
| <li>Delegates to <a href="#newDataAccess(java.sql.Connection,org.apache.sis.referencing.factory.sql.SQLTranslator)"><code>newDataAccess(Connection, SQLTranslator)</code></a>, which provides an easier |
| overriding point for subclasses wanting to return a custom <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql"><code>EPSGDataAccess</code></a> instance.</li> |
| </ol></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../ConcurrentAuthorityFactory.html#newDataAccess()">newDataAccess</a></code> in class <code><a href="../ConcurrentAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">ConcurrentAuthorityFactory</a><<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a>></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Data Access Object (DAO) to use in <code>createFoo(String)</code> methods.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/FactoryException.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">FactoryException</a></code> - if the constructor failed to connect to the EPSG database. |
| This exception usually has a <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql" class="externalLink"><code>SQLException</code></a> as its cause.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newDataAccess(java.sql.Connection,org.apache.sis.referencing.factory.sql.SQLTranslator)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newDataAccess</h4> |
| <pre class="methodSignature">protected <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a> newDataAccess​(<a href="https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql" class="externalLink">Connection</a> connection, |
| <a href="SQLTranslator.html" title="class in org.apache.sis.referencing.factory.sql">SQLTranslator</a> translator) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql" class="externalLink">SQLException</a></pre> |
| <div class="block">Creates the factory which will perform the actual geodetic object creation from a given connection. |
| This method is a convenience hook easier to override than <a href="#newDataAccess()"><code>newDataAccess()</code></a> for subclasses |
| wanting to return instances of their own <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql"><code>EPSGDataAccess</code></a> subclass. |
| The default implementation is simply: |
| |
| <blockquote><pre><font color="green">return</font> <font color="green">new</font> <b>EPSGDataAccess</b>(<font color="green">this</font>, connection, translator);</pre></blockquote> |
| |
| Subclasses can override this method with a similar code but with <code>new EPSGDataAccess(…)</code> replaced |
| by <code>new MyDataAccessSubclass(…)</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - a connection to the EPSG database.</dd> |
| <dd><code>translator</code> - the translator from the SQL statements using MS-Access dialect to SQL statements |
| using the dialect of the actual database.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Data Access Object (DAO) to use in <code>createFoo(String)</code> methods.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql" class="externalLink">SQLException</a></code> - if a problem with the database has been detected.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="EPSGDataAccess.html#%3Cinit%3E(org.apache.sis.referencing.factory.sql.EPSGFactory,java.sql.Connection,org.apache.sis.referencing.factory.sql.SQLTranslator)"><code>EPSGDataAccess(EPSGFactory, Connection, SQLTranslator)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="canClose(org.apache.sis.referencing.factory.sql.EPSGDataAccess)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>canClose</h4> |
| <pre class="methodSignature">protected boolean canClose​(<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a> factory)</pre> |
| <div class="block">Returns <code>true</code> if the given Data Access Object (DAO) can be closed. This method is invoked automatically |
| after the <a href="../ConcurrentAuthorityFactory.html#getTimeout(java.util.concurrent.TimeUnit)">timeout</a> if the given DAO has been idle during all that time. The default |
| implementation always returns <code>false</code> if a set returned by <a href="EPSGDataAccess.html#getAuthorityCodes(java.lang.Class)"><code>EPSGDataAccess.getAuthorityCodes(Class)</code></a> |
| is still in use.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../ConcurrentAuthorityFactory.html#canClose(DAO)">canClose</a></code> in class <code><a href="../ConcurrentAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">ConcurrentAuthorityFactory</a><<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>factory</code> - the Data Access Object which is about to be closed.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the given Data Access Object can be closed.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../ConcurrentAuthorityFactory.html#close()"><code>ConcurrentAuthorityFactory.close()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isCacheable(java.lang.String,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>isCacheable</h4> |
| <pre class="methodSignature">protected boolean isCacheable​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> code, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> object)</pre> |
| <div class="block">Returns whether the given object can be cached. |
| This method is invoked after <a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql"><code>EPSGDataAccess</code></a> created a new object not previously in the cache.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../ConcurrentAuthorityFactory.html#isCacheable(java.lang.String,java.lang.Object)">isCacheable</a></code> in class <code><a href="../ConcurrentAuthorityFactory.html" title="class in org.apache.sis.referencing.factory">ConcurrentAuthorityFactory</a><<a href="EPSGDataAccess.html" title="class in org.apache.sis.referencing.factory.sql">EPSGDataAccess</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>code</code> - the authority code specified by the caller for creating an object.</dd> |
| <dd><code>object</code> - the object created for the given authority code.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether the given object should be cached.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>0.8</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../ConcurrentAuthorityFactory.html#printCacheContent(java.io.PrintWriter)"><code>ConcurrentAuthorityFactory.printCacheContent(PrintWriter)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/EPSGFactory.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2010–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |