public class TLcdDB2SpatialModelDescriptor extends TLcdDatabaseModelDescriptor implements ILcdDatabaseModelDescriptor
ILcdDatabaseModelDescriptor
describes a layer from an
DB2 Spatial database.
For accessing an existing Spatial layer, the following information is required:
For creating a new Spatial layer, the following additional information is required:
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_NAME |
fConnection
fFeatureClasses, fFeatureNames
Constructor and Description |
---|
TLcdDB2SpatialModelDescriptor()
Constructs a new (invalid) DB2 Spatial layer descriptor with default
properties.
|
TLcdDB2SpatialModelDescriptor(String aDriver,
String aURL,
Properties aConnectionProperties,
String aTableName,
String aGeometryColumnName)
Constructs a new DB2 Spatial table descriptor that does not specify any feature columns.
|
TLcdDB2SpatialModelDescriptor(String aDriver,
String aURL,
Properties aConnectionProperties,
String aTableName,
String aGeometryColumnName,
String[] aFeatureNames,
int aPrimaryFeatureIndex)
Constructs a new DB2 Spatial table descriptor specifying the names of the columns to be used
as features.
|
TLcdDB2SpatialModelDescriptor(String aDriver,
String aURL,
Properties aConnectionProperties,
String aTableName,
String aGeometryColumnName,
String[] aFeatureNames,
int aPrimaryFeatureIndex,
boolean aPrimaryFeatureAutoGenerated)
Constructs a new DB2 Spatial table descriptor specifying the names of the columns to be used
as features.
|
Modifier and Type | Method and Description |
---|---|
String |
getWKTReference()
Deprecated.
|
boolean |
isGeodetic()
Deprecated.
|
void |
setEllipsoid(ILcdEllipsoid aEllipsoid)
Sets the ellipsoid of the database object's reference.
|
void |
setWKTReference(String aWKTReference)
Deprecated.
|
addAnnotation, clone, close, getAnnotation, getAnnotations, getBounds, getColumnNames, getColumnNames, getColumnNamesAndTypes, getColumnNamesAndTypes, getConnection, getConnectionProperties, getDataModel, getDriver, getEllipsoid, getFeatureDisplayName, getFeatureType, getGeometryColumnName, getGeometryQueryColumnName, getGeometryType, getModelElementType, getModelElementTypes, getModelTypes, getPrimaryFeatureIndex, getSelectionFilter, getSelectionTables, getSRID, getTableName, getURL, isAlwaysCloseConnection, isAnnotationPresent, isPrimaryFeatureAutoGenerated, removeAnnotation, setAlwaysCloseConnection, setBounds, setConnectionProperties, setDriver, setFeatureClasses, setFeatureDisplayNames, setFeatureNames, setFeatureTypes, setGeometryColumnName, setGeometryQueryColumnName, setGeometryType, setPrimaryFeatureAutoGenerated, setPrimaryFeatureIndex, setSelectionFilter, setSelectionTables, setSRID, setTableName, setTypeName, setURL
getFeatureClass, getFeatureCount, getFeaturedDescriptor, getFeatureIndex, getFeatureName
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, sourceNameToDisplayName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, close, getBounds, getColumnNames, getColumnNamesAndTypes, getEllipsoid, getFeatureName, getFeatureType, getGeometryColumnName, getGeometryType, getPrimaryFeatureIndex, getSelectionFilter, getSelectionTables, getSRID, getTableName, setBounds, setFeatureNames, setFeatureTypes, setGeometryColumnName, setGeometryType, setPrimaryFeatureIndex, setSelectionFilter, setSelectionTables, setSRID, setTableName
getDataModel, getModelElementTypes, getModelTypes
getDisplayName, getSourceName, getTypeName
getFeatureClass, getFeatureCount, getFeatureIndex, getFeatureUnitOfMeasure
public static final String TYPE_NAME
public TLcdDB2SpatialModelDescriptor()
public TLcdDB2SpatialModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aGeometryColumnName)
aDriver
- the JDBC driver name.aURL
- the JDBC connection URL.aConnectionProperties
- the connection properties, including 'user' and
'password'.aTableName
- the spatial layer name.aGeometryColumnName
- the name of the column containing spatial objects.public TLcdDB2SpatialModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aGeometryColumnName, String[] aFeatureNames, int aPrimaryFeatureIndex)
aDriver
- the JDBC driver name.aURL
- the JDBC connection URL.aConnectionProperties
- the connection properties, including 'user' and
'password'.aTableName
- the spatial layer name.aGeometryColumnName
- the name of the column containing spatial objects.aFeatureNames
- the column names of the features that should be
retrieved.aPrimaryFeatureIndex
- the index of the feature that can be used a a
primary key on the spatial table.public TLcdDB2SpatialModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aGeometryColumnName, String[] aFeatureNames, int aPrimaryFeatureIndex, boolean aPrimaryFeatureAutoGenerated)
aDriver
- the JDBC driver name.aURL
- the JDBC connection URL.aConnectionProperties
- the connection properties, including 'user' and
'password'.aTableName
- the spatial layer name.aGeometryColumnName
- the name of the column containing spatial objects.aFeatureNames
- the column names of the features that should be
retrieved.aPrimaryFeatureIndex
- the index of the feature that can be used a a
primary key on the spatial table.aPrimaryFeatureAutoGenerated
- specifies whether the primary key is
automatically generated by the database.public String getWKTReference()
Do not use this method - it is deprecated and will be removed in the future.
public void setWKTReference(String aWKTReference)
Do not use this method - it is deprecated and will be removed in the future.
aWKTReference
- the well-known-text.public boolean isGeodetic()
TLcdDB2SpatialModelDecoder
).
Do not use this method - it is deprecated and will be removed in the future.
public void setEllipsoid(ILcdEllipsoid aEllipsoid)
ILcdDatabaseModelDescriptor
setEllipsoid
in interface ILcdDatabaseModelDescriptor
setEllipsoid
in class TLcdDatabaseModelDescriptor
aEllipsoid
- the ellipsoid of the database object's reference.