LibreOffice Module ucbhelper (master) 1
|
This is an implementation of the interface XResultSetMetaData. More...
#include <resultsetmetadata.hxx>
Public Member Functions | |
ResultSetMetaData (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProps) | |
Constructor. More... | |
ResultSetMetaData (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Sequence< css::beans::Property > &rProps, std::vector< ResultSetColumnData > &&rColumnData) | |
Constructor. More... | |
virtual | ~ResultSetMetaData () override |
Destructor. More... | |
virtual sal_Int32 SAL_CALL | getColumnCount () override |
Returns the number of columns of the resultset. More... | |
virtual sal_Bool SAL_CALL | isAutoIncrement (sal_Int32 column) override |
Checks whether column is automatically numbered, which makes it read-only. More... | |
virtual sal_Bool SAL_CALL | isCaseSensitive (sal_Int32 column) override |
Checks whether column is case sensitive. More... | |
virtual sal_Bool SAL_CALL | isSearchable (sal_Int32 column) override |
Checks whether the value stored in column can be used in a WHERE clause. More... | |
virtual sal_Bool SAL_CALL | isCurrency (sal_Int32 column) override |
Checks whether column is a cash value. More... | |
virtual sal_Int32 SAL_CALL | isNullable (sal_Int32 column) override |
Checks whether a NULL can be stored in column. More... | |
virtual sal_Bool SAL_CALL | isSigned (sal_Int32 column) override |
Checks whether the value stored in column is a signed number. More... | |
virtual sal_Int32 SAL_CALL | getColumnDisplaySize (sal_Int32 column) override |
Gets the normal maximum width in characters for column. More... | |
virtual OUString SAL_CALL | getColumnLabel (sal_Int32 column) override |
Gets the suggested column title for column, to be used in print- outs and displays. More... | |
virtual OUString SAL_CALL | getColumnName (sal_Int32 column) override |
Gets the name of column. More... | |
virtual OUString SAL_CALL | getSchemaName (sal_Int32 column) override |
Gets the schema name for the table from which column of this result set was derived. More... | |
virtual sal_Int32 SAL_CALL | getPrecision (sal_Int32 column) override |
For number types, getprecision gets the number of decimal digits in column. More... | |
virtual sal_Int32 SAL_CALL | getScale (sal_Int32 column) override |
Gets the number of digits to the right of the decimal point for values in column. More... | |
virtual OUString SAL_CALL | getTableName (sal_Int32 column) override |
Gets the name of the table from which column of this result set was derived or "" if there is none (for example, for a join). More... | |
virtual OUString SAL_CALL | getCatalogName (sal_Int32 column) override |
Gets the catalog name for the table from which column of this result set was derived. More... | |
virtual sal_Int32 SAL_CALL | getColumnType (sal_Int32 column) override |
Gets the JDBC type for the value stored in column. More... | |
virtual OUString SAL_CALL | getColumnTypeName (sal_Int32 column) override |
Gets the type name used by this particular data source for the values stored in column. More... | |
virtual sal_Bool SAL_CALL | isReadOnly (sal_Int32 column) override |
Indicates whether a column is definitely not writable. More... | |
virtual sal_Bool SAL_CALL | isWritable (sal_Int32 column) override |
Indicates whether it is possible for a write on the column to succeed. More... | |
virtual sal_Bool SAL_CALL | isDefinitelyWritable (sal_Int32 column) override |
Indicates whether a write on the column will definitely succeed. More... | |
virtual OUString SAL_CALL | getColumnServiceName (sal_Int32 column) override |
Returns the fully-qualified name of the service whose instances are manufactured if the method css::sdbc::ResultSet::getObject is called to retrieve a value from the column. More... | |
Private Attributes | |
std::unique_ptr< ucbhelper_impl::ResultSetMetaData_Impl > | m_pImpl |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Sequence< css::beans::Property > | m_aProps |
This is an implementation of the interface XResultSetMetaData.
It can be used to implement the interface css::sdbc::XResultSetMetaDataSupplier, which is required for implementations of service com.sun.star.ucb.ContentResultSet.
Definition at line 72 of file resultsetmetadata.hxx.
ucbhelper::ResultSetMetaData::ResultSetMetaData | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
const css::uno::Sequence< css::beans::Property > & | rProps | ||
) |
Constructor.
ResultSet is readonly by default.
rxSMgr | is a Service Manager. |
rProps | is a sequence of properties (partially) describing the columns of a resultset. |
ucbhelper::ResultSetMetaData::ResultSetMetaData | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
const css::uno::Sequence< css::beans::Property > & | rProps, | ||
std::vector< ResultSetColumnData > && | rColumnData | ||
) |
Constructor.
rxSMgr | is a Service Manager. |
rProps | is a sequence of properties (partially) describing the columns of a resultset. |
rColumnData | contains additional meta data for the columns of a resultset, which override the default values returned by the appropriate methods of this class. The length of rColumnData must be the same as length of rProps. rColumnData[ 0 ] corresponds to data in rProps[ 0 ], rColumnData[ 1 ] corresponds to data in rProps[ 1 ], ... |
References isAutoIncrement, isCurrency, and isNullable.
|
overridevirtual |
Destructor.
Definition at line 96 of file resultsetmetadata.cxx.
|
overridevirtual |
Gets the catalog name for the table from which column of this result set was derived.
Because this feature is not widely supported, the return value for many DBMSs will be an empty string.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 240 of file resultsetmetadata.cxx.
|
overridevirtual |
Returns the number of columns of the resultset.
Definition at line 105 of file resultsetmetadata.cxx.
References m_aProps.
|
overridevirtual |
Gets the normal maximum width in characters for column.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 161 of file resultsetmetadata.cxx.
|
overridevirtual |
Gets the suggested column title for column, to be used in print- outs and displays.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 171 of file resultsetmetadata.cxx.
References m_aProps.
|
overridevirtual |
Gets the name of column.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 186 of file resultsetmetadata.cxx.
References m_aProps.
|
overridevirtual |
Returns the fully-qualified name of the service whose instances are manufactured if the method css::sdbc::ResultSet::getObject is called to retrieve a value from the column.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 385 of file resultsetmetadata.cxx.
|
overridevirtual |
Gets the JDBC type for the value stored in column.
... The STRUCT and DISTINCT type codes are always returned for structured and distinct types, regardless of whether the value will be mapped according to the standard mapping or be a custom mapping.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 253 of file resultsetmetadata.cxx.
References Exception, m_aProps, m_pImpl, m_xContext, nType, and Property.
|
overridevirtual |
Gets the type name used by this particular data source for the values stored in column.
If the type code for the type of value stored in column is STRUCT, DISTINCT or JAVA_OBJECT, this method returns a fully-qualified SQL type name.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 351 of file resultsetmetadata.cxx.
|
overridevirtual |
For number types, getprecision gets the number of decimal digits in column.
For character types, it gets the maximum length in characters for column. For binary types, it gets the maximum length in bytes for column.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 213 of file resultsetmetadata.cxx.
|
overridevirtual |
Gets the number of digits to the right of the decimal point for values in column.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 220 of file resultsetmetadata.cxx.
|
overridevirtual |
Gets the schema name for the table from which column of this result set was derived.
Because this feature is not widely supported, the return value for many DBMSs will be an empty string.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 200 of file resultsetmetadata.cxx.
|
overridevirtual |
Gets the name of the table from which column of this result set was derived or "" if there is none (for example, for a join).
Because this feature is not widely supported, the return value for many DBMSs will be an empty string.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 227 of file resultsetmetadata.cxx.
|
overridevirtual |
Checks whether column is automatically numbered, which makes it read-only.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 112 of file resultsetmetadata.cxx.
|
overridevirtual |
Checks whether column is case sensitive.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 123 of file resultsetmetadata.cxx.
|
overridevirtual |
Checks whether column is a cash value.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 140 of file resultsetmetadata.cxx.
|
overridevirtual |
Indicates whether a write on the column will definitely succeed.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 378 of file resultsetmetadata.cxx.
|
overridevirtual |
Checks whether a NULL can be stored in column.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 147 of file resultsetmetadata.cxx.
|
overridevirtual |
Indicates whether a column is definitely not writable.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 364 of file resultsetmetadata.cxx.
|
overridevirtual |
Checks whether the value stored in column can be used in a WHERE clause.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 133 of file resultsetmetadata.cxx.
|
overridevirtual |
Checks whether the value stored in column is a signed number.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 154 of file resultsetmetadata.cxx.
|
overridevirtual |
Indicates whether it is possible for a write on the column to succeed.
column | is the number of the column for that a value shall be returned. The first column is 1, the second is 2, ... |
Definition at line 371 of file resultsetmetadata.cxx.
|
private |
Definition at line 77 of file resultsetmetadata.hxx.
|
private |
Definition at line 75 of file resultsetmetadata.hxx.
|
private |
Definition at line 76 of file resultsetmetadata.hxx.