org.deegree_impl.services.wfs.configuration
Class TableDescription_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wfs.configuration.TableDescription_Impl
All Implemented Interfaces:
TableDescription
Direct Known Subclasses:
MasterTable_Impl, RelatedTable_Impl

public class TableDescription_Impl
extends java.lang.Object
implements TableDescription

the interface describes a table that contains data that are part of a feature type

---------------------------------------------------------------------

Version:
$Revision: 1.9 $ $Date: 2004/05/10 08:41:07 $
Author:
Andreas Poth

Field Summary
private  boolean deleteAllowed
           
private  java.util.HashMap geoFields
           
private  java.lang.String idField
           
private  boolean insertAllowed
           
private  boolean isAutoIncremented
           
private  boolean isNumber
           
private  java.lang.String name
           
private  java.util.HashMap references
           
private  java.lang.String targetName
           
private  boolean updateAllowed
           
 
Constructor Summary
(package private) TableDescription_Impl(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)
          Creates a new TableDescription_Impl object.
 
Method Summary
 void addGeoFieldIdentifier(java.lang.String field, GeoFieldIdentifier geoFieldId)
           
 void addReference(java.lang.String field, Reference reference)
           
 GeoFieldIdentifier[] getGeoFieldIdentifier()
          returns all describtions for all fields that contains geo spatial data.
 GeoFieldIdentifier getGeoFieldIdentifier(java.lang.String datastoreField)
          return an object that describes a field that contains geo spatial data.
 java.lang.String getIdField()
          returns the name of the table's field that shall be interpreted as ID
 java.lang.String getName()
          returns the name of the table. in the case that a datastore encapsulates an esri shapefile this is the name of the shape without extension
 Reference[] getReferences()
          returns all references contained within the table. an implementation have to ensure that if no references are contained a zero length will be returned
 Reference[] getReferences(java.lang.String datastoreField)
          returns an object that describes the reference to another table
 java.lang.String getTargetName()
          returns the name the table shall be mapped to at a feature (type)
 boolean isDeleteAllowed()
          returns true if deleting rows from the tables are allowed
 boolean isGeoFieldIdentifier(java.lang.String datastoreField)
          returns true if the submitted field shall be interpreted as field that contains geo spatial data. only needed for GMLDB and POINTDB
 boolean isIdFieldAutoIncremented()
          returns true if the value of the id will be set automaticly by a database
 boolean isIdFieldNumber()
          returns true if the id field is a number data type
 boolean isInsertAllowed()
          returns true if inserts into the table are allowed
 boolean isReference(java.lang.String datastoreField)
          returns true if the submitted field is a reference to another table
 boolean isUpdateAllowed()
          returns true if updates of the tables rows are allowed
 void setDeleteAllowed(boolean deleteAllowed)
           
 void setGeoFieldIdentifiers(java.util.HashMap geoFields)
           
 void setIdField(java.lang.String idField)
           
 void setIdFieldIsAutoIncremented(boolean isAutoIncremented)
           
 void setInsertAllowed(boolean insertAllowed)
           
 void setIsNumber(boolean isNumber)
           
 void setName(java.lang.String name)
           
 void setReferences(java.util.HashMap references)
           
 void setTargetName(java.lang.String targetName)
           
 void setUpdateAllowed(boolean updateAllowed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geoFields

private java.util.HashMap geoFields

references

private java.util.HashMap references

idField

private java.lang.String idField

name

private java.lang.String name

targetName

private java.lang.String targetName

deleteAllowed

private boolean deleteAllowed

insertAllowed

private boolean insertAllowed

isAutoIncremented

private boolean isAutoIncremented

isNumber

private boolean isNumber

updateAllowed

private boolean updateAllowed
Constructor Detail

TableDescription_Impl

TableDescription_Impl(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)
Creates a new TableDescription_Impl object.

Parameters:
name -
targetName -
idField -
isNumber -
isAutoIncremented -
insertAllowed -
updateAllowed -
deleteAllowed -
geoFields -
references -
Method Detail

getName

public java.lang.String getName()
returns the name of the table. in the case that a datastore encapsulates an esri shapefile this is the name of the shape without extension

Specified by:
getName in interface TableDescription

setName

public void setName(java.lang.String name)
See Also:
getName()

getTargetName

public java.lang.String getTargetName()
returns the name the table shall be mapped to at a feature (type)

Specified by:
getTargetName in interface TableDescription

setTargetName

public void setTargetName(java.lang.String targetName)
See Also:
getTargetName()

getIdField

public java.lang.String getIdField()
returns the name of the table's field that shall be interpreted as ID

Specified by:
getIdField in interface TableDescription

setIdField

public void setIdField(java.lang.String idField)
See Also:
getIdField()

isIdFieldNumber

public boolean isIdFieldNumber()
returns true if the id field is a number data type

Specified by:
isIdFieldNumber in interface TableDescription

setIsNumber

public void setIsNumber(boolean isNumber)
See Also:
isNumber

isIdFieldAutoIncremented

public boolean isIdFieldAutoIncremented()
returns true if the value of the id will be set automaticly by a database

Specified by:
isIdFieldAutoIncremented in interface TableDescription

setIdFieldIsAutoIncremented

public void setIdFieldIsAutoIncremented(boolean isAutoIncremented)
See Also:
isIdFieldAutoIncremented()

isReference

public boolean isReference(java.lang.String datastoreField)
returns true if the submitted field is a reference to another table

Specified by:
isReference in interface TableDescription

getReferences

public Reference[] getReferences(java.lang.String datastoreField)
returns an object that describes the reference to another table

Specified by:
getReferences in interface TableDescription

getReferences

public Reference[] getReferences()
returns all references contained within the table. an implementation have to ensure that if no references are contained a zero length will be returned

Specified by:
getReferences in interface TableDescription

setReferences

public void setReferences(java.util.HashMap references)
See Also:
getReferences()

addReference

public void addReference(java.lang.String field,
                         Reference reference)
See Also:
getReferences()

isGeoFieldIdentifier

public boolean isGeoFieldIdentifier(java.lang.String datastoreField)
returns true if the submitted field shall be interpreted as field that contains geo spatial data. only needed for GMLDB and POINTDB

Specified by:
isGeoFieldIdentifier in interface TableDescription

getGeoFieldIdentifier

public GeoFieldIdentifier getGeoFieldIdentifier(java.lang.String datastoreField)
return an object that describes a field that contains geo spatial data.

Specified by:
getGeoFieldIdentifier in interface TableDescription

getGeoFieldIdentifier

public GeoFieldIdentifier[] getGeoFieldIdentifier()
returns all describtions for all fields that contains geo spatial data. an implementation have to ensure that if no references are contained a zero length will be returned

Specified by:
getGeoFieldIdentifier in interface TableDescription

setGeoFieldIdentifiers

public void setGeoFieldIdentifiers(java.util.HashMap geoFields)
See Also:
getGeoFieldIdentifier()

addGeoFieldIdentifier

public void addGeoFieldIdentifier(java.lang.String field,
                                  GeoFieldIdentifier geoFieldId)
See Also:
getGeoFieldIdentifier()

isDeleteAllowed

public boolean isDeleteAllowed()
returns true if deleting rows from the tables are allowed

Specified by:
isDeleteAllowed in interface TableDescription

setDeleteAllowed

public void setDeleteAllowed(boolean deleteAllowed)
Parameters:
deleteAllowed -

isInsertAllowed

public boolean isInsertAllowed()
returns true if inserts into the table are allowed

Specified by:
isInsertAllowed in interface TableDescription

setInsertAllowed

public void setInsertAllowed(boolean insertAllowed)
Parameters:
insertAllowed -

isUpdateAllowed

public boolean isUpdateAllowed()
returns true if updates of the tables rows are allowed

Specified by:
isUpdateAllowed in interface TableDescription

setUpdateAllowed

public void setUpdateAllowed(boolean updateAllowed)
Parameters:
updateAllowed -