| java.lang.Object org.geotools.referencing.factory.epsg.TableInfo
TableInfo | final class TableInfo (Code) | | Information about a specific table. This class also provides some utility methods
for the creation of SQL queries. The MS-Access dialect of SQL is assumed (it will
be translated into ANSI SQL later by
DirectEpsgFactory.adaptSQL if needed).
since: 2.2 version: $Id: TableInfo.java 26090 2007-06-29 08:09:27Z desruisseaux $ author: Martin Desruisseaux |
codeColumn | final public String codeColumn(Code) | | Column name for the code (usually with the
"_CODE" suffix).
|
nameColumn | final public String nameColumn(Code) | | Column name for the name (usually with the
"_NAME" suffix), or
null .
|
table | final public String table(Code) | | The table name for SQL queries. May contains a
"JOIN" clause.
|
type | final public Class type(Code) | | The class of object to be created.
|
typeColumn | final public String typeColumn(Code) | | Column type for the type (usually with the
"_TYPE" suffix), or
null .
|
isTypeOf | public boolean isTypeOf(Class kind)(Code) | | Checks
Class.isAssignableFrom both ways. It may seems strange but try
to catch the following use cases:
table.type.isAssignableFrom(kind)
is for the case where a table is for
CoordinateReferenceSystem while the user
type is some subtype like
GeographicCRS . The
GeographicCRS need to be
queried into the
CoordinateReferenceSystem table. An additional filter will be
applied inside the
AuthorityCodes class implementation.
kind.isAssignableFrom(table.type)
is for the case where the user type is
IdentifiedObject or
Object ,
in which case we basically want to iterate through every tables.
|
|
|