|
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
A cache to hold the essential features of a database column. In effect, a hack.
| Constructor Summary | |
ColumnDescriptor()
|
|
| Method Summary | |
static ColumnDescriptor |
createColumnDescriptor(int type,
java.lang.String name,
int size,
int precision,
int nullable)
create an appropriate ColumnDescriptor for this type with these data |
protected java.lang.String |
format(Context c)
format the value of my name in this context as a datatype of the appropriate kind for splicing into this column in a SQL query. |
protected java.lang.String |
formatForInsert(Context c)
Deprecated. this has actually never worked as advertised and is wrong - probably for all purposes - but it has been in the toolkit so long that it is possible that some applications out there depend on its wrong behaviour, so this has not been corrected. If you are using it, consider formatForSelect( Context) instead. |
protected java.lang.String |
formatForMatch(Context c)
Deprecated. use #formatForMatch(Context,boolean) |
protected java.lang.String |
formatForMatch(Context c,
boolean exact)
format me appropriately for use in the select operation of a match query. |
protected java.lang.String |
formatForSelect(Context c)
format me appropriately for use in a select query or in the 'where' clause (not the 'update' clause) of an update query. |
protected java.lang.String |
formatForUpdate(Context c)
format me appropriately for use in the 'update' clause (not the 'where' clause) of an update query. |
protected java.lang.Object |
genKey(Context c)
generate a new unique key for me given this context |
protected java.lang.Object |
interpret(Context context,
java.sql.ResultSet results)
put into this context an interpretation of the value of my name in these results. |
protected java.lang.String |
quoteValue(java.lang.String s)
enclose a string in single quote marks, escaping any embedded single quotes Keek this in sync with ClobColumnDescriptor.format() fun with quotes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ColumnDescriptor()
| Method Detail |
public static ColumnDescriptor createColumnDescriptor(int type,
java.lang.String name,
int size,
int precision,
int nullable)
throws DataFormatException
DataFormatException
protected java.lang.String format(Context c)
throws DataFormatException
DataFormatException
protected java.lang.String formatForInsert(Context c)
throws DataFormatException
c - context in which to find my value
DataFormatException - if anything goes wrong (this class does
not throw it but specialisations may)
protected java.lang.String formatForMatch(Context c)
throws DataFormatException
DataFormatException
protected java.lang.String formatForMatch(Context c,
boolean exact)
throws DataFormatException
c - the context to matchexact - whether or not an exact match is required
DataFormatException
protected java.lang.String formatForSelect(Context c)
throws DataFormatException
c - context in which to find my value
DataFormatException - if anything goes wrong (this class does
not throw it but specialisations may)
protected java.lang.String formatForUpdate(Context c)
throws DataFormatException
c - context in which to find my value
DataFormatException - if anything goes wrong (this class does
not throw it but specialisations may)
protected java.lang.Object genKey(Context c)
throws DataStoreException
throws - DataStoreException if a unique key could not be
generated
DataStoreException
protected java.lang.Object interpret(Context context,
java.sql.ResultSet results)
throws DataFormatException
DataFormatExceptionprotected java.lang.String quoteValue(java.lang.String s)
s - the unquoted string
ClobColumnDescriptor.format(Context)
|
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 | |||||||||