public class SqlFieldTimeStamp 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 |
---|---|
SqlFieldTimeStamp(JTimeStamp jt,
java.lang.String colName) |
Initialization
|
SqlFieldTimeStamp(JTimeStamp jt,
java.util.GregorianCalendar defaultGC,
java.lang.String colName) |
Initialization
|
Modifier and Type | Method | Description |
---|---|---|
java.util.GregorianCalendar |
getCalendar() |
Get timestamp
|
java.lang.String |
getCalendarString() |
Get timestamp
|
java.lang.String |
getCalendarStringShort() |
Get timestamp short
|
java.lang.String |
getSqlPutSnippet() |
Get SQL code
|
java.lang.String |
presentData(java.lang.String in) |
Return formatted timestamp
|
void |
resetField() |
Reset timestamp to default
|
void |
setCalendar(java.lang.String gcs) |
Set timestamp
|
void |
setCalendar(java.util.Date date) |
Set timestamp
|
void |
setCalendar(java.util.GregorianCalendar gc) |
Set timestamp
|
void |
setEnableEdit(boolean enableEdit) |
Enable/Disable editing timestamp
|
void |
setField(java.sql.ResultSet rs) |
Set timestamp from ResultSet
|
java.lang.String |
toString() |
Return data type and timestamp
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldTimeStamp(JTimeStamp jt, java.lang.String colName)
jt
- colName
- public SqlFieldTimeStamp(JTimeStamp 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 setField(java.sql.ResultSet rs)
public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
-