Package org.geotools.data.complex.config
Class JdbcMultipleValue
Object
ExpressionAbstract
DefaultExpression
AttributeExpressionImpl
JdbcMultipleValue
- All Implemented Interfaces:
Expression,PropertyName,MultipleValue
Implementation of the multivalued mappings API for JDBC based data sources.
-
Field Summary
Fields inherited from class AttributeExpressionImpl
attPath, lenient, namespaceSupport, schemaFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ExpressionVisitor visitor, Object extraData) Used by FilterVisitors to perform some action on this filter instance.booleanCompares this filter to the specified object.Gets the value of this property from the passed object.<T> TGets the value of this attribute from the passed object.getId()Returns the ID of the multivalued mapping.String[]getValues(Feature features, AttributeMapping attributeMapping) Returns the values extracted from the provided feature using this multivalued mapping.inthashCode()Override of hashCode method.voidsetAttributeMapping(AttributeMapping attributeMapping) Sets the attribute type mapping that contains this multi valued mapping.voidsetFeatureTypeMapping(FeatureTypeMapping featureTypeMapping) Sets the feature type mapping that contains this multi valued mapping.voidsetSourceColumn(String sourceColumn) voidsetTargetColumn(String targetColumn) voidsetTargetTable(String targetTable) voidsetTargetValue(String targetValue) toString()Return this expression as a string.Methods inherited from class AttributeExpressionImpl
getNamespaceContext, getPropertyName, isLenient, setLenient, setPropertyNameMethods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Constructor Details
-
JdbcMultipleValue
public JdbcMultipleValue()
-
-
Method Details
-
getSourceColumn
-
setSourceColumn
-
getTargetTable
-
setTargetTable
-
getTargetColumn
-
setTargetColumn
-
getTargetValue
-
setTargetValue
-
getFeatureTypeMapping
-
setFeatureTypeMapping
Description copied from interface:MultipleValueSets the feature type mapping that contains this multi valued mapping.- Specified by:
setFeatureTypeMappingin interfaceMultipleValue
-
getAttributeMapping
-
setAttributeMapping
Description copied from interface:MultipleValueSets the attribute type mapping that contains this multi valued mapping.- Specified by:
setAttributeMappingin interfaceMultipleValue
-
getProperties
-
getValues
Description copied from interface:MultipleValueReturns the values extracted from the provided feature using this multivalued mapping.- Specified by:
getValuesin interfaceMultipleValue
-
evaluate
Description copied from class:AttributeExpressionImplGets the value of this property from the passed object.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classAttributeExpressionImpl- Parameters:
object- Object from which we need to extract a property value.- Returns:
- default implementation returns null
-
evaluate
Description copied from class:AttributeExpressionImplGets the value of this attribute from the passed object.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classAttributeExpressionImpl- Type Parameters:
T- The type of the returned object.- Parameters:
object- Object from which to extract attribute value.context- Target Class- Returns:
- Evaluates the given expression based on the content of the given object an an instance of
context.
-
accept
Description copied from class:AttributeExpressionImplUsed by FilterVisitors to perform some action on this filter instance. Typicaly used by Filter decoders, but may also be used by any thing which needs infomration from filter structure. Implementations should always call: visitor.visit(this); It is importatant that this is not left to a parent class unless the parents API is identical.- Specified by:
acceptin interfaceExpression- Overrides:
acceptin classAttributeExpressionImpl- Parameters:
visitor- The visitor which requires access to this filter, the method must call visitor.visit(this);
-
getId
Description copied from interface:MultipleValueReturns the ID of the multivalued mapping.- Specified by:
getIdin interfaceMultipleValue
-
equals
Description copied from class:AttributeExpressionImplCompares this filter to the specified object. Returns true if the passed in object is the same as this expression. Checks to make sure the expression types are the same as well as the attribute paths and schemas.- Overrides:
equalsin classAttributeExpressionImpl- Parameters:
o- - the object to compare this ExpressionAttribute against.- Returns:
- true if specified object is equal to this filter; else false
-
hashCode
public int hashCode()Description copied from class:AttributeExpressionImplOverride of hashCode method.- Overrides:
hashCodein classAttributeExpressionImpl- Returns:
- a code to hash this object by.
-
toString
Description copied from class:AttributeExpressionImplReturn this expression as a string.- Overrides:
toStringin classAttributeExpressionImpl- Returns:
- String representation of this attribute expression.
-