| es.udc.mypersonalizer.kernel.model.repository.sql.storers.PropertyStorageStrategy
All known Subclasses: es.udc.mypersonalizer.kernel.model.repository.sql.storers.RelationalPropertyStorageStrategy, es.udc.mypersonalizer.kernel.model.repository.sql.storers.SerializationPropertyStorageStrategy,
PropertyStorageStrategy | public interface PropertyStorageStrategy (Code) | | This interface specifies a strategy ("strategy" desing pattern) to access
and maniputate properties on the database. A property is identified by a
Map , mapping String s to Object s.
The String s make up the key, and the Object s
are their values. This feature allows to use strings or numbers as values
for key fields. If fact, the values of the keys can only be one of the
following ones: java.lang.Byte, java.lang.Short, java.lang.Integer,
java.lang.Float, java.lang.Double and java.lang.String. No check will
be done.
A "storer" class will retrieve the policy to be used by means of
PropertyStorageStrategyRegistrySingleton , and will delegate
on it in order to access or manipulate the corresponding property.
author: Fernando Bellas since: 1.0 |
findPropertiesByRange | Map findPropertiesByRange(Connection connection, List keys, int offset, int size) throws InternalErrorException(Code) | | Extracts a property range by using the key fields.
Parameters: connection - the connection to the database Parameters: keys - the key columns as a list of String s Parameters: offset - the number of initial properties to be skipped. Thisparameter must be greather or equals than 0 Parameters: size - the number of properties to be extracted the property range as a map of (Map, Property ).The map contains the key fields and their values for eachproperty. If the map size is less than the parameter "size"that means that there are no more properties to read. throws: InternalErrorException - if a failure is detected. |
findProperty | Property findProperty(Connection connection, Map key) throws InternalErrorException, InstanceNotFoundException(Code) | | Extracts a property identified by its key from the database.
Parameters: connection - the connection to the database Parameters: key - the map with the key columns and their corresponding values the Property extracted from the result set throws: InternalErrorException - if a failure is detected. throws: IntanceNotFoundException - if the property identified by the key doesnot exist |
setMetainfo | void setMetainfo(MetaService metainfo)(Code) | | Sets the metainformation needed for the strategy to work.
Parameters: metainfo - the Meatinformation needed. |
|
|