public static class DataResultSet.Field extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataResultSet.Field.Type
All available types of field.
|
Constructor and Description |
---|
Field(String name)
Construct a field with the given name
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getMaxLen()
return maximum length of field in characters when translated to a string if field
is fixed length.
|
String |
getName()
return the name of the field
|
int |
getScale()
return the scale for DECIMAL field
|
DataResultSet.Field.Type |
getType()
return the field type (corresponds to an intersection of MS Access and JDBC field types).
|
int |
hashCode() |
boolean |
isFixedLen()
true if field has a maximum length when translated to a string.
|
void |
setFixedLen(boolean fixedLen)
set FixedLen which is a maximum length when translated to a string.
|
void |
setMaxLen(int maxLen)
set MaxLen which is maximum length of field in characters when translated to a string if field
is fixed length.
|
void |
setName(String name) |
void |
setScale(int scale)
set the scale for DECIMAL field
|
void |
setType(DataResultSet.Field.Type type)
set type
|
public Field(String name)
name
- the field namepublic String getName()
public void setName(String name)
public DataResultSet.Field.Type getType()
public void setType(DataResultSet.Field.Type type)
type
- the field type (corresponds to an intersection of MS Access and JDBC field types).public boolean isFixedLen()
public void setFixedLen(boolean fixedLen)
fixedLen
- true if field has a maximum length when translated to a string.public int getMaxLen()
public void setMaxLen(int maxLen)
maxLen
- maximum length of field in characters when translated to a string if field
is fixed length.public int getScale()
public void setScale(int scale)
scale
- the scale to be set for a DECIMAL field