public class SqlFieldTime extends SqlField
BOOL, DATE, JCOMBOBOXB, JCOMBOBOXD, JCOMBOBOXDC, JCOMBOBOXENUMB, JCOMBOBOXENUMD, JCOMBOBOXENUMDC, JCOMBOBOXENUMF, JCOMBOBOXENUMI, JCOMBOBOXENUML, JCOMBOBOXENUMP, JCOMBOBOXENUMS, JCOMBOBOXENUMTM, JCOMBOBOXENUMTS, JCOMBOBOXF, JCOMBOBOXI, JCOMBOBOXL, JCOMBOBOXP, JCOMBOBOXS, JCOMBOBOXTM, JCOMBOBOXTS, PHONENO, TEXT, TEXTDOUBLE, TEXTFLOAT, TEXTINT, TEXTLONG, TEXTPSWD, TIME, TIMESTAMP
Constructor | Description |
---|---|
SqlFieldTime(JTime jt,
java.lang.String colName) |
Initialization
|
SqlFieldTime(JTime jt,
java.util.GregorianCalendar defaultGC,
java.lang.String colName) |
Initialization
|
Modifier and Type | Method | Description |
---|---|---|
java.util.GregorianCalendar |
getCalendar() |
Get Time
|
java.lang.String |
getCalendarString() |
Get time
|
java.lang.String |
getCalendarStringShort() |
Get shortened time string
|
java.lang.String |
getSqlPutSnippet() |
Get SQL code with data
|
java.lang.String |
presentData(java.lang.String in) |
Format time output
|
void |
resetField() |
Reset string to default
|
void |
setCalendar(java.lang.String gcs) |
Set time
|
void |
setCalendar(java.util.Date date) |
Set time
|
void |
setCalendar(java.util.GregorianCalendar gc) |
Set time
|
void |
setEnableEdit(boolean enableEdit) |
Enable/disable editing of the field
|
void |
setField(java.sql.ResultSet rs) |
Set time from a resultSet
|
java.lang.String |
toString() |
Get data type and data
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldTime(JTime jt, java.lang.String colName)
jt
- colName
- public SqlFieldTime(JTime jt, java.util.GregorianCalendar defaultGC, java.lang.String colName)
jt
- defaultGC
- colName
- public java.util.GregorianCalendar getCalendar()
public java.lang.String getCalendarString()
public java.lang.String getCalendarStringShort()
public java.lang.String getSqlPutSnippet()
getSqlPutSnippet
in class SqlField
public java.lang.String presentData(java.lang.String in)
presentData
in class SqlField
in
- public java.lang.String toString()
public void resetField()
resetField
in class SqlField
public void setCalendar(java.util.Date date)
date
- public void setCalendar(java.util.GregorianCalendar gc)
gc
- public void setCalendar(java.lang.String gcs)
gcs
- public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
-