public enum JdbcDatabaseType extends Enum<JdbcDatabaseType>
Enum Constant and Description |
---|
hsqldb
hsql
|
mysql
mysql db
|
oracle
oracle db
|
postgres
postgres
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
columnAliases(String fromClause)
get the column aliases from a query select a,b,c from
|
abstract boolean |
matchesUrlDefinitely(String url) |
abstract boolean |
matchesUrlMaybe(String url) |
abstract String |
pageQuery(String query,
int pageSize)
change a query into a paging query
|
static JdbcDatabaseType |
resolveDatabaseType(Connection connection)
return the database type for this connection or null
|
static String |
selectPart(String query)
get the select part from a query
|
static JdbcDatabaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JdbcDatabaseType |
valueOfIgnoreCase(String string,
boolean exceptionOnNull)
do a case-insensitive matching
|
static JdbcDatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JdbcDatabaseType oracle
public static final JdbcDatabaseType mysql
public static final JdbcDatabaseType postgres
public static final JdbcDatabaseType hsqldb
public static JdbcDatabaseType[] values()
for (JdbcDatabaseType c : JdbcDatabaseType.values()) System.out.println(c);
public static JdbcDatabaseType 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 static JdbcDatabaseType resolveDatabaseType(Connection connection)
connection
- public static List<String> columnAliases(String fromClause)
fromClause
- public static String selectPart(String query)
query
- public abstract String pageQuery(String query, int pageSize)
query
- pageSize
- public abstract boolean matchesUrlDefinitely(String url)
url
- public abstract boolean matchesUrlMaybe(String url)
url
- public static JdbcDatabaseType valueOfIgnoreCase(String string, boolean exceptionOnNull)
string
- exceptionOnNull
- will not allow null or blank entriesCopyright © 2016 Internet2. All rights reserved.