public enum DBFDataType extends Enum<DBFDataType>
Enum Constant and Description |
---|
AUTOINCREMENT
Autoincrement (same as long, dbase 7)
|
BINARY
Binary (data is stored in dbt file)
|
BLOB
Blob (VFP 9) (data is stored in fpt file)
|
CHARACTER
Character data, padded with whitespaces.
|
CURRENCY
Currency type (FoxPro)
|
DATE
Date
|
DOUBLE
Double value
|
FLOATING_POINT
Numeric data
|
GENERAL_OLE
OLE Objects (data is stored in dbt file)
|
LOGICAL
To store boolean values.
|
LONG
Numeric long (FoxPro)
|
MEMO
Memo (data is stored in dbt file)
|
NULL_FLAGS
Flags
|
NUMERIC
Numeric data
|
PICTURE
Picture (FoxPro, data is sotred in dbt file)
|
TIMESTAMP
Timestamp type (FoxPro)
|
TIMESTAMP_DBASE7
Timestamp type (dbase level 7)
|
UNKNOWN
Default unknown type
|
VARBINARY
Binary data
|
VARCHAR
Character data, not padded
|
Modifier and Type | Method and Description |
---|---|
static DBFDataType |
fromCode(byte code)
Gets the DBFDataType from the code used in the file
|
static DBFDataType |
fromCode(char code)
Gets the DBFDataType from the code used in the file
|
char |
getCharCode()
Gets the code as stored in the dbf file as character for display purposes.
|
byte |
getCode()
Gets the code as stored in the dbf file.
|
int |
getDefaultSize()
Gets the default size for this type
|
int |
getMaxSize()
Gets the maximum size for this type
|
int |
getMinSize()
Gets the minimum size for this type
|
boolean |
isWriteSupported()
Gets if JavaDBF can write this type
|
static DBFDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DBFDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBFDataType UNKNOWN
public static final DBFDataType CHARACTER
public static final DBFDataType VARCHAR
public static final DBFDataType VARBINARY
public static final DBFDataType DATE
public static final DBFDataType FLOATING_POINT
public static final DBFDataType DOUBLE
public static final DBFDataType LOGICAL
public static final DBFDataType MEMO
public static final DBFDataType BINARY
public static final DBFDataType BLOB
public static final DBFDataType GENERAL_OLE
public static final DBFDataType PICTURE
public static final DBFDataType NUMERIC
public static final DBFDataType LONG
public static final DBFDataType AUTOINCREMENT
public static final DBFDataType CURRENCY
public static final DBFDataType TIMESTAMP
public static final DBFDataType TIMESTAMP_DBASE7
public static final DBFDataType NULL_FLAGS
public static DBFDataType[] values()
for (DBFDataType c : DBFDataType.values()) System.out.println(c);
public static DBFDataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getCode()
public char getCharCode()
public int getMinSize()
public int getMaxSize()
public int getDefaultSize()
public boolean isWriteSupported()
public static DBFDataType fromCode(byte code)
code
- the code used by dbasepublic static DBFDataType fromCode(char code)
code
- the code used by dbaseCopyright © 2021. All rights reserved.