public class SqlFieldLong 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 |
---|---|
SqlFieldLong(javax.swing.JTextField tf,
long defaultLong,
java.lang.String colName) |
Initialization
|
SqlFieldLong(javax.swing.JTextField tf,
java.lang.String colName) |
Initialization
|
Modifier and Type | Method | Description |
---|---|---|
long |
getLong() |
Get long value
|
java.lang.String |
getSqlPutSnippet() |
Get SQLSnippet String
|
java.lang.String |
presentData(java.lang.String in) |
Get long
|
void |
resetField() |
Reset data to default
|
void |
setEnableEdit(boolean enableEdit) |
Set enable/disable edit
|
void |
setField(java.sql.ResultSet rs) |
Set data from ResultSet
|
void |
setLong(long l) |
Set data
|
void |
setLong(java.lang.String ls) |
Set data
|
java.lang.String |
toString() |
Get data type and value
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldLong(javax.swing.JTextField tf, java.lang.String colName)
tf
- colName
- public SqlFieldLong(javax.swing.JTextField tf, long defaultLong, java.lang.String colName)
tf
- defaultLong
- colName
- public long getLong()
public java.lang.String getSqlPutSnippet()
getSqlPutSnippet
in class SqlField
public java.lang.String presentData(java.lang.String in)
presentData
in class SqlField
public java.lang.String toString()
public void resetField()
resetField
in class SqlField
public void setField(java.sql.ResultSet rs)
public void setLong(long l)
l
- public void setLong(java.lang.String ls)
ls
- public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
-