|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.database.AbstractDatabaseMapping
gov.usda.gdpc.database.ConstantDatabaseMapping
| Field Summary | |
protected java.lang.Object |
myConstant
|
| Fields inherited from class gov.usda.gdpc.database.AbstractDatabaseMapping |
myProperty |
| Constructor Summary | |
ConstantDatabaseMapping(Property property,
java.lang.Object constant)
ConstantDatabaseMapping Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
This determines if two database mapping are equal. |
java.lang.Object |
getConstant()
Return the constant. |
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)
This only uses the result set to determine the number of times to add the constant to the list. |
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 gov.usda.gdpc.database.AbstractDatabaseMapping |
getProperty |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final java.lang.Object myConstant
| Constructor Detail |
public ConstantDatabaseMapping(Property property,
java.lang.Object constant)
property - associated property. null is creating a mapping
to use for matching against a property map.constant - constant| Method Detail |
public java.lang.Object getConstant()
public java.lang.String getSQLSubString(Filter filter,
ExtraInfo extraInfo)
getSQLSubString in interface DatabaseMappinggetSQLSubString in class AbstractDatabaseMappingfilter - filterextraInfo - this is not used by this database mapping
public java.util.List getJavaObjects(java.sql.ResultSet rs,
ExtraInfo extraInfo)
throws java.sql.SQLException
getJavaObjects in interface DatabaseMappinggetJavaObjects in class AbstractDatabaseMappingrs - result setextraInfo - this is not used by this database mapping
java.sql.SQLExceptionpublic SQLStatements getDistinctSQL()
getDistinctSQL in interface DatabaseMappinggetDistinctSQL in class AbstractDatabaseMappingpublic boolean equals(java.lang.Object obj)
obj - object to test
public java.lang.String toString()
toString in class AbstractDatabaseMapping
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||