|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.util.DataBaseIdentifier
This class identifies a DtaSource giveen a pt.moredata.dao.DataSource. Company MoreData
| Field Summary | |
static int |
INFORMIX_DATABASE
Informix data base. |
static int |
MYSQL_DATABASE
MySQL database. |
static int |
ORACLE_DATABASE
Oracle database. |
static int |
POSTGRESQL_DATABASE
PostgreSQL database. |
static int |
SERIALIZED_FILE
|
static int |
UNKNOWN_DATABASE
Unknown database. |
| Method Summary | |
int |
getIdentification(java.sql.Connection connection)
Identifies a Database from a Connection object. |
int |
getIdentification(DataSource dataSource)
Identifies a Database from a DataSource object. |
java.lang.String |
getName(DataSource dataSource)
Identifies the name of the Database from a DataSource object. |
static DataBaseIdentifier |
instance()
Devolve a instancia (singleton) do DataBaseIdentifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UNKNOWN_DATABASE
public static final int SERIALIZED_FILE
public static final int INFORMIX_DATABASE
public static final int ORACLE_DATABASE
public static final int MYSQL_DATABASE
public static final int POSTGRESQL_DATABASE
| Method Detail |
public static DataBaseIdentifier instance()
public int getIdentification(DataSource dataSource)
dataSource - The DataSource object.
public int getIdentification(java.sql.Connection connection)
connection - The database connection.
public java.lang.String getName(DataSource dataSource)
dataSource - The DataSource object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||