|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.weft.dbutil.ColumnDescriptor
uk.co.weft.dbutil.DateColumnDescriptor
A descriptor for an date column.
NoteOn SQL Server 2000, the language definred for the logins controls the way in which dates are formatted for that user and if the dates don't format as we expect DateColumnDescriptor will fail to interpret them correctly.
If the language is set to 'English' (as opposed to either 'US English' or 'British English') the date collation works.
| Constructor Summary | |
DateColumnDescriptor(java.lang.String n)
Creates a new DateColumnDescriptor object. |
|
| Method Summary | |
protected java.lang.String |
format(Context c)
Format a date for sending to this column in the database. |
protected java.lang.Object |
interpret(Context context,
java.sql.ResultSet results)
put into this context an interpretation of the value of my name as a date in these results. |
| Methods inherited from class uk.co.weft.dbutil.ColumnDescriptor |
createColumnDescriptor, formatForInsert, formatForMatch, formatForMatch, formatForSelect, formatForUpdate, genKey, quoteValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DateColumnDescriptor(java.lang.String n)
n - name| Method Detail |
protected java.lang.String format(Context c)
throws DataFormatException
format in class ColumnDescriptorc - a context in which a value may be found
throws - DataFormatException if value is null and column is
not nullable
DataFormatException
protected java.lang.Object interpret(Context context,
java.sql.ResultSet results)
throws DataFormatException
interpret in class ColumnDescriptorDataFormatException
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||