|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.database.AbstractPropertyMap
This class provides a skeletal implementation of the PropertyMap interface, to minimize the effort required to implement this interface.
| Field Summary | |
protected java.util.Map |
myMappings
|
| Constructor Summary | |
AbstractPropertyMap()
AbstractPropertyMap Constructor. |
|
| Method Summary | |
void |
addMapping(DatabaseMapping mapping)
Adds the specified database mapping. |
DatabaseMapping |
getMapping(Property property)
Gets the mapping associated with the given property. |
DatabaseMapping[] |
getMappings(java.lang.Class type)
Gets the database mappings from this property map that an associated property of the give type. |
DatabaseMapping |
getMatchingMapping(DatabaseMapping mapping)
Gets the database mapping that matches the given database mapping. |
java.lang.String |
getSQL(Filter filter,
ExtraInfo extraInfo)
Get the SQL "where" string required to retrieve the data matching the given filter for this property map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map myMappings
| Constructor Detail |
public AbstractPropertyMap()
| Method Detail |
public DatabaseMapping getMapping(Property property)
getMapping in interface PropertyMapproperty - the property
public void addMapping(DatabaseMapping mapping)
addMapping in interface PropertyMapmapping - the mapping to addpublic DatabaseMapping getMatchingMapping(DatabaseMapping mapping)
getMatchingMapping in interface PropertyMapmapping - the mapping to match
public java.lang.String getSQL(Filter filter,
ExtraInfo extraInfo)
getSQL in interface PropertyMapfilter - the filterextraInfo - this is extra information that will be passed
along to the individual database mappings used by the property
map to generate the SQL. null if not needed.
public DatabaseMapping[] getMappings(java.lang.Class type)
getMappings in interface PropertyMaptype - type to match
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||