|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pega.pegarules.pub.database.DatabaseInformation
public class DatabaseInformation
An immutable representation of a particular database's meta data.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static int |
DB_TYPE_APACHE
|
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 java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
DatabaseInformation(java.lang.String aProductName,
java.lang.String aProductVersion,
int aProductMajorVersion,
int aProductMinorVersion,
java.lang.String aDriverName,
java.lang.String aDriverVersion,
int aProductFamily,
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,
int aDriverMajorVersion,
int aDriverMinorVersion)
Creates driver information. |
Method Summary | |
---|---|
int |
getDatabaseType()
Returns the product family Type. |
java.lang.String |
getDefaultSchemaForConnection()
Gets the Default schema name for connection as defined in Data-Admin-DB-Name configuration |
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()
Gets the productName |
java.lang.String |
getProductVersion()
Gets the productVersion |
boolean |
isOracle()
|
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. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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, int aDriverMajorVersion, int aDriverMinorVersion)
aProductName
- the product nameaProductVersion
- the product versionaProductMajorVersion
- the product versionaProductMinorVersion
- the product versionaDriverName
- the driver nameaDriverVersion
- the driver versionaConfigProductName
- the cofigured product name - For SQL generationaDriverMajorVersion
- 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, int aDriverMajorVersion, int aDriverMinorVersion)
Method Detail |
---|
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 int getDriverMajorVersion()
public int getDriverMinorVersion()
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.2
public int getDatabaseType()
public void setUnicodeDatabase(boolean isUnicodeDatabase)
isUnicodeDatabase
- public boolean isUnicodeDatabase()
public int getMaxEncodedCharSize()
public void setMaxEncodedCharSize(int maxEncodedCharSize)
maxEncodedCharSize
- the mMaxUnicodeCharSize to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |