API Overview
API Index
Package Overview
Direct link to this page
JavaOnTracks 0.1.2
net.jot.db.
JOTDBField
View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
Object
JOTDBField
Implements
Subclasses
See DIRECT subclasses
Quick Links:
Constructors
Methods
Fields
NestedClasses
Description
public
class JOTDBField
Represents a Database Field(column).
See also:
Constructors
public
JOTDBField
(
String
fieldType)
public
JOTDBField
(
String
fieldType,
String
fieldName)
Methods
Hide/Show inherited methods
public
void
debug
()
Prints field informations to logger, for debugging purposes
public
static
String
getCleanFieldName
(
String
fieldName)
public
String
getDefaultValue
()
public
String
getFieldName
()
public
String
getFieldType
()
public
int
getMaxLength
()
public
int
getMaxValue
()
public
int
getMinLength
()
public
int
getMinValue
()
public
int
getSize
()
Returns the field size/length
Returns the field size/length
Returns:
public
static
Hashtable
getTypes
()
Hashtable of all defined field types
Hashtable of all defined field types
Returns:
public
void
setDefaultValue
(
String
defaultValue)
Default value for when the field (database default value)
Default value for when the field (database default value)
Parameters:
-
defaultValue
-
public
void
setFieldName
(
String
fieldName)
public
void
setFieldType
(
String
fieldType)
public
void
setMaxLength
(
int
maxLength)
public
void
setMaxValue
(
int
maxValue)
public
void
setMinLength
(
int
minLength)
public
void
setMinValue
(
int
minValue)
public
void
setSize
(
int
size)
Sets the field size/length
Sets the field size/length
Parameters:
-
size
-
Fields
Hide/Show inherited fields
pack-private
String
fieldName
pack-private
String
fieldType
pack-private
int
maxLength
pack-private
int
maxValue
pack-private
int
minLength
pack-private
int
minValue
pack-private
int
size
public
final
static
String
TYPE_BIGINT
= "BIGINT"
public
final
static
String
TYPE_BIT
= "BIT"
public
final
static
String
TYPE_DATE
= "DATE"
public
final
static
String
TYPE_DECIMAL
= "DECIMAL"
public
final
static
String
TYPE_DOUBLE
= "DOUBLE"
public
final
static
String
TYPE_FLOAT
= "FLOAT"
public
final
static
String
TYPE_INTEGER
= "INTEGER"
public
final
static
String
TYPE_SMALLINT
= "SMALLINT"
public
final
static
String
TYPE_TIME
= "TIME"
public
final
static
String
TYPE_TIMESTAMP
= "TIMESTAMP"
public
final
static
String
TYPE_TINYINT
= "TINYINT"
public
final
static
String
TYPE_VARCHAR
= "VARCHAR"
public
static
Hashtable
types
Nested Classes
Generated By:
JavaOnTracks Doclet
0.1.5 ©Thibaut Colar