com.healthmarketscience.jackcess
Enum Database.FileFormat

java.lang.Object
  extended by java.lang.Enum<Database.FileFormat>
      extended by 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
GENERIC_JET4
          A database which was most likely created programmatically (e.g.
MSISAM
          A database which was created by MS Money
V1997
          A database which was created by MS Access 97
V2000
          A database which was created by MS Access 2000
V2003
          A database which was created by MS Access 2002/2003
V2007
          A database which was created by MS Access 2007
V2010
          A database which was created by MS Access 2010+
 
Method Summary
 String getFileExtension()
           
 String toString()
           
static Database.FileFormat valueOf(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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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+


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 name
NullPointerException - 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:
toString in class Enum<Database.FileFormat>


Copyright © 2005–2016 Health Market Science. All rights reserved.