Class TLcdLVDBModelDescriptor
- All Implemented Interfaces:
ILcdDatabaseModelDescriptor,ILcdDataModelDescriptor,ILcdModelDescriptor,ILcdFeaturedDescriptor,Serializable,Cloneable
- Since:
- 2013.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclone()voidclose()Closes theConnectionof this descriptor, if it was opened.returns the bounds of the geometry.Concatenates the main column name and the feature column names into a singleStringof comma-separated column names.Concatenates the main column name and type, and the feature column names and types into a singleStringof 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 theClassof the feature at the given index.intReturns the number of features.intReturns 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.intReturns the primary feature index.Returns the string representing the selection filter.Returns the names of the additional tables used in the select queryintgetSRID()Returns the Spatial Reference ID number.Returns the name of the database table.voidsetBounds(ILcdBounds aBounds) Sets the bounds of the geometry.voidsetEllipsoid(ILcdEllipsoid aEllipsoid) Sets the ellipsoid of the database object's reference.voidsetFeatureNames(String[] aStrings) Sets the names of the features to be selected.voidsetFeatureTypes(String[] aStrings) Sets the types of the features.voidsetGeometryColumnName(String aGeometryColumnName) Sets the name of the column containing the database geometry object.voidsetGeometryType(String aGeometryType) Sets the type of the geometry.voidsetPrimaryFeatureIndex(int i) Sets the primary feature indexvoidsetSelectionFilter(String aSelectionFilter) A selection filter string , normally appended to the WHERE part of the select query.voidsetSelectionTables(String aSelectionTables) Sets the names of additional tables used in the select query.voidsetSRID(int aSRID) Sets the Spatial Reference ID number.voidsetTableName(String aTableName) Sets the name of the database table.Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasureMethods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Method Details
-
setTableName
Description copied from interface:ILcdDatabaseModelDescriptorSets the name of the database table.- Specified by:
setTableNamein interfaceILcdDatabaseModelDescriptor- Parameters:
aTableName- the name of the database table.
-
getTableName
Description copied from interface:ILcdDatabaseModelDescriptorReturns the name of the database table.- Specified by:
getTableNamein interfaceILcdDatabaseModelDescriptor- Returns:
- a table name.
-
setSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptorSets the names of additional tables used in the select query.- Specified by:
setSelectionTablesin interfaceILcdDatabaseModelDescriptor- Parameters:
aSelectionTables- a list of additional tables separated by columns.
-
getSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptorReturns the names of the additional tables used in the select query- Specified by:
getSelectionTablesin interfaceILcdDatabaseModelDescriptor- Returns:
- a list of additional tables, separated by columns.
-
setSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptorA selection filter string , normally appended to the WHERE part of the select query.- Specified by:
setSelectionFilterin interfaceILcdDatabaseModelDescriptor- Parameters:
aSelectionFilter- a selection filter string.
-
getSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptorReturns the string representing the selection filter.- Specified by:
getSelectionFilterin interfaceILcdDatabaseModelDescriptor- Returns:
- the selection filter.
-
setGeometryColumnName
Description copied from interface:ILcdDatabaseModelDescriptorSets the name of the column containing the database geometry object.- Specified by:
setGeometryColumnNamein interfaceILcdDatabaseModelDescriptor- Parameters:
aGeometryColumnName- the name of the table column containing the geometry.
-
getGeometryColumnName
Description copied from interface:ILcdDatabaseModelDescriptorReturns the name of the table column containing the geometry.- Specified by:
getGeometryColumnNamein interfaceILcdDatabaseModelDescriptor- Returns:
- the name of the column containing the geometry.
-
setFeatureNames
Description copied from interface:ILcdDatabaseModelDescriptorSets the names of the features to be selected.- Specified by:
setFeatureNamesin interfaceILcdDatabaseModelDescriptor- Parameters:
aStrings- a list of feature names.
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedDescriptorReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeaturedDescriptor- Returns:
- the number of features.
-
getFeatureName
Description copied from interface:ILcdDatabaseModelDescriptorReturns the name of a particular feature.- Specified by:
getFeatureNamein interfaceILcdDatabaseModelDescriptor- Specified by:
getFeatureNamein interfaceILcdFeaturedDescriptor- Parameters:
i- the feature index.- Returns:
- the name corresponding to the given index.
-
getFeatureIndex
Description copied from interface:ILcdFeaturedDescriptorReturns the index of the given feature name if it exists, -1 otherwise.- Specified by:
getFeatureIndexin interfaceILcdFeaturedDescriptor- Parameters:
s- a feature name.- Returns:
- the index of the given feature name if it exists, -1 otherwise.
-
getFeatureClass
Description copied from interface:ILcdFeaturedDescriptorReturns theClassof the feature at the given index.- Specified by:
getFeatureClassin interfaceILcdFeaturedDescriptor- Parameters:
i- a valid feature index.- Returns:
- the
Classof the feature at the given index.
-
setPrimaryFeatureIndex
public void setPrimaryFeatureIndex(int i) Description copied from interface:ILcdDatabaseModelDescriptorSets the primary feature index- Specified by:
setPrimaryFeatureIndexin interfaceILcdDatabaseModelDescriptor- Parameters:
i- the primary feature index
-
getPrimaryFeatureIndex
public int getPrimaryFeatureIndex()Description copied from interface:ILcdDatabaseModelDescriptorReturns the primary feature index.- Specified by:
getPrimaryFeatureIndexin interfaceILcdDatabaseModelDescriptor- Returns:
- the primary feature index.
-
setSRID
public void setSRID(int aSRID) Description copied from interface:ILcdDatabaseModelDescriptorSets the Spatial Reference ID number.- Specified by:
setSRIDin interfaceILcdDatabaseModelDescriptor- Parameters:
aSRID- a spatial reference ID.
-
getSRID
public int getSRID()Description copied from interface:ILcdDatabaseModelDescriptorReturns the Spatial Reference ID number.- Specified by:
getSRIDin interfaceILcdDatabaseModelDescriptor- Returns:
- the Spatial reference ID number.
-
setEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptorSets the ellipsoid of the database object's reference.- Specified by:
setEllipsoidin interfaceILcdDatabaseModelDescriptor- Parameters:
aEllipsoid- the ellipsoid of the database object's reference.
-
getEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptorReturns the ellipsoid of the database object reference.- Specified by:
getEllipsoidin interfaceILcdDatabaseModelDescriptor- Returns:
- an ellipsoid
-
setBounds
Description copied from interface:ILcdDatabaseModelDescriptorSets the bounds of the geometry.- Specified by:
setBoundsin interfaceILcdDatabaseModelDescriptor- Parameters:
aBounds- the bounds of the geometry.
-
getBounds
Description copied from interface:ILcdDatabaseModelDescriptorreturns the bounds of the geometry.- Specified by:
getBoundsin interfaceILcdDatabaseModelDescriptor- Returns:
- the bounds of the geometry.
-
setGeometryType
Description copied from interface:ILcdDatabaseModelDescriptorSets the type of the geometry.- Specified by:
setGeometryTypein interfaceILcdDatabaseModelDescriptor- Parameters:
aGeometryType- type of the geometry.
-
getGeometryType
Description copied from interface:ILcdDatabaseModelDescriptorReturns the type of the geometry.- Specified by:
getGeometryTypein interfaceILcdDatabaseModelDescriptor- Returns:
- type of the geometry.
-
setFeatureTypes
Description copied from interface:ILcdDatabaseModelDescriptorSets the types of the features.- Specified by:
setFeatureTypesin interfaceILcdDatabaseModelDescriptor- Parameters:
aStrings- the types of the features.
-
getFeatureType
Description copied from interface:ILcdDatabaseModelDescriptorReturns the type of a given feature.- Specified by:
getFeatureTypein interfaceILcdDatabaseModelDescriptor- Parameters:
i- the feature index.- Returns:
- the feature type.
-
getColumnNames
Description copied from interface:ILcdDatabaseModelDescriptorConcatenates the main column name and the feature column names into a singleStringof comma-separated column names.- Specified by:
getColumnNamesin interfaceILcdDatabaseModelDescriptor- Returns:
- a String containing the comma-separated column names.
-
getColumnNamesAndTypes
Description copied from interface:ILcdDatabaseModelDescriptorConcatenates the main column name and type, and the feature column names and types into a singleStringof comma-separated column names and types.- Specified by:
getColumnNamesAndTypesin 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:ILcdDatabaseModelDescriptorCloses theConnectionof this descriptor, if it was opened.- Specified by:
closein interfaceILcdDatabaseModelDescriptor
-
clone
- Specified by:
clonein interfaceILcdDatabaseModelDescriptor- Overrides:
clonein classObject
-
getDataModel
Description copied from interface:ILcdDataModelDescriptorReturns 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:
getDataModelin interfaceILcdDataModelDescriptor- Returns:
- the data model that describes the elements of the model
-
getModelElementTypes
Description copied from interface:ILcdDataModelDescriptorReturns 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
nullin 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:
getModelElementTypesin 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:ILcdDataModelDescriptorReturns 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
nullin case they don't know which types are present in the model.- Specified by:
getModelTypesin interfaceILcdDataModelDescriptor- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-