public class DatabaseInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
DB_TYPE_APACHE |
static int |
DB_TYPE_CASSANDRA |
static int |
DB_TYPE_COUCHBASE |
static int |
DB_TYPE_DB2UDB |
static int |
DB_TYPE_DB2ZOS |
static int |
DB_TYPE_GENERIC
Constants that define the DB family
|
static int |
DB_TYPE_MSSQL |
static int |
DB_TYPE_ORACLE |
static int |
DB_TYPE_POSTGRES |
static int |
DB_TYPE_TERADATA |
static java.lang.String |
VERSION |
Constructor and Description |
---|
DatabaseInformation(java.lang.String aProductName,
java.lang.String aProductVersion,
int aProductMajorVersion,
int aProductMinorVersion,
java.lang.String aDriverName,
java.lang.String aDriverVersion,
int aProductFamily,
java.lang.String aDelimiter,
int aDriverMajorVersion,
int aDriverMinorVersion) |
DatabaseInformation(java.lang.String aProductName,
java.lang.String aProductVersion,
int aProductMajorVersion,
int aProductMinorVersion,
java.lang.String aDriverName,
java.lang.String aDriverVersion,
java.lang.String aConfigProductName,
java.lang.String aDelimiter,
int aDriverMajorVersion,
int aDriverMinorVersion)
Creates driver information.
|
Modifier and Type | Method and Description |
---|---|
int |
getDatabaseType()
Returns the product family Type.
|
java.lang.String |
getDefaultSchemaForConnection()
Deprecated.
|
java.lang.String |
getDelimiter()
Gets the string delimiter
|
int |
getDriverMajorVersion()
Gets the driverMajorVersion
|
int |
getDriverMinorVersion()
Gets the driverMinorVersion
|
java.lang.String |
getDriverName()
Gets the driverName
|
java.lang.String |
getDriverVersion()
Gets the driverVersion
|
int |
getMaxEncodedCharSize()
returns the max size of char in bytes, that it takes to write to database,If PRPC database is Unicode
|
int |
getProductMajorVersion()
Gets the productMajorVersion
|
int |
getProductMinorVersion()
Gets the productMinorVersion
|
java.lang.String |
getProductName() |
java.lang.String |
getProductVersion()
Gets the productVersion
|
boolean |
isDB2UDB()
Checks whether this database is db2 luw
|
boolean |
isMSSQL()
Checks whether this database is Microsoft SQL Server.
|
boolean |
isOracle() |
boolean |
isPostgres()
Checks whether this database is Postgres.
|
boolean |
isUnicodeDatabase()
Returns if PRPC database instance is UNICODE or Not
|
boolean |
isVersionAtLeast(java.lang.String aMinimunVersion)
Determines if the version number is at least the given version number.
|
boolean |
isZOS()
Checks whether this database is db2 z/os.
|
void |
setDefaultSchemaForConnection(java.lang.String aDefaultSchemaForConnection)
Sets the Default schema name for connection as defined in Data-Admin-DB-Name configuration
this method is called from DatabaseInformationImpl explicitly to set the default schema name,
The call from DatabaseInformationImpl is needed because mProductFamily is set only in this class.
|
void |
setMaxEncodedCharSize(int maxEncodedCharSize)
If PRPC database is Unicode, then max size of char in bytes, that it takes to write to database
|
void |
setUnicodeDatabase(boolean isUnicodeDatabase)
Sets if PRPC database instance is UNICODE or Not
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public static final int DB_TYPE_GENERIC
public static final int DB_TYPE_MSSQL
public static final int DB_TYPE_DB2UDB
public static final int DB_TYPE_DB2ZOS
public static final int DB_TYPE_ORACLE
public static final int DB_TYPE_APACHE
public static final int DB_TYPE_POSTGRES
public static final int DB_TYPE_TERADATA
public static final int DB_TYPE_COUCHBASE
public static final int DB_TYPE_CASSANDRA
public DatabaseInformation(java.lang.String aProductName, java.lang.String aProductVersion, int aProductMajorVersion, int aProductMinorVersion, java.lang.String aDriverName, java.lang.String aDriverVersion, java.lang.String aConfigProductName, java.lang.String aDelimiter, int aDriverMajorVersion, int aDriverMinorVersion)
aProductName
- the product nameaProductVersion
- the product versionaProductMajorVersion
- the product versionaProductMinorVersion
- the product versionaDriverName
- the driver nameaDriverVersion
- the driver versionaConfigProductName
- the configured product name - For SQL generationaDelimiter
- the SQL delimiter for quoting column namesaDriverMajorVersion
- the driver major versionaDriverMinorVersion
- the driver minor versionpublic DatabaseInformation(java.lang.String aProductName, java.lang.String aProductVersion, int aProductMajorVersion, int aProductMinorVersion, java.lang.String aDriverName, java.lang.String aDriverVersion, int aProductFamily, java.lang.String aDelimiter, int aDriverMajorVersion, int aDriverMinorVersion)
public java.lang.String getProductName()
public java.lang.String getProductVersion()
public int getProductMajorVersion()
public int getProductMinorVersion()
public java.lang.String getDriverName()
public java.lang.String getDriverVersion()
public java.lang.String getDelimiter()
public int getDriverMajorVersion()
public int getDriverMinorVersion()
@Deprecated public java.lang.String getDefaultSchemaForConnection()
public void setDefaultSchemaForConnection(java.lang.String aDefaultSchemaForConnection)
aDefaultSchemaForConnection
- the schema name to setpublic boolean isOracle()
public boolean isVersionAtLeast(java.lang.String aMinimunVersion)
aMinimunVersion
- - a string representation of the desired minimum version
can be dot seperated - i.e. 10.2public int getDatabaseType()
public boolean isMSSQL()
public boolean isPostgres()
public boolean isZOS()
public boolean isDB2UDB()
public void setUnicodeDatabase(boolean isUnicodeDatabase)
isUnicodeDatabase
- public boolean isUnicodeDatabase()
public int getMaxEncodedCharSize()
public void setMaxEncodedCharSize(int maxEncodedCharSize)
maxEncodedCharSize
- the mMaxUnicodeCharSize to setCopyright © 2018 Pegasystems Inc. All Rights Reserved.