public class DefaultCidsLayer extends Object implements CidsLayerInfo, Serializable, de.cismet.connectioncontext.ConnectionContextStore
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
catalogueNameMap |
protected Map<String,Integer> |
catalogueTypes |
protected MetaClass |
mc |
protected Map<String,Boolean> |
primitiveTypes |
protected Map<String,Integer> |
referencedClass |
protected Map<String,StationInfo> |
stationTypes |
| Constructor and Description |
|---|
DefaultCidsLayer(MetaClass mc)
Creates a new DefaultCidsLayer object.
|
DefaultCidsLayer(MetaClass mc,
Map<String,String> catalogueNameMap)
Creates a new DefaultCidsLayer object.
|
DefaultCidsLayer(MetaClass mc,
String additionalJoins)
Creates a new DefaultCidsLayer object.
|
DefaultCidsLayer(String domain,
MetaClass mc,
Map<String,String> catalogueNameMap,
String additionalJoins)
Creates a new DefaultCidsLayer object.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
addLeftJoin(StringBuilder joins,
String table,
String onClauseLeftSide,
String onClauseRightSide)
Adds a left join to the given joins StringBuilder.
|
protected MetaClass |
getBeanClass(HashMap<String,MetaClass> allClasses,
int classId)
DOCUMENT ME!
|
protected String |
getBeanClassName(HashMap<String,MetaClass> allClasses,
int classId)
DOCUMENT ME!
|
Integer |
getCatalogueClass(String column)
The class, the given column references to.
|
String[] |
getColumnNames()
The names of the columns.
|
String[] |
getColumnPropertyNames()
The field names of the columns in the database.
|
de.cismet.connectioncontext.ConnectionContext |
getConnectionContext() |
String |
getGeoField()
The name of the geometry.
|
protected MetaClass |
getGeomClass(HashMap<String,MetaClass> allClasses)
DOCUMENT ME!
|
String |
getIdField()
The field name of the id.
|
String[] |
getPrimitiveColumnTypes()
The primitive datatype of the columns.
|
int |
getReferencedCidsClass(String column)
DOCUMENT ME!
|
String |
getRestriction()
DOCUMENT ME!
|
String |
getSelectString()
The selection string.
|
String[] |
getSqlColumnNames()
The primitive datatype of the columns.
|
String |
getSqlGeoField()
The field name of the geometry.
|
StationInfo |
getStationInfo(String column)
Get information about the station, the given column references to.
|
protected void |
handleCatalogue(MemberAttributeInfo attr,
MetaClass foreignClass,
List<String> sb,
List<String> columnNamesList,
List<String> columnPropertyNamesList,
List<String> sqlColumnNamesList,
List<String> primitiveColumnTypesList,
StringBuilder joins)
Adds the given catalogue.
|
void |
initWithConnectionContext(de.cismet.connectioncontext.ConnectionContext connectionContext) |
boolean |
isCatalogue(String column)
True, if the given column references to a catalogue.
|
boolean |
isPrimitive(String column)
True, iff the given column has a primitve type.
|
boolean |
isReferenceToCidsClass(String column)
DOCUMENT ME!
|
boolean |
isStation(String column)
True, if the given column references to a station object.
|
protected final MetaClass mc
protected final Map<String,StationInfo> stationTypes
public DefaultCidsLayer(MetaClass mc)
mc - DOCUMENT ME!public DefaultCidsLayer(MetaClass mc, Map<String,String> catalogueNameMap)
mc - DOCUMENT ME!catalogueNameMap - DOCUMENT ME!public DefaultCidsLayer(MetaClass mc, String additionalJoins)
mc - DOCUMENT ME!additionalJoins - DOCUMENT ME!protected void handleCatalogue(MemberAttributeInfo attr, MetaClass foreignClass, List<String> sb, List<String> columnNamesList, List<String> columnPropertyNamesList, List<String> sqlColumnNamesList, List<String> primitiveColumnTypesList, StringBuilder joins)
attr - DOCUMENT ME!foreignClass - DOCUMENT ME!sb - DOCUMENT ME!columnNamesList - DOCUMENT ME!columnPropertyNamesList - DOCUMENT ME!sqlColumnNamesList - DOCUMENT ME!primitiveColumnTypesList - DOCUMENT ME!joins - DOCUMENT ME!protected String addLeftJoin(StringBuilder joins, String table, String onClauseLeftSide, String onClauseRightSide)
joins - DOCUMENT ME!table - the table to joinonClauseLeftSide - left side of the join expressiononClauseRightSide - right side of the join expressionprotected String getBeanClassName(HashMap<String,MetaClass> allClasses, int classId)
allClasses - DOCUMENT ME!classId - DOCUMENT ME!protected MetaClass getBeanClass(HashMap<String,MetaClass> allClasses, int classId)
allClasses - DOCUMENT ME!classId - DOCUMENT ME!protected MetaClass getGeomClass(HashMap<String,MetaClass> allClasses)
allClasses - DOCUMENT ME!public String getIdField()
CidsLayerInfogetIdField in interface CidsLayerInfopublic String getSqlGeoField()
CidsLayerInfogetSqlGeoField in interface CidsLayerInfopublic String getGeoField()
CidsLayerInfogetGeoField in interface CidsLayerInfopublic String getSelectString()
CidsLayerInfogetSelectString in interface CidsLayerInfopublic String[] getColumnNames()
CidsLayerInfogetColumnNames in interface CidsLayerInfopublic String[] getPrimitiveColumnTypes()
CidsLayerInfogetPrimitiveColumnTypes in interface CidsLayerInfopublic boolean isPrimitive(String column)
CidsLayerInfoisPrimitive in interface CidsLayerInfocolumn - DOCUMENT ME!public boolean isCatalogue(String column)
CidsLayerInfoisCatalogue in interface CidsLayerInfocolumn - DOCUMENT ME!public Integer getCatalogueClass(String column)
CidsLayerInfogetCatalogueClass in interface CidsLayerInfocolumn - DOCUMENT ME!public boolean isStation(String column)
CidsLayerInfoisStation in interface CidsLayerInfocolumn - DOCUMENT ME!public StationInfo getStationInfo(String column)
CidsLayerInfogetStationInfo in interface CidsLayerInfocolumn - DOCUMENT ME!public String[] getColumnPropertyNames()
CidsLayerInfogetColumnPropertyNames in interface CidsLayerInfopublic int getReferencedCidsClass(String column)
CidsLayerInfogetReferencedCidsClass in interface CidsLayerInfocolumn - DOCUMENT ME!public boolean isReferenceToCidsClass(String column)
CidsLayerInfoisReferenceToCidsClass in interface CidsLayerInfocolumn - DOCUMENT ME!public String[] getSqlColumnNames()
CidsLayerInfogetSqlColumnNames in interface CidsLayerInfopublic String getRestriction()
CidsLayerInfogetRestriction in interface CidsLayerInfopublic de.cismet.connectioncontext.ConnectionContext getConnectionContext()
getConnectionContext in interface de.cismet.connectioncontext.ConnectionContextProvidergetConnectionContext in interface de.cismet.connectioncontext.ConnectionContextStorepublic void initWithConnectionContext(de.cismet.connectioncontext.ConnectionContext connectionContext)
initWithConnectionContext in interface de.cismet.connectioncontext.ConnectionContextStoreCopyright © 2012–2026 cismet GmbH. All rights reserved.