com.metamatrix.vdb.materialization
Class DatabaseDialect

java.lang.Object
  extended by com.metamatrix.vdb.materialization.DatabaseDialect
All Implemented Interfaces:
java.io.Serializable

public final class DatabaseDialect
extends java.lang.Object
implements java.io.Serializable

Enumeration representing a type of database.

Since:
4.2
See Also:
Serialized Form

Field Summary
static DatabaseDialect CONNECTION_PROPS
           
static DatabaseDialect DB2
           
static DatabaseDialect METAMATRIX
           
static DatabaseDialect MYSQL
           
static DatabaseDialect ORACLE
           
static DatabaseDialect SQL_SERVER
           
static DatabaseDialect SYBASE
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static java.util.Collection getAllDialects()
          Get a collection of all known DatabaseDialects that may be iterated over, etc.
static DatabaseDialect getDatabaseDialect(java.lang.String type)
          Based on the Database type supplied get the dialect supported.
static DatabaseDialect getDatabaseDialectByDDLName(java.lang.String ddlName)
          Based on the Database type supplied get the dialect supported.
 java.lang.String getDriverClassname()
           
 java.lang.String getType()
          Get the named type of this DatabaseDialect.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ORACLE

public static final DatabaseDialect ORACLE

DB2

public static final DatabaseDialect DB2

SQL_SERVER

public static final DatabaseDialect SQL_SERVER

SYBASE

public static final DatabaseDialect SYBASE

MYSQL

public static final DatabaseDialect MYSQL

METAMATRIX

public static final DatabaseDialect METAMATRIX

CONNECTION_PROPS

public static final DatabaseDialect CONNECTION_PROPS
Method Detail

getType

public java.lang.String getType()
Get the named type of this DatabaseDialect.

Returns:
The named type.

getDriverClassname

public java.lang.String getDriverClassname()
Returns:
Returns the driverClassname.

getAllDialects

public static java.util.Collection getAllDialects()
Get a collection of all known DatabaseDialects that may be iterated over, etc.

Returns:
All known DatabaseDialect instances.
Since:
4.2

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
Since:
4.2
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Since:
4.2
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Since:
4.2
See Also:
Object.toString()

getDatabaseDialect

public static DatabaseDialect getDatabaseDialect(java.lang.String type)
Based on the Database type supplied get the dialect supported. If the type supplied not a registered dialect a null returned

Parameters:
type - - type of database like oracle, sqlserver, db2 mmx etc.
Returns:
dialect if match found; null otherwise.

getDatabaseDialectByDDLName

public static DatabaseDialect getDatabaseDialectByDDLName(java.lang.String ddlName)
Based on the Database type supplied get the dialect supported. If the type supplied not a registered dialect a null returned

Parameters:
type - - type of database like oracle, sqlserver, db2 mmx etc.
Returns:
dialect if match found; null otherwise.


Copyright © 2009. All Rights Reserved.