|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PropertySet
This interface provides the functionality for maintaining connection-specific configuration properties. A driver can set, read and modify these properties. Depending on the property, the initial value of each property is set in one of the following ways:
.sbo file, or cs.cfg if not defined in the
driver's .sbo file..sbo file or the database
middleware, and assign an initial value to the parameter if you require it.
| Field Summary | |
|---|---|
static java.lang.String |
ARRAY_BIND_SIZE
Integer property that specifies the recommended Array Bind Size. |
static java.lang.String |
ARRAY_FETCH_SIZE
Integer property that specifies how many rows are retrieved from the datasource each time a fetch is performed. |
static java.lang.String |
AUTOCONNECT
Boolean property that specifies if the Data Access layer must establish a physical connection immediately, or wait for the first SQL statement before establishing a connection. |
static java.lang.String |
CATALOG_SEPARATOR
String property that specifies the catalog separator used to separate data items. |
static java.lang.String |
COLUMN_NAME_SIZE
Integer property that specifies the maximum size for a column name. |
static java.lang.String |
CONNECTION_SHAREABLE
Boolean property that specifies if it is possible to share connections to a data source. |
static java.lang.String |
COST_ESTIMATE_AVAILABLE
Boolean property that indicates if the driver supports performing cost estimate on queries. |
static java.lang.String |
DBMS
String property that specifies the database type used to connect to the data source. |
static java.lang.String |
FOREIGNKEYS_AVAILABLE
Boolean property that specifies if it is possible to retrieve a list of the foreign keys available from the data source. |
static java.lang.String |
HINT
String property that specifies a hint to the SQL optimizer. |
static java.lang.String |
IDENTIFIER_CASE
String property that specifies the case behavior of identifiers. |
static java.lang.String |
IDENTIFIER_QUOTE_STRING
String property that specifies the identifier quote string. |
static java.lang.String |
LIKE_ESCAPE_CLAUSE
String property that specifies the LIKE clause escape character. |
static java.lang.String |
LOG_TIMEOUT
Integer property that specifies the maximum number of seconds for a login request before the request fails. |
static java.lang.String |
MAX_ROWS
Integer property that sets the maximum number of rows that can be retrieved from the data source. |
static java.lang.String |
NETWORKLAYER
String property that specifies the network layer used to connect to the data source. |
static java.lang.String |
OWNER_NAME_SIZE
Integer property that specifies the maximum size for the name of an owner. |
static java.lang.String |
OWNERS_AVAILABLE
Boolean property that specifies if the data source supports owners. |
static java.lang.String |
PASSWORD_ENCRYPTION
Boolean property that specifies if the password must be encrypted. |
static java.lang.String |
PERFORM_COST_ESTIMATE
Boolean property that specifies if the driver must perform cost estimate on queries. |
static java.lang.String |
POOL_TIME
Integer property that specifies the number of minutes a connection will be kept alive in the Connection Pool. |
static java.lang.String |
PRIMARYKEY_AVAILABLE
Boolean property that specifies if it is possible to retrieve the primary key from the data source. |
static java.lang.String |
QUALIFIER_NAME_SIZE
Integer property that specifies the maximum size for the name of a qualifier. |
static java.lang.String |
QUALIFIERS_AVAILABLE
Boolean property that specifies if the data source supports qualifiers. |
static java.lang.String |
QUERY_TIMEOUT
Integer property that specifies the maximum number of seconds to wait for any request on the connection to complete before returning to the application. |
static java.lang.String |
QUOTED_IDENTIFIER
Boolean property that specifies if a datasource supports quoted identifiers. |
static java.lang.String |
QUOTED_IDENTIFIER_CASE
String property that specifies the case behavior of quoted identifiers. |
static java.lang.String |
SEARCH_PATTERN_ESCAPE
String property that specifies the SEARCH clause escape character. |
static java.lang.String |
SHARED_CONNECTION
Boolean property that specifies whether or not connections to the data source are shared for this driver. |
static java.lang.String |
TABLE_NAME_SIZE
Integer property that specifies the maximum size for a table name. |
static java.lang.String |
TRANSACTION_TYPE
String property that specifies the transaction type. |
static java.lang.String |
XML_MAX_SIZE
Integer property that specifies the maximum size for an XML column. |
| Method Summary | |
|---|---|
boolean |
getBooleanProperty(java.lang.String name)
Gets the value of a boolean property. |
int |
getIntProperty(java.lang.String name)
Gets the value of an int property. |
LocaleDescriptor |
getLocale()
Returns the locale associated with a property. |
java.lang.Object |
getProperty(java.lang.String name)
Gets the value of a property. |
short |
getShortProperty(java.lang.String name)
Gets the value of a short property. |
java.lang.String |
getStringProperty(java.lang.String name)
Gets the value of a string property |
boolean |
isPropertyDefined(java.lang.String name)
Checks if a property is defined. |
void |
setBooleanProperty(java.lang.String name,
boolean value)
Sets a boolean property's value. |
void |
setIntProperty(java.lang.String name,
int value)
Sets an int property's value |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a property's value. |
void |
setShortProperty(java.lang.String name,
short value)
Sets a short property's value. |
void |
setStringProperty(java.lang.String name,
java.lang.String value)
Sets a string property's value. |
| Field Detail |
|---|
static final java.lang.String NETWORKLAYER
String property that specifies the network layer used to connect to the data source.
static final java.lang.String DBMS
String property that specifies the database type used to connect to the data source.
static final java.lang.String CONNECTION_SHAREABLE
Boolean property that specifies if it is possible to share connections to a data source.
Initial setting:
Configuration files: Connection Shareable parameter
static final java.lang.String SHARED_CONNECTION
Boolean property that specifies whether or not connections to the data source are shared for this driver.
Initial setting:
Configuration files: Shared Connection parameter
static final java.lang.String TRANSACTION_TYPE
String property that specifies the transaction type.
Initial setting:
Configuration files: Depends on the .sbo file's Transactional Available
and the Transaction Mode setting:
Transactional Available is set to False, then
this property is set to None.Transactional Available is set to True (the default setting),
then this property is set to value of the Transaction Mode value
in the .sbo file.Possible values are:
NoneAutoCommitTransactional
static final java.lang.String CATALOG_SEPARATOR
String property that specifies the catalog separator used to separate data items.
Initial setting:
Set by driver: Catalog Separator parameter or database middleware
static final java.lang.String IDENTIFIER_QUOTE_STRING
String property that specifies the identifier quote string.
Initial setting:
Set by driver: Identifier Quote String parameter
or database middleware
static final java.lang.String SEARCH_PATTERN_ESCAPE
String property that specifies the SEARCH clause escape character.
Initial setting:
Set by driver: Escape Character parameter
or database middleware
static final java.lang.String LIKE_ESCAPE_CLAUSE
String property that specifies the LIKE clause escape character.
Initial setting:
Set by driver: LIKE Escape Clause parameter
or database middleware
static final java.lang.String IDENTIFIER_CASE
String property that specifies the case behavior of identifiers.
Initial setting:
Set by driver: Identifier Case parameter
or database middleware
static final java.lang.String QUOTED_IDENTIFIER_CASE
String property that specifies the case behavior of quoted identifiers.
Initial setting:
Configuration files:Quoted Identifier Case parameter.
static final java.lang.String AUTOCONNECT
Boolean property that specifies if the Data Access layer must establish a physical connection immediately, or wait for the first SQL statement before establishing a connection.
Initial setting:
False
static final java.lang.String ARRAY_FETCH_SIZE
Integer property that specifies how many rows are retrieved from the datasource each time a fetch is performed.
Initial setting:
Configuration files: Array fetch Size parameter
static final java.lang.String MAX_ROWS
Integer property that sets the maximum number of rows that can be retrieved from the data source.
Initial setting:
0
static final java.lang.String XML_MAX_SIZE
Integer property that specifies the maximum size for an XML column.
Initial setting:
Configuration files: XML Max Size parameter
static final java.lang.String LOG_TIMEOUT
Integer property that specifies the maximum number of seconds for a login request before the request fails.
Initial setting:
600 seconds
static final java.lang.String QUERY_TIMEOUT
Integer property that specifies the maximum number of seconds to wait for any request on the connection to complete before returning to the application.
Initial setting:
600 seconds
static final java.lang.String POOL_TIME
Integer property that specifies the number of minutes a connection will be kept alive in the Connection Pool.
Initial setting:
Configuration files: Pool Time parameter
static final java.lang.String QUOTED_IDENTIFIER
Boolean property that specifies if a datasource supports quoted identifiers.
Initial setting:
Configuration files: Quoted Identifier parameter
static final java.lang.String PASSWORD_ENCRYPTION
Boolean property that specifies if the password must be encrypted.
Initial setting:
Configuration files Password Encryption parameter
static final java.lang.String ARRAY_BIND_SIZE
Integer property that specifies the recommended Array Bind Size.
Initial setting:
Configuration files:Array Bind Size parameter
static final java.lang.String COST_ESTIMATE_AVAILABLE
Boolean property that indicates if the driver supports performing cost estimate on queries.
Initial setting:
Configuration files: Cost Estimate Available parameter
static final java.lang.String PERFORM_COST_ESTIMATE
Boolean property that specifies if the driver must perform cost estimate on queries.
Initial setting:
False
static final java.lang.String HINT
String property that specifies a hint to the SQL optimizer.
Initial setting:
Empty string
static final java.lang.String QUALIFIERS_AVAILABLE
Boolean property that specifies if the data source supports qualifiers.
Connection Server initializes this property by calling the
qualifiersAvailable() method in the DBDriver interface.
The driver's qualifiersAvailable() method must check if
the Qualifiers Available SBO parameter is defined.
Initial setting:
Configuration files:Qualifiers Available parameter
static final java.lang.String OWNERS_AVAILABLE
Boolean property that specifies if the data source supports owners.
Initial setting:
Specific driver method: ownersAvailable() method
static final java.lang.String PRIMARYKEY_AVAILABLE
Boolean property that specifies if it is possible to retrieve
the primary key from the data source. Connection Server
initializes this property by calling the primaryKeyAvailable()
method in the DBDriver interface.
The driver's primaryKeyAvailable() method must check if
the PrimaryKey Available SBO parameter is defined.
Initial setting:
Configuration files: PrimaryKey Available parameter
static final java.lang.String FOREIGNKEYS_AVAILABLE
Boolean property that specifies if it is possible to retrieve
a list of the foreign keys available from the data source. Connection Server
initializes this property by calling the foreignKeysAvailable()
method in the DBDriver interface.
The driver's foreignKeysAvailable() method must check if
the ForeignKeys Available SBO parameter is defined.
Initial setting:
Configuration files: ForeignKeys Available parameter
static final java.lang.String QUALIFIER_NAME_SIZE
Integer property that specifies the maximum size for the name of a qualifier.
Initial setting:
Configuration files: Catalog Name Max Size parameter
static final java.lang.String OWNER_NAME_SIZE
Integer property that specifies the maximum size for the name of an owner.
Initial setting:
Configuration files:Schema Name Max Size parameter
static final java.lang.String TABLE_NAME_SIZE
Integer property that specifies the maximum size for a table name.
Initial setting:
Configuration files:Table Name Max Size parameter
static final java.lang.String COLUMN_NAME_SIZE
Integer property that specifies the maximum size for a column name.
Initial setting:
Configuration files:Column Name Max Size parameter
| Method Detail |
|---|
boolean isPropertyDefined(java.lang.String name)
Checks if a property is defined.
name - The name of the property
void setProperty(java.lang.String name,
java.lang.Object value)
throws CSException
Sets a property's value.
name - The name of the property.value - The value to set for the property.
CSException - The property does not exist,
or the value is not the correct type for the property.
void setBooleanProperty(java.lang.String name,
boolean value)
throws CSException
Sets a boolean property's value.
name - The name of the property.value - The value to set for the property.
CSException - The property does not exist,
or the value is not the correct type for the property.
void setShortProperty(java.lang.String name,
short value)
throws CSException
Sets a short property's value.
name - The name of the property.value - The value to set for the property.
CSException - The property does not exist,
or the value is not the correct type for the property.
void setIntProperty(java.lang.String name,
int value)
throws CSException
Sets an int property's value
name - The name of the property.value - The value to set for the property.
CSException - The property does not exist,
or the value is not the correct type for the property.
void setStringProperty(java.lang.String name,
java.lang.String value)
throws CSException
Sets a string property's value.
name - The name of the property.value - The value to set for the property.
CSException - The property does not exist,
or the value is not the correct type for the property.
java.lang.Object getProperty(java.lang.String name)
throws CSException
Gets the value of a property.
name - The name of the property.
CSException - The property does not exist, or the property type is not a
string
boolean getBooleanProperty(java.lang.String name)
throws CSException
Gets the value of a boolean property.
name - The name of the property.
CSException - The property does not exist, or the property type is not a
boolean
short getShortProperty(java.lang.String name)
throws CSException
Gets the value of a short property.
name - The name of the property.
CSException - The property does not exist, or the property type is not a short.
int getIntProperty(java.lang.String name)
throws CSException
Gets the value of an int property.
name - The name of the property.
CSException - The property does not exist, or the property type is not an int.
java.lang.String getStringProperty(java.lang.String name)
throws CSException
Gets the value of a string property
name - The name of the property.
CSException - The property does not exist, or the property type is not a
stringLocaleDescriptor getLocale()
Returns the locale associated with a property.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||