Package com.healthmarketscience.jackcess
Enum Database.FileFormat
- java.lang.Object
-
- java.lang.Enum<Database.FileFormat>
-
- com.healthmarketscience.jackcess.Database.FileFormat
-
- All Implemented Interfaces:
Serializable,Comparable<Database.FileFormat>
- Enclosing interface:
- Database
public static enum Database.FileFormat extends Enum<Database.FileFormat>
Enum which indicates which version of Access created the database.- Usage:
- General: This class is general use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GENERIC_JET4A database which was most likely created programmatically (e.g. using windows ADOX)MSISAMA database which was created by MS MoneyV1997A database which was created by MS Access 97V2000A database which was created by MS Access 2000V2003A database which was created by MS Access 2002/2003V2007A database which was created by MS Access 2007V2010A database which was created by MS Access 2010+V2016A database which was created by MS Access 2016+V2019A database which was created by MS Access 2019+ (Office 365)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileExtension()StringtoString()static Database.FileFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static Database.FileFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1997
public static final Database.FileFormat V1997
A database which was created by MS Access 97
-
GENERIC_JET4
public static final Database.FileFormat GENERIC_JET4
A database which was most likely created programmatically (e.g. using windows ADOX)
-
V2000
public static final Database.FileFormat V2000
A database which was created by MS Access 2000
-
V2003
public static final Database.FileFormat V2003
A database which was created by MS Access 2002/2003
-
V2007
public static final Database.FileFormat V2007
A database which was created by MS Access 2007
-
V2010
public static final Database.FileFormat V2010
A database which was created by MS Access 2010+
-
V2016
public static final Database.FileFormat V2016
A database which was created by MS Access 2016+
-
V2019
public static final Database.FileFormat V2019
A database which was created by MS Access 2019+ (Office 365)
-
MSISAM
public static final Database.FileFormat MSISAM
A database which was created by MS Money
-
-
Method Detail
-
values
public static Database.FileFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Database.FileFormat c : Database.FileFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Database.FileFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFileExtension
public String getFileExtension()
- Returns:
- the file extension used for database files with this format.
-
toString
public String toString()
- Overrides:
toStringin classEnum<Database.FileFormat>
-
-