|
SAP NetWeaver 7.30 (SP05) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.sql.DatabaseServices
public class DatabaseServices
A collection of services and utilities regarding the database server.
| Field Summary | |
|---|---|
static int |
SQL_TYPE_NATIVE_SQL
SQL processor of type Native SQL |
static int |
SQL_TYPE_OPEN_SQL
SQL processor of type Open SQL |
static int |
SQL_TYPE_VENDOR_SQL
SQL processor of type Vendor SQL |
| Method Summary | |
|---|---|
static CheckerFactory |
createCheckerFactory()
|
static com.sap.sql.catalog.DictionaryReader |
getDictionaryReader(Connection connection)
Gets a DictionaryReader object which
provides metadata access to the database objects defined in the
Dictionary. |
static int |
getSQLType(Connection connection)
Returns the SQL processor type (open, native, vendor) of the given database connection. |
static Timestamp |
getUTCTimestamp(Connection connection)
Returns the current UTC time on the DB server as a Timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SQL_TYPE_OPEN_SQL
public static final int SQL_TYPE_NATIVE_SQL
public static final int SQL_TYPE_VENDOR_SQL
| Method Detail |
|---|
public static Timestamp getUTCTimestamp(Connection connection)
throws SQLException
This time is represented by the number of milliseconds since January 1, 1970, 00:00:00 GMT and can be obtained by calling method getTime() on the returned timestamp.
connection - a database connection
SQLException - if a database error occurs
public static com.sap.sql.catalog.DictionaryReader getDictionaryReader(Connection connection)
throws SQLException
DictionaryReader object which
provides metadata access to the database objects defined in the
Dictionary.
The Connection object specified must identify a valid
database connection to an Open SQL data source. The life-cycle of
DictionaryReader object returned is coupled with
the life-cycle of the database connection.
connection - a database connection to an Open SQL data source
DictionaryReader object which provides metadata access
to the database objects defined in the Dictionary
SQLException - if a database error occurspublic static CheckerFactory createCheckerFactory()
public static int getSQLType(Connection connection)
throws SQLException
The result is one of the constants SQL_TYPE_* defined above.
connection - a database connection
SQLException - if an error occurs| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/je/opensql/api
|
api
|
BC-JAS
|
[sap.com] ENGINEAPI
|
[sap.com]
|
default
|
BC-JAS-PER-SQL
|
[sap.com] CORE-TOOLS
|
[sap.com]
|
default
|
BC-JAS
|
|
SAP NetWeaver 7.30 (SP05) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||