|
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.CharacterColumnDescriptor
A descriptor for a character column.
| Field Summary | |
protected int |
fieldwidth
field width of this column. |
| Constructor Summary | |
CharacterColumnDescriptor(java.lang.String n,
int f)
Create a new descriptor for a character of varchar column |
|
| Method Summary | |
protected java.lang.String |
format(Context c)
Format a character field for sending to the database. |
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.Object |
genKey(Context c)
generate a new unique key for me given this context |
protected java.lang.String |
getRandomKey()
Generate a random sequence of lower case characters to fill the field |
| Methods inherited from class uk.co.weft.dbutil.ColumnDescriptor |
createColumnDescriptor, formatForInsert, formatForSelect, formatForUpdate, interpret, quoteValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int fieldwidth
| Constructor Detail |
public CharacterColumnDescriptor(java.lang.String n,
int f)
n - the name of this columnf - the fieldwidth of this column| Method Detail |
protected java.lang.String getRandomKey()
protected java.lang.String format(Context c)
throws DataFormatException
format in class ColumnDescriptorDataFormatException
protected java.lang.String formatForMatch(Context c)
throws DataFormatException
formatForMatch in class ColumnDescriptorDataFormatException
protected java.lang.String formatForMatch(Context c,
boolean exact)
throws DataFormatException
formatForMatch in class ColumnDescriptorc - the context to matchexact - whether or not an exact match is required
DataFormatException
protected java.lang.Object genKey(Context c)
throws DataStoreException
genKey in class ColumnDescriptorthrows - DataStoreException if a unique key could not be
generated If the field contains numeric values, use the
next one. if it does not, generate a random sequence of
characters and make sure it's unique.
DataStoreException
|
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 | |||||||||