This class is a concrete Visitor in the "Visitor" pattern.
It defines a way to remove a Property
from a database by means of a object to relational mapping.
The property is identified in the database by the key.
It is responsability of the "Visitor" implementations to
make the traverse through the hierarchical structure.
author: Abel Muinho author: Fernando Bellas since: 1.0
getAllPropertyValuesKeys(MetaCompoundProperty metaProperty) Returns a collection with all the values for the keys used to index
each of the values of the current multivalued property.
Parameters: metaProperty - Metainformation describing the current property.
visitComponents(MetaCompoundProperty metaProperty, Map newKey) Iterates over the components of the current
MetaCompoundProperty visiting them with the given
key.
visitMetaCompoundProperty(MetaCompoundProperty metaProperty) Visit operation for a MetaCompoundProperty.
Parameters: metaProperty - the MetaCompoundPropertyobject over which the visitor can operate.
visitMetaSimpleProperty(MetaSimpleProperty metaProperty) Visit operation for a MetaSimpleProperty.
Parameters: metaProperty - the MetaSimplePropertyobject over which the visitor can operate.
Creates an instance of this class.
Parameters: connection - a connection to the database Parameters: key - the map that contains pairs of key fields and theircorresponding values.
Returns a collection with all the values for the keys used to index
each of the values of the current multivalued property.
Parameters: metaProperty - Metainformation describing the current property. A collection of the key values for each of the property values. throws: VisitorException - if the key values could not be accessed.
Removes the rows for the currently being visited property.
Parameters: metaProperty - Metainformation of the current property. throws: VisitorException - if a problem occurs while deleting the row.
Iterates over the components of the current
MetaCompoundProperty visiting them with the given
key.
Parameters: metaProperty - The CompoundMetaProperty which components will be iterated over. Parameters: newKey - Key to be used when visiting the components. throws: VisitorException - if a problem is detected during the visits.
Visit operation for a MetaCompoundProperty.
Parameters: metaProperty - the MetaCompoundPropertyobject over which the visitor can operate. an Object of needful for the caller.In this case it's null throws: VisitorException - if an internal error occurs whileprocessing the visited object
Visit operation for a MetaSimpleProperty.
Parameters: metaProperty - the MetaSimplePropertyobject over which the visitor can operate. an Object of needful for the caller.In this case it's null throws: VisitorException - if an internal error occurs while processing the visited object
Methods inherited from es.udc.mypersonalizer.kernel.model.repository.sql.storers.AbstractSQLMetaPropertyVisitor