Class TLcdLVDBModelDescriptor
- All Implemented Interfaces:
ILcdDatabaseModelDescriptor
,ILcdDataModelDescriptor
,ILcdModelDescriptor
,ILcdFeaturedDescriptor
,Serializable
,Cloneable
- Since:
- 2013.1
- See Also:
-
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 data model that describes the elements of the model.Returns the ellipsoid of the database object reference.getFeatureClass
(int i) Returns theClass
of the feature at the given index.int
Returns the number of features.int
Returns the index of the given feature name if it exists, -1 otherwise.getFeatureName
(int i) Returns the name of a particular feature.getFeatureType
(int i) Returns the type of a given feature.Returns the name of the table column containing the geometry.Returns the type of the geometry.Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor.Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor.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[] aStrings) Sets the names of the features to be selected.void
setFeatureTypes
(String[] aStrings) Sets the types of the features.void
setGeometryColumnName
(String aGeometryColumnName) Sets the name of the column containing the database geometry object.void
setGeometryType
(String aGeometryType) Sets the type of the geometry.void
setPrimaryFeatureIndex
(int i) 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 aTableName) Sets the name of the database table.Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasure
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Method Details
-
setTableName
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the name of the database table.- Specified by:
setTableName
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aTableName
- the name of the database table.
-
getTableName
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the name of the database table.- Specified by:
getTableName
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a table name.
-
setSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the names of additional tables used in the select query.- Specified by:
setSelectionTables
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aSelectionTables
- a list of additional tables separated by columns.
-
getSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the names of the additional tables used in the select query- Specified by:
getSelectionTables
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a list of additional tables, separated by columns.
-
setSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptor
A selection filter string , normally appended to the WHERE part of the select query.- Specified by:
setSelectionFilter
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aSelectionFilter
- a selection filter string.
-
getSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the string representing the selection filter.- Specified by:
getSelectionFilter
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the selection filter.
-
setGeometryColumnName
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the name of the column containing the database geometry object.- Specified by:
setGeometryColumnName
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aGeometryColumnName
- the name of the table column containing the geometry.
-
getGeometryColumnName
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the name of the table column containing the geometry.- Specified by:
getGeometryColumnName
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the name of the column containing the geometry.
-
setFeatureNames
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the names of the features to be selected.- Specified by:
setFeatureNames
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aStrings
- a list of feature names.
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedDescriptor
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeaturedDescriptor
- Returns:
- the number of features.
-
getFeatureName
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the name of a particular feature.- Specified by:
getFeatureName
in interfaceILcdDatabaseModelDescriptor
- Specified by:
getFeatureName
in interfaceILcdFeaturedDescriptor
- Parameters:
i
- the feature index.- Returns:
- the name corresponding to the given index.
-
getFeatureIndex
Description copied from interface:ILcdFeaturedDescriptor
Returns the index of the given feature name if it exists, -1 otherwise.- Specified by:
getFeatureIndex
in interfaceILcdFeaturedDescriptor
- Parameters:
s
- a feature name.- Returns:
- the index of the given feature name if it exists, -1 otherwise.
-
getFeatureClass
Description copied from interface:ILcdFeaturedDescriptor
Returns theClass
of the feature at the given index.- Specified by:
getFeatureClass
in interfaceILcdFeaturedDescriptor
- Parameters:
i
- a valid feature index.- Returns:
- the
Class
of the feature at the given index.
-
setPrimaryFeatureIndex
public void setPrimaryFeatureIndex(int i) Description copied from interface:ILcdDatabaseModelDescriptor
Sets the primary feature index- Specified by:
setPrimaryFeatureIndex
in interfaceILcdDatabaseModelDescriptor
- Parameters:
i
- the primary feature index
-
getPrimaryFeatureIndex
public int getPrimaryFeatureIndex()Description copied from interface:ILcdDatabaseModelDescriptor
Returns the primary feature index.- Specified by:
getPrimaryFeatureIndex
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the primary feature index.
-
setSRID
public void setSRID(int aSRID) Description copied from interface:ILcdDatabaseModelDescriptor
Sets the Spatial Reference ID number.- Specified by:
setSRID
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aSRID
- a spatial reference ID.
-
getSRID
public int getSRID()Description copied from interface:ILcdDatabaseModelDescriptor
Returns the Spatial Reference ID number.- Specified by:
getSRID
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the Spatial reference ID number.
-
setEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the ellipsoid of the database object's reference.- Specified by:
setEllipsoid
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aEllipsoid
- the ellipsoid of the database object's reference.
-
getEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the ellipsoid of the database object reference.- Specified by:
getEllipsoid
in interfaceILcdDatabaseModelDescriptor
- Returns:
- an ellipsoid
-
setBounds
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the bounds of the geometry.- Specified by:
setBounds
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aBounds
- the bounds of the geometry.
-
getBounds
Description copied from interface:ILcdDatabaseModelDescriptor
returns the bounds of the geometry.- Specified by:
getBounds
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the bounds of the geometry.
-
setGeometryType
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the type of the geometry.- Specified by:
setGeometryType
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aGeometryType
- type of the geometry.
-
getGeometryType
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the type of the geometry.- Specified by:
getGeometryType
in interfaceILcdDatabaseModelDescriptor
- Returns:
- type of the geometry.
-
setFeatureTypes
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the types of the features.- Specified by:
setFeatureTypes
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aStrings
- the types of the features.
-
getFeatureType
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the type of a given feature.- Specified by:
getFeatureType
in interfaceILcdDatabaseModelDescriptor
- Parameters:
i
- the feature index.- Returns:
- the feature type.
-
getColumnNames
Description copied from interface:ILcdDatabaseModelDescriptor
Concatenates the main column name and the feature column names into a singleString
of comma-separated column names.- Specified by:
getColumnNames
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a String containing the comma-separated column names.
-
getColumnNamesAndTypes
Description copied from interface:ILcdDatabaseModelDescriptor
Concatenates the main column name and type, and the feature column names and types into a singleString
of comma-separated column names and types.- Specified by:
getColumnNamesAndTypes
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a String containing the main column name and type, and the feature column names and types, separated by commas.
-
close
public void close()Description copied from interface:ILcdDatabaseModelDescriptor
Closes theConnection
of this descriptor, if it was opened.- Specified by:
close
in interfaceILcdDatabaseModelDescriptor
-
clone
- Specified by:
clone
in interfaceILcdDatabaseModelDescriptor
- Overrides:
clone
in classObject
-
getDataModel
Description copied from interface:ILcdDataModelDescriptor
Returns the data model that describes the elements of the model. Note that not necessarily all data in the model will be of a type of this data model. Very likely, types from the dependencies of the returned data model are used as well.
In case the model accepts objects from multiple data models, an anonymous data model that depends on all these data models should be returned (see
TLcdDataModelBuilder.createAnonymousDataModel(java.util.Collection)
).- Specified by:
getDataModel
in interfaceILcdDataModelDescriptor
- Returns:
- the data model that describes the elements of the model
-
getModelElementTypes
Description copied from interface:ILcdDataModelDescriptor
Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually elements in the model; but they are not required to do so.
Implementations should return
null
in case they don't know which element types are present in the model.For each element of the model associated with this model descriptor, the following holds true :
getModelElementTypes().contains( element.getDataType() )
.- Specified by:
getModelElementTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be elements in the model associated with this descriptor
-
getModelTypes
Description copied from interface:ILcdDataModelDescriptor
Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.
A simple and correct implementation would be to return
getDataModel().getTypes()
. Implementations are encouraged to return a subset of this set if they can do so without spending an unreasonable amount of resources.Implementations should return
null
in case they don't know which types are present in the model.- Specified by:
getModelTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-