gov.usda.gdpc.panzea
Class PanzeaLocusDatabaseMapping
java.lang.Object
gov.usda.gdpc.database.AbstractDatabaseMapping
gov.usda.gdpc.database.SimpleDatabaseMapping
gov.usda.gdpc.database.StringDatabaseMapping
gov.usda.gdpc.panzea.PanzeaLocusDatabaseMapping
- All Implemented Interfaces:
- DatabaseMapping
- public class PanzeaLocusDatabaseMapping
- extends StringDatabaseMapping
- Author:
- terryc
|
Method Summary |
java.util.List |
getJavaObjects(java.sql.ResultSet rs,
ExtraInfo extraInfo)
Gets the data from the given result set as Java objects. |
java.lang.String |
toString()
Returns the string representation of this database mapping. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PanzeaLocusDatabaseMapping
public PanzeaLocusDatabaseMapping(Property property,
java.lang.String dbtable,
java.lang.String field,
PanzeaDBConnection connection)
- PanzeaLocusDatabaseMapping Constructor. This represents a Panzea locus
mapping from a property to a field in a database table.
- Parameters:
property - associated property. null is creating a mapping
to use for matching against a property map.dbtable - database tablefield - database field from table
getJavaObjects
public java.util.List getJavaObjects(java.sql.ResultSet rs,
ExtraInfo extraInfo)
throws java.sql.SQLException
- Gets the data from the given result set as Java objects.
The actual type of objects returned will match what's
specified by the property associated with this mapping.
- Specified by:
getJavaObjects in interface DatabaseMapping- Overrides:
getJavaObjects in class SimpleDatabaseMapping
- Parameters:
rs - result setextraInfo - this is not used by this database mapping
- Returns:
- list of converted data
- Throws:
java.sql.SQLException
toString
public java.lang.String toString()
- Returns the string representation of this database mapping.
- Overrides:
toString in class StringDatabaseMapping
- Returns:
- string representation