|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wfs.InsertTree
This recursive structure is used to hold all necessary data for an INSERT-Transaction of one instance of an GMLFeature.
Field Summary | |
private java.util.HashMap |
fields
fieldNames/value pairs for this table (for flat fields) |
private FeatureType |
ft
associated FeatureType |
private boolean |
isJoinTable
true, if associated table is a jointable |
private java.util.HashMap |
jSonNames
lookup table for jointable-sons (values are RelatedTables) |
private java.util.HashMap |
sonNames
lookup table for non-jointable-sons (values are InsertTrees) |
private java.util.ArrayList |
sons
connected InsertTrees (Jointables and Non-Jointables) |
private TableDescription |
table
associated DB-Table |
Constructor Summary | |
private |
InsertTree(TableDescription table,
FeatureType ft)
Constructs a new InsertTree-object (only for class-internal use). |
Method Summary | |
private InsertTree |
addChild(RelatedTable targetTable,
boolean childIsJT)
Adds a table as a child. |
private boolean |
addField(java.lang.String value,
java.lang.String mappedTable,
java.lang.String mappedField)
Adds a field to the structure. |
private InsertTree |
buildFromGMLFeature(GMLFeature gmlFeature)
Builds a new InsertTree object recursively. |
static InsertTree |
buildFromGMLFeature(GMLFeature gmlFeature,
FeatureType ft)
|
FeatureType |
getFeatureType()
returns the feature type that is mapped to the tree |
java.util.Iterator |
getFieldsKeys()
|
java.lang.Object |
getFieldValue(java.lang.String key)
returns fieldNames/value pair for this table (for flat fields) |
java.util.ArrayList |
getSons()
returns a list of InsertTrees that are connected to this one |
TableDescription |
getTableDescription()
returns the associated DB-Table |
boolean |
isFieldsEmpty()
|
boolean |
isJoinTable()
returns true if the current table is a join table |
java.lang.Object |
putFieldValue(java.lang.String key,
java.lang.Object value)
set fieldNames/value pair for this table (for flat fields) |
private java.lang.String[] |
splitString(java.lang.String name)
Extracts the two parts of a concatenated String of the form [a.]b (part a is optional). |
java.lang.String |
toString()
Returns a String representation of this object. |
private java.lang.StringBuffer |
toStringRecurse(java.lang.String indent)
Builds a StringBuffer recursively that describes this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private FeatureType ft
private TableDescription table
private boolean isJoinTable
private java.util.ArrayList sons
private java.util.HashMap sonNames
private java.util.HashMap jSonNames
private java.util.HashMap fields
Constructor Detail |
private InsertTree(TableDescription table, FeatureType ft) throws InsertException
table
- the table associated to the new InsertTreeft
- the FeatureType this InsertTree corresponds toMethod Detail |
public static InsertTree buildFromGMLFeature(GMLFeature gmlFeature, FeatureType ft) throws InsertException
InsertException
private InsertTree addChild(RelatedTable targetTable, boolean childIsJT) throws InsertException
targetTable
- the table to addchildIsJT
- true, if child table is a jointable
InsertException
private boolean addField(java.lang.String value, java.lang.String mappedTable, java.lang.String mappedField)
value
- the data of the fieldmappedTable
- the name of the db-tablemappedField
- the name of the db-field
private InsertTree buildFromGMLFeature(GMLFeature gmlFeature) throws InsertException
gmlFeature
- the GMLFeature the InsertTree shall represent
InsertException
private java.lang.String[] splitString(java.lang.String name)
public java.lang.String toString()
private java.lang.StringBuffer toStringRecurse(java.lang.String indent)
indent
- String to put in front of every line
public FeatureType getFeatureType()
public TableDescription getTableDescription()
public boolean isJoinTable()
public java.util.ArrayList getSons()
public java.lang.Object getFieldValue(java.lang.String key)
public java.lang.Object putFieldValue(java.lang.String key, java.lang.Object value)
public boolean isFieldsEmpty()
public java.util.Iterator getFieldsKeys()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |