|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wfs.configuration.ConfigurationFactory
Field Summary | |
private static java.lang.String |
namespace
|
Constructor Summary | |
ConfigurationFactory()
|
Method Summary | |
private static Connection |
createConnection(org.w3c.dom.Element element)
creates a Connection object that describes the JDBC connection paramter for accessing a database |
static Connection |
createConnection(java.lang.String driver,
java.lang.String logon,
java.lang.String user,
java.lang.String password)
creates a Connection object that describes the JDBC connection paramter for accessing a database. |
static Connection |
createConnectionOracle(java.lang.String driver,
java.lang.String logon,
java.lang.String user,
java.lang.String password,
java.lang.String spatialVersion)
creates a Connection object that describes the JDBC connection paramter for accessing a database. |
static Connection |
createConnectionSDE(java.lang.String driver,
java.lang.String logon,
java.lang.String user,
java.lang.String password,
java.lang.String sdeDatabase)
creates a Connection object that describes the JDBC connection paramter for accessing a database. |
static DatastoreConfiguration |
createDatastoreConfiguration(org.w3c.dom.Document doc)
creates a DatastoreConfiguration object from a dom document |
static DatastoreConfiguration |
createDatastoreConfiguration(java.io.Reader reader)
creates a DatastoreConfiguration object from a dom document accessable by the submitted Reader |
static DatastoreConfiguration |
createDatastoreConfiguration(java.lang.String name,
int type,
Connection connection,
FeatureType[] featureTypes)
creates a DatastoreConfiguration object |
static FeatureType |
createFeatureType(java.lang.String name,
OutputFormat[] outputFormats,
java.util.HashMap properties,
java.util.HashMap propertyTypes,
java.util.HashMap datastoreFields,
java.util.HashMap datastoreFieldTypes,
java.util.HashMap dbFieldTypes,
java.util.HashMap alias,
java.util.HashMap aliasInv,
MasterTable masterTable,
RelatedTable[] relatedTables,
java.lang.String crs,
java.lang.String icrs)
creates a description object for each feature type that's accessable through a datastore. |
private static FeatureType[] |
createFeatureTypes(org.w3c.dom.NodeList nl,
Connection con,
int type)
creates a description object for each feature type that's accessable through a datastore. |
private static java.util.HashMap |
createGeoFieldIdentifiers(org.w3c.dom.NodeList nl)
creates a description object for each gea column of a table |
static GeoFieldIdentifier |
createGeoFieldIdentifiers(java.lang.String name,
int dimension)
creates a description object for a column containing geo-spatial data |
private static java.util.HashMap[] |
createMappingFields(org.w3c.dom.NodeList nl)
creates descrption objects for each field of the feature type to one or more database fields. |
static java.util.HashMap[] |
createMappingFields(java.lang.String[] propertyNames,
java.lang.String[] propertyTypes,
java.lang.String[][] dataStoreFields,
java.lang.String[][] dataStoreFieldTypes)
creates descrption objects for each field of the feature type to map one or more database fields. each property is assigned toone or more datastroe fields. |
private static MasterTable |
createMasterTable(org.w3c.dom.Element element,
int type)
create a description object for the master table of the feature type |
static MasterTable |
createMasterTable(java.lang.String name,
java.lang.String targetName,
java.lang.String idField,
boolean isNumber,
boolean isAutoIncremented,
boolean insertAllowed,
boolean updateAllowed,
boolean deleteAllowed,
java.util.HashMap geoFields,
java.util.HashMap references)
create a description object for the master table of a feature type |
static OutputFormat |
createOutputFormat(java.lang.String name,
java.lang.String responsibleClass,
ParameterList parameter,
java.net.URL schemaLocation)
creates a descrption object for a output format supported by a datastore for a feature type. |
private static OutputFormat[] |
createOutputFormats(org.w3c.dom.Element element)
creates a descrptions object for the output formats supported by the datastore for a feature type |
private static ParameterList |
createParameterList(org.w3c.dom.NodeList nl)
create additional parameters that shall be submitted to the resposible for a defined output format |
private static java.util.HashMap |
createReferences(org.w3c.dom.NodeList nl)
creates a description object for reference to a related table for the master table or an higher level related table |
static Reference |
createReferences(java.lang.String tableField,
boolean replaceable,
java.lang.String targetTable,
java.lang.String targetField)
creates a description object for reference to a related table for the master table or an higher level related table |
static RelatedTable |
createRelatedTable(java.lang.String name,
java.lang.String targetName,
java.lang.String idField,
boolean isNumber,
boolean isAutoIncremented,
boolean insertAllowed,
boolean updateAllowed,
boolean deleteAllowed,
java.util.HashMap geoFields,
java.util.HashMap references,
boolean joinTable)
create a description object for a table of a feature type related direct or indirect to the master table |
private static RelatedTable[] |
createRelatedTables(org.w3c.dom.NodeList nl)
create a description object for each table of the feature type related direct or indirect to the master table |
private static int |
getDataType(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.lang.String namespace
Constructor Detail |
public ConfigurationFactory()
Method Detail |
public static DatastoreConfiguration createDatastoreConfiguration(java.io.Reader reader) throws WFSConfigurationException
WFSConfigurationException
public static DatastoreConfiguration createDatastoreConfiguration(org.w3c.dom.Document doc) throws WFSConfigurationException
WFSConfigurationException
public static DatastoreConfiguration createDatastoreConfiguration(java.lang.String name, int type, Connection connection, FeatureType[] featureTypes)
name
- of the datastore configurationtype
- Type of the datastore to be describedconnection
- Connection if the datastore if a databasefeatureTypes
- Feature type supported by the datastore
private static Connection createConnection(org.w3c.dom.Element element) throws java.lang.Exception
java.lang.Exception
public static Connection createConnection(java.lang.String driver, java.lang.String logon, java.lang.String user, java.lang.String password)
driver
- name of the JDBC driver to be usedlogon
- connection description to a databaseuser
- user namepassword
- users passwordpublic static Connection createConnectionOracle(java.lang.String driver, java.lang.String logon, java.lang.String user, java.lang.String password, java.lang.String spatialVersion)
driver
- name of the JDBC driver to be usedlogon
- connection description to a databaseuser
- user namepassword
- users passwordspatialVersion
- version of the spatial extension if a Oracle database
shall be connectedpublic static Connection createConnectionSDE(java.lang.String driver, java.lang.String logon, java.lang.String user, java.lang.String password, java.lang.String sdeDatabase)
driver
- name of the JDBC driver to be usedlogon
- connection description to a databaseuser
- user namepassword
- users passwordsdeDatabase
- private static FeatureType[] createFeatureTypes(org.w3c.dom.NodeList nl, Connection con, int type) throws java.lang.Exception
java.lang.Exception
public static FeatureType createFeatureType(java.lang.String name, OutputFormat[] outputFormats, java.util.HashMap properties, java.util.HashMap propertyTypes, java.util.HashMap datastoreFields, java.util.HashMap datastoreFieldTypes, java.util.HashMap dbFieldTypes, java.util.HashMap alias, java.util.HashMap aliasInv, MasterTable masterTable, RelatedTable[] relatedTables, java.lang.String crs, java.lang.String icrs)
name
- Name of the feature typeoutputFormats
- Output formats supported by the feature typeproperties
- Mapping between properties and datastore fieldspropertyTypes
- Mapping between properties and their data typesdatastoreFields
- Mapping between datastore fields and propertiesdatastoreFieldTypes
- Mapping between datastore fields and their data typesdbFieldTypes
- Mapping between db fields and their data typesmasterTable
- Description of the features types master tablerelatedTables
- Description of the feature types related tablescrs
- Coordinate reference system of the feature typeicrs
- Coordinate reference system code of the feature type as it is
used within the datasourceprivate static OutputFormat[] createOutputFormats(org.w3c.dom.Element element) throws java.lang.Exception
java.lang.Exception
public static OutputFormat createOutputFormat(java.lang.String name, java.lang.String responsibleClass, ParameterList parameter, java.net.URL schemaLocation)
name
- Name of the output formatresponsibleClass
- Class that's responsible for creating the output
formatparameter
- List of parameters that will be submitted to the
responsible classschemaLocation
- URL of the XML schema describing the output format
private static ParameterList createParameterList(org.w3c.dom.NodeList nl)
private static java.util.HashMap[] createMappingFields(org.w3c.dom.NodeList nl)
public static java.util.HashMap[] createMappingFields(java.lang.String[] propertyNames, java.lang.String[] propertyTypes, java.lang.String[][] dataStoreFields, java.lang.String[][] dataStoreFieldTypes) throws java.lang.Exception
propertyNames
- array of property namespropertyTypes
- Array containing one type for each named propertydataStoreFields
- datastore fields assigned to the propertiesdataStoreFieldTypes
- types of the datastore fields.
java.lang.Exception
private static int getDataType(java.lang.String s)
s
-
private static MasterTable createMasterTable(org.w3c.dom.Element element, int type) throws java.io.IOException
java.io.IOException
public static MasterTable createMasterTable(java.lang.String name, java.lang.String targetName, java.lang.String idField, boolean isNumber, boolean isAutoIncremented, boolean insertAllowed, boolean updateAllowed, boolean deleteAllowed, java.util.HashMap geoFields, java.util.HashMap references)
name
- Name of the tabletargetName
- Name that shall be used for this table within FaetureType
objectsidField
- Name of the field that shall be used as id for the tables
contentisNumber
- True if the ID-field if of a number typeisAutoIncremented
- True if the values of the ID-field will be incremented
automaticly by the datastore (database)geoFields
- names and dimensions of the tables geo-spatial fieldsreferences
- names and descriptions of references to other tables
private static java.util.HashMap createReferences(org.w3c.dom.NodeList nl)
public static Reference createReferences(java.lang.String tableField, boolean replaceable, java.lang.String targetTable, java.lang.String targetField)
tableField
- Name of the field that shall be interpreted as referencereplaceable
- True if the field shall be replaced by the refrenced contenttargetTable
- Name of the table that is referencedtargetField
- Name of the target tables field that must match the
tableField
private static java.util.HashMap createGeoFieldIdentifiers(org.w3c.dom.NodeList nl)
public static GeoFieldIdentifier createGeoFieldIdentifiers(java.lang.String name, int dimension)
name
- Name of the column containing geo-spatial datadimension
- Dimension of the geo-spatial data; just used for POINTDB
private static RelatedTable[] createRelatedTables(org.w3c.dom.NodeList nl)
public static RelatedTable createRelatedTable(java.lang.String name, java.lang.String targetName, java.lang.String idField, boolean isNumber, boolean isAutoIncremented, boolean insertAllowed, boolean updateAllowed, boolean deleteAllowed, java.util.HashMap geoFields, java.util.HashMap references, boolean joinTable)
name
- Name of the tabletargetName
- Name that shall be used for this table within FaetureType
objectsidField
- Name of the field that shall be used as id for the tables
contentisNumber
- True if the ID-field if of a number typeisAutoIncremented
- True if the values of the ID-field will be incremented
automaticly by the datastore (database)geoFields
- names and dimensions of the tables geo-spatial fieldsreferences
- names and descriptions of references to other tablesjoinTable
- True if the table is a join table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |