org.sqlite.jdbc
Enum Scheme

java.lang.Object
  extended by java.lang.Enum<Scheme>
      extended by org.sqlite.jdbc.Scheme
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Scheme>

public enum Scheme
extends java.lang.Enum<Scheme>

JDBC URL Schemes.


Enum Constant Summary
JDBC_SQLITE
          JDBC URL Scheme "jdbc:sqlite:".
JDBC_SQLITE_FILE
          JDBC URL Scheme "jdbc:sqlite:file:".
JDBC_SQLITE_MEMORY
          JDBC URL Scheme "jdbc:sqlite:mem:".
 
Method Summary
 boolean matches(java.lang.String url)
           
 java.util.Map<java.lang.String,java.lang.String> parse(java.lang.String url)
           
 java.lang.String toString()
           
static Scheme valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Scheme[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JDBC_SQLITE_FILE

public static final Scheme JDBC_SQLITE_FILE
JDBC URL Scheme "jdbc:sqlite:file:".


JDBC_SQLITE_MEMORY

public static final Scheme JDBC_SQLITE_MEMORY
JDBC URL Scheme "jdbc:sqlite:mem:".


JDBC_SQLITE

public static final Scheme JDBC_SQLITE
JDBC URL Scheme "jdbc:sqlite:".

Method Detail

values

public static final Scheme[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Scheme c : Scheme.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Scheme valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Scheme>

matches

public boolean matches(java.lang.String url)

parse

public java.util.Map<java.lang.String,java.lang.String> parse(java.lang.String url)