Package com.luciad.format.database
Interface ILcdDatabaseModelDescriptor
- All Superinterfaces:
Cloneable
,ILcdDataModelDescriptor
,ILcdFeaturedDescriptor
,ILcdModelDescriptor
,Serializable
- All Known Implementing Classes:
TLcdDatabaseModelDescriptor
,TLcdDB2SpatialModelDescriptor
,TLcdInformixGeodeticModelDescriptor
,TLcdInformixSpatialModelDescriptor
,TLcdLVDBModelDescriptor
,TLcdMSSQLModelDescriptor
,TLcdOracleGeoRasterModelDescriptor
,TLcdOracleSpatialModelDescriptor
,TLcdPostGISModelDescriptor
,TLcdSpatiaLiteModelDescriptor
public interface ILcdDatabaseModelDescriptor
extends ILcdModelDescriptor, ILcdDataModelDescriptor, ILcdFeaturedDescriptor, Cloneable
This
ILcdModelDescriptor
specifically describes database
models. It contains the additional properties that are typically present
in spatial databases.-
Method Summary
Modifier and TypeMethodDescriptionclone()
void
close()
Closes theConnection
of this descriptor, if it was opened.returns the bounds of the geometry.Concatenates the main column name and the feature column names into a singleString
of comma-separated column names.Concatenates the main column name and type, and the feature column names and types into a singleString
of comma-separated column names and types.Returns the ellipsoid of the database object reference.getFeatureName
(int aIndex) Returns the name of a particular feature.getFeatureType
(int aIndex) Returns the type of a given feature.Returns the name of the table column containing the geometry.Returns the type of the geometry.int
Returns the primary feature index.Returns the string representing the selection filter.Returns the names of the additional tables used in the select queryint
getSRID()
Returns the Spatial Reference ID number.Returns the name of the database table.void
setBounds
(ILcdBounds aBounds) Sets the bounds of the geometry.void
setEllipsoid
(ILcdEllipsoid aEllipsoid) Sets the ellipsoid of the database object's reference.void
setFeatureNames
(String[] aFeatureNames) Sets the names of the features to be selected.void
setFeatureTypes
(String[] aFeatureTypes) Sets the types of the features.void
setGeometryColumnName
(String aName) Sets the name of the column containing the database geometry object.void
setGeometryType
(String aGeometryType) Sets the type of the geometry.void
setPrimaryFeatureIndex
(int aPrimaryFeatureIndex) Sets the primary feature indexvoid
setSelectionFilter
(String aSelectionFilter) A selection filter string , normally appended to the WHERE part of the select query.void
setSelectionTables
(String aSelectionTables) Sets the names of additional tables used in the select query.void
setSRID
(int aSRID) Sets the Spatial Reference ID number.void
setTableName
(String aName) Sets the name of the database table.Methods inherited from interface com.luciad.model.ILcdDataModelDescriptor
getDataModel, getModelElementTypes, getModelTypes
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureClass, getFeatureCount, getFeatureIndex, getFeatureUnitOfMeasure
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Method Details
-
setTableName
Sets the name of the database table.- Parameters:
aName
- the name of the database table.
-
getTableName
String getTableName()Returns the name of the database table.- Returns:
- a table name.
-
setSelectionTables
Sets the names of additional tables used in the select query.- Parameters:
aSelectionTables
- a list of additional tables separated by columns.
-
getSelectionTables
String getSelectionTables()Returns the names of the additional tables used in the select query- Returns:
- a list of additional tables, separated by columns.
-
setSelectionFilter
A selection filter string , normally appended to the WHERE part of the select query.- Parameters:
aSelectionFilter
- a selection filter string.
-
getSelectionFilter
String getSelectionFilter()Returns the string representing the selection filter.- Returns:
- the selection filter.
-
setGeometryColumnName
Sets the name of the column containing the database geometry object.- Parameters:
aName
- the name of the table column containing the geometry.
-
getGeometryColumnName
String getGeometryColumnName()Returns the name of the table column containing the geometry.- Returns:
- the name of the column containing the geometry.
-
setFeatureNames
Sets the names of the features to be selected.- Parameters:
aFeatureNames
- a list of feature names.
-
getFeatureName
Returns the name of a particular feature.- Specified by:
getFeatureName
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- the feature index.- Returns:
- the name corresponding to the given index.
-
setPrimaryFeatureIndex
void setPrimaryFeatureIndex(int aPrimaryFeatureIndex) Sets the primary feature index- Parameters:
aPrimaryFeatureIndex
- the primary feature index
-
getPrimaryFeatureIndex
int getPrimaryFeatureIndex()Returns the primary feature index.- Returns:
- the primary feature index.
-
setSRID
void setSRID(int aSRID) Sets the Spatial Reference ID number.- Parameters:
aSRID
- a spatial reference ID.
-
getSRID
int getSRID()Returns the Spatial Reference ID number.- Returns:
- the Spatial reference ID number.
-
setEllipsoid
Sets the ellipsoid of the database object's reference.- Parameters:
aEllipsoid
- the ellipsoid of the database object's reference.
-
getEllipsoid
ILcdEllipsoid getEllipsoid()Returns the ellipsoid of the database object reference.- Returns:
- an ellipsoid
-
setBounds
Sets the bounds of the geometry.- Parameters:
aBounds
- the bounds of the geometry.
-
getBounds
ILcdBounds getBounds()returns the bounds of the geometry.- Returns:
- the bounds of the geometry.
-
setGeometryType
Sets the type of the geometry.- Parameters:
aGeometryType
- type of the geometry.
-
getGeometryType
String getGeometryType()Returns the type of the geometry.- Returns:
- type of the geometry.
-
setFeatureTypes
Sets the types of the features.- Parameters:
aFeatureTypes
- the types of the features.
-
getFeatureType
Returns the type of a given feature.- Parameters:
aIndex
- the feature index.- Returns:
- the feature type.
-
getColumnNames
String getColumnNames()Concatenates the main column name and the feature column names into a singleString
of comma-separated column names.- Returns:
- a String containing the comma-separated column names.
-
getColumnNamesAndTypes
String getColumnNamesAndTypes()Concatenates the main column name and type, and the feature column names and types into a singleString
of comma-separated column names and types.- Returns:
- a String containing the main column name and type, and the feature column names and types, separated by commas.
-
close
void close()Closes theConnection
of this descriptor, if it was opened. -
clone
Object clone()
-