CatalogOptions
- Last Updated: August 24, 2021
- 1 minute read
- DataDirect Connectors
- JDBC
- PostgreSQL 6.0
- Documentation
Purpose
Determines which type of metadata information is included in result sets when an application calls DatabaseMetaData methods.
Valid Values
2 | 4
Behavior
If set to 2, the driver queries database catalogs for column
information.
If set to 4, a hint
is provided to the driver to emulate getColumns() calls using the
ResultSetMetaData object instead of querying database catalogs for
column information. Using emulation can improve performance because
the SQL statement that is formulated by the emulation is less complex
than the SQL statement that is formulated using getColumns(). The
argument to getColumns() must evaluate to a single table. If it
does not, because of a wildcard or null value, for example, the
driver reverts to the default behavior for getColumns() calls.
Data Source Methods
public Integer getCatalogOptions()
public void setCatalogOptions(Integer)
Default
2
Data Type
int