|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.database.AbstractDatabaseMapping
This class provides a skeletal implementation of the DatabaseMapping interface, to minimize the effort required to implement this interface.
| Field Summary | |
protected Property |
myProperty
Property associated with this database mapping |
| Constructor Summary | |
AbstractDatabaseMapping(Property property)
AbstractDatabaseMapping Constructor. |
|
| Method Summary | |
SQLStatements |
getDistinctSQL()
Returns the SQL statements required to get the distinct values for the property associated with this mapping. |
java.util.List |
getJavaObjects(java.sql.ResultSet rs,
ExtraInfo extraInfo)
Gets the data from the given result set as Java objects. |
Property |
getProperty()
Gets the property associated with this database mapping. |
java.lang.String |
getSQLSubString(Filter filter,
ExtraInfo extraInfo)
Gets the SQL sub-string based on the given filter. |
java.lang.String |
toString()
Returns the string representation of this database mapping. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final Property myProperty
| Constructor Detail |
public AbstractDatabaseMapping(Property property)
property - associated property| Method Detail |
public Property getProperty()
getProperty in interface DatabaseMapping
public java.lang.String getSQLSubString(Filter filter,
ExtraInfo extraInfo)
getSQLSubString in interface DatabaseMappingfilter - filterextraInfo - this is extra information that can be used
by this database mapping to generate the SQL.
public java.util.List getJavaObjects(java.sql.ResultSet rs,
ExtraInfo extraInfo)
throws java.sql.SQLException
getJavaObjects in interface DatabaseMappingrs - result setextraInfo - this is extra information that can be used
by this database mapping to generate the Java objects.
java.sql.SQLExceptionpublic SQLStatements getDistinctSQL()
getDistinctSQL in interface DatabaseMappingpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||