| java.lang.Object es.udc.mypersonalizer.kernel.model.repository.sql.storers.RelationalPropertyStorageStrategy
RelationalPropertyStorageStrategy | public class RelationalPropertyStorageStrategy implements PropertyStorageStrategy(Code) | | This class defines a policy to store and retrieve properties on a
database by means of an object to relational mapping. Each property
is kept in one or more database tables, in a way that minimizes the
number of tables necessary to store the information.
This policy is intended to be passed to "storer" classes.
author: Fernando Bellas author: Abel Muinho since: 1.0 |
Method Summary | |
public void | addProperty(Connection connection, Map key, Property property) | protected String | allAndKeys(Map map) Returns a String in a format suitable for use with
java.sql.Connection.prepareStatement(String) where all the key
columns equal a parameter (i.e. | protected void | fillKeyValues(PreparedStatement statement, Map key) Adds the key values in key to the PreparedStatement ,
starting at the first parameter. | public Map | findPropertiesByRange(Connection connection, List keys, int offset, int size) | public Property | findProperty(Connection connection, Map key) | protected boolean | propertyExists(Connection connection, Map key) | public void | removeProperty(Connection connection, Map key) | public void | setMetainfo(MetaService metainfo) | public void | updateProperty(Connection connection, Map key, Property property) |
allAndKeys | protected String allAndKeys(Map map)(Code) | | Returns a String in a format suitable for use with
java.sql.Connection.prepareStatement(String) where all the key
columns equal a parameter (i.e. "column = ?").
Parameters: map - The map which will converted to a String representing a SQL contition. a String The formatted String . |
fillKeyValues | protected void fillKeyValues(PreparedStatement statement, Map key) throws SQLException(Code) | | Adds the key values in key to the PreparedStatement ,
starting at the first parameter.
Parameters: statement - Statement whose parameters are to beassigned a value. Parameters: key - Key values to fill. throws: VisitorException - if the parameters can't be assigned a value. |
|
|