Package adams.db.quirks
Class AbstractDatabaseQuirks
- java.lang.Object
-
- adams.db.quirks.AbstractDatabaseQuirks
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
QuirksH2
,QuirksMSSQL
,QuirksMySQL
,QuirksPostgresSQL
,QuirksSQLite
public abstract class AbstractDatabaseQuirks extends Object implements Serializable
Ancestor for SQL quirks classes.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,AbstractDatabaseQuirks>
m_Cache
for caching types on URLs.protected static List<AbstractDatabaseQuirks>
m_Types
the available types.
-
Constructor Summary
Constructors Constructor Description AbstractDatabaseQuirks()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AbstractDatabaseQuirks
getHandler(String url)
Returns the handler for the JDBC url.abstract boolean
handles(String url)
Checks whether this URL is handled.abstract boolean
tableExistsChecksCatalog()
Whether theSQLIntf.tableExists(String)
method checks the catalog as well.
-
-
-
Field Detail
-
m_Cache
protected static Map<String,AbstractDatabaseQuirks> m_Cache
for caching types on URLs.
-
m_Types
protected static List<AbstractDatabaseQuirks> m_Types
the available types.
-
-
Method Detail
-
tableExistsChecksCatalog
public abstract boolean tableExistsChecksCatalog()
Whether theSQLIntf.tableExists(String)
method checks the catalog as well.- Returns:
- true if to check
-
handles
public abstract boolean handles(String url)
Checks whether this URL is handled.- Parameters:
url
- the URL to check- Returns:
- true if handled by this type class
-
getHandler
public static AbstractDatabaseQuirks getHandler(String url)
Returns the handler for the JDBC url.- Parameters:
url
- the URL- Returns:
- the handler, null if no support available
-
-