Package net.anwiba.commons.jdbc.software
Enum FileDatabaseSoftware
- java.lang.Object
-
- java.lang.Enum<FileDatabaseSoftware>
-
- net.anwiba.commons.jdbc.software.FileDatabaseSoftware
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FileDatabaseSoftware>,IDatabaseSoftware
public enum FileDatabaseSoftware extends java.lang.Enum<FileDatabaseSoftware> implements IDatabaseSoftware
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DERBYH2SPATIALITESQLITE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileDatabaseSoftwaregetByDriverNamw(java.lang.String driverName)static FileDatabaseSoftwaregetByUrl(java.lang.String url)java.lang.StringgetDefaultJdbcUrlPatternName()java.sql.DrivergetDriver()java.lang.StringgetDriverName()IJdbcPatterngetJdbcUrlPattern(java.lang.String name)java.util.List<IJdbcPattern>getJdbcUrlPatterns()intgetPort()java.lang.StringgetProtocol()booleanisApplicable()booleanisGisSupportApplicable()static FileDatabaseSoftwarevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FileDatabaseSoftware[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.anwiba.commons.jdbc.software.IDatabaseSoftware
name
-
-
-
-
Enum Constant Detail
-
DERBY
public static final FileDatabaseSoftware DERBY
-
SQLITE
public static final FileDatabaseSoftware SQLITE
-
SPATIALITE
public static final FileDatabaseSoftware SPATIALITE
-
H2
public static final FileDatabaseSoftware H2
-
-
Method Detail
-
values
public static FileDatabaseSoftware[] 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 (FileDatabaseSoftware c : FileDatabaseSoftware.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileDatabaseSoftware 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 namejava.lang.NullPointerException- if the argument is null
-
getDriver
public java.sql.Driver getDriver()
- Specified by:
getDriverin interfaceIDatabaseSoftware
-
getDriverName
public java.lang.String getDriverName()
- Specified by:
getDriverNamein interfaceIDatabaseSoftware
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocolin interfaceIDatabaseSoftware
-
getPort
public int getPort()
- Specified by:
getPortin interfaceIDatabaseSoftware
-
isApplicable
public boolean isApplicable()
- Specified by:
isApplicablein interfaceIDatabaseSoftware
-
isGisSupportApplicable
public boolean isGisSupportApplicable()
- Specified by:
isGisSupportApplicablein interfaceIDatabaseSoftware
-
getByUrl
public static FileDatabaseSoftware getByUrl(java.lang.String url)
-
getDefaultJdbcUrlPatternName
public java.lang.String getDefaultJdbcUrlPatternName()
- Specified by:
getDefaultJdbcUrlPatternNamein interfaceIDatabaseSoftware
-
getJdbcUrlPattern
public IJdbcPattern getJdbcUrlPattern(java.lang.String name)
- Specified by:
getJdbcUrlPatternin interfaceIDatabaseSoftware
-
getByDriverNamw
public static FileDatabaseSoftware getByDriverNamw(java.lang.String driverName)
-
getJdbcUrlPatterns
public java.util.List<IJdbcPattern> getJdbcUrlPatterns()
- Specified by:
getJdbcUrlPatternsin interfaceIDatabaseSoftware
-
-