public class TLcdLVDBModelDescriptor extends TLcdModelDescriptor implements ILcdDatabaseModelDescriptor
TLcdLVDBModelDecoder
,
Serialized FormModifier and Type | Method and Description |
---|---|
Object |
clone() |
void |
close()
Closes the
Connection of this descriptor, if it was opened. |
ILcdBounds |
getBounds()
returns the bounds of the geometry.
|
String |
getColumnNames()
Concatenates the main column name and the feature column names into
a single
String of comma-separated column names. |
String |
getColumnNamesAndTypes()
Concatenates the main column name and type, and the feature column names
and types into a single
String of comma-separated column names
and types. |
TLcdDataModel |
getDataModel()
Returns the data model that describes the elements of the model.
|
ILcdEllipsoid |
getEllipsoid()
Returns the ellipsoid of the database object reference.
|
Class |
getFeatureClass(int i)
Returns the
Class of the feature at the given index. |
int |
getFeatureCount()
Returns the number of features.
|
int |
getFeatureIndex(String s)
Returns the index of the given feature name if it exists, -1 otherwise.
|
String |
getFeatureName(int i)
Returns the name of a particular feature.
|
String |
getFeatureType(int i)
Returns the type of a given feature.
|
String |
getGeometryColumnName()
Returns the name of the table column containing the geometry.
|
String |
getGeometryType()
Returns the type of the geometry.
|
Set<TLcdDataType> |
getModelElementTypes()
Returns a set containing all the data types of which instances can be elements in the model
associated with this descriptor.
|
Set<TLcdDataType> |
getModelTypes()
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 |
getPrimaryFeatureIndex()
Returns the primary feature index.
|
String |
getSelectionFilter()
Returns the string representing the selection filter.
|
String |
getSelectionTables()
Returns the names of the additional tables used in the select query
|
int |
getSRID()
Returns the Spatial Reference ID number.
|
String |
getTableName()
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 index
|
void |
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.
|
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getSourceName, getTypeName
getFeatureUnitOfMeasure
public void setTableName(String aTableName)
ILcdDatabaseModelDescriptor
setTableName
in interface ILcdDatabaseModelDescriptor
aTableName
- the name of the database table.public String getTableName()
ILcdDatabaseModelDescriptor
getTableName
in interface ILcdDatabaseModelDescriptor
public void setSelectionTables(String aSelectionTables)
ILcdDatabaseModelDescriptor
setSelectionTables
in interface ILcdDatabaseModelDescriptor
aSelectionTables
- a list of additional tables separated by columns.public String getSelectionTables()
ILcdDatabaseModelDescriptor
getSelectionTables
in interface ILcdDatabaseModelDescriptor
public void setSelectionFilter(String aSelectionFilter)
ILcdDatabaseModelDescriptor
setSelectionFilter
in interface ILcdDatabaseModelDescriptor
aSelectionFilter
- a selection filter string.public String getSelectionFilter()
ILcdDatabaseModelDescriptor
getSelectionFilter
in interface ILcdDatabaseModelDescriptor
public void setGeometryColumnName(String aGeometryColumnName)
ILcdDatabaseModelDescriptor
setGeometryColumnName
in interface ILcdDatabaseModelDescriptor
aGeometryColumnName
- the name of the table column containing the geometry.public String getGeometryColumnName()
ILcdDatabaseModelDescriptor
getGeometryColumnName
in interface ILcdDatabaseModelDescriptor
public void setFeatureNames(String[] aStrings)
ILcdDatabaseModelDescriptor
setFeatureNames
in interface ILcdDatabaseModelDescriptor
aStrings
- a list of feature names.public int getFeatureCount()
ILcdFeaturedDescriptor
getFeatureCount
in interface ILcdFeaturedDescriptor
public String getFeatureName(int i)
ILcdDatabaseModelDescriptor
getFeatureName
in interface ILcdDatabaseModelDescriptor
getFeatureName
in interface ILcdFeaturedDescriptor
i
- the feature index.public int getFeatureIndex(String s)
ILcdFeaturedDescriptor
getFeatureIndex
in interface ILcdFeaturedDescriptor
s
- a feature name.public Class getFeatureClass(int i)
ILcdFeaturedDescriptor
Class
of the feature at the given index.getFeatureClass
in interface ILcdFeaturedDescriptor
i
- a valid feature index.Class
of the feature at the given index.public void setPrimaryFeatureIndex(int i)
ILcdDatabaseModelDescriptor
setPrimaryFeatureIndex
in interface ILcdDatabaseModelDescriptor
i
- the primary feature indexpublic int getPrimaryFeatureIndex()
ILcdDatabaseModelDescriptor
getPrimaryFeatureIndex
in interface ILcdDatabaseModelDescriptor
public void setSRID(int aSRID)
ILcdDatabaseModelDescriptor
setSRID
in interface ILcdDatabaseModelDescriptor
aSRID
- a spatial reference ID.public int getSRID()
ILcdDatabaseModelDescriptor
getSRID
in interface ILcdDatabaseModelDescriptor
public void setEllipsoid(ILcdEllipsoid aEllipsoid)
ILcdDatabaseModelDescriptor
setEllipsoid
in interface ILcdDatabaseModelDescriptor
aEllipsoid
- the ellipsoid of the database object's reference.public ILcdEllipsoid getEllipsoid()
ILcdDatabaseModelDescriptor
getEllipsoid
in interface ILcdDatabaseModelDescriptor
public void setBounds(ILcdBounds aBounds)
ILcdDatabaseModelDescriptor
setBounds
in interface ILcdDatabaseModelDescriptor
aBounds
- the bounds of the geometry.public ILcdBounds getBounds()
ILcdDatabaseModelDescriptor
getBounds
in interface ILcdDatabaseModelDescriptor
public void setGeometryType(String aGeometryType)
ILcdDatabaseModelDescriptor
setGeometryType
in interface ILcdDatabaseModelDescriptor
aGeometryType
- type of the geometry.public String getGeometryType()
ILcdDatabaseModelDescriptor
getGeometryType
in interface ILcdDatabaseModelDescriptor
public void setFeatureTypes(String[] aStrings)
ILcdDatabaseModelDescriptor
setFeatureTypes
in interface ILcdDatabaseModelDescriptor
aStrings
- the types of the features.public String getFeatureType(int i)
ILcdDatabaseModelDescriptor
getFeatureType
in interface ILcdDatabaseModelDescriptor
i
- the feature index.public String getColumnNames()
ILcdDatabaseModelDescriptor
String
of comma-separated column names.getColumnNames
in interface ILcdDatabaseModelDescriptor
public String getColumnNamesAndTypes()
ILcdDatabaseModelDescriptor
String
of comma-separated column names
and types.getColumnNamesAndTypes
in interface ILcdDatabaseModelDescriptor
public void close()
ILcdDatabaseModelDescriptor
Connection
of this descriptor, if it was opened.close
in interface ILcdDatabaseModelDescriptor
public Object clone()
clone
in interface ILcdDatabaseModelDescriptor
clone
in class Object
public TLcdDataModel getDataModel()
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)
).
getDataModel
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelElementTypes()
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() )
.
getModelElementTypes
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelTypes()
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.
getModelTypes
in interface ILcdDataModelDescriptor