Kaydet (Commit) f1dda661 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in ResultSetColumnData

ever since introduction in

    commit 24f26145
    Date:   Thu Jan 18 08:03:55 2001 +0000
    "#82177# - Added support for additional column data ( case-
sensitivity, ... )"

Change-Id: I593f7e2a3be7b6445c7975ff385b6ba0d35183b9
üst 1c92a7fa
......@@ -57,24 +57,6 @@ struct ResultSetColumnData
/** @see ResultSetMetaData::getColumnDisplaySize */
sal_Int32 columnDisplaySize;
/** @see ResultSetMetaData::getColumnLabel */
OUString columnLabel;
/** @see ResultSetMetaData::getSchemaName */
OUString schemaName;
/** @see ResultSetMetaData::getTableName */
OUString tableName;
/** @see ResultSetMetaData::getCatalogName */
OUString catalogName;
/** @see ResultSetMetaData::getColumnTypeName */
OUString columnTypeName;
/** @see ResultSetMetaData::getColumnServiceName */
OUString columnServiceName;
inline ResultSetColumnData();
};
......
......@@ -219,10 +219,6 @@ OUString SAL_CALL ResultSetMetaData::getColumnLabel( sal_Int32 column )
if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
return OUString();
OUString aLabel = m_pImpl->m_aColumnData[ column - 1 ].columnLabel;
if ( !aLabel.isEmpty() )
return aLabel;
return m_aProps.getConstArray()[ column - 1 ].Name;
}
......@@ -242,7 +238,7 @@ OUString SAL_CALL ResultSetMetaData::getColumnName( sal_Int32 column )
// virtual
OUString SAL_CALL ResultSetMetaData::getSchemaName( sal_Int32 column )
OUString SAL_CALL ResultSetMetaData::getSchemaName( sal_Int32 /*column*/ )
{
/*
Gets the schema name for the table from which column of this
......@@ -250,11 +246,7 @@ OUString SAL_CALL ResultSetMetaData::getSchemaName( sal_Int32 column )
Because this feature is not widely supported, the return value
for many DBMSs will be an empty string.
*/
if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
return OUString();
return m_pImpl->m_aColumnData[ column - 1 ].schemaName;
return OUString();
}
......@@ -273,7 +265,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getScale( sal_Int32 /*column*/ )
// virtual
OUString SAL_CALL ResultSetMetaData::getTableName( sal_Int32 column )
OUString SAL_CALL ResultSetMetaData::getTableName( sal_Int32 /*column*/ )
{
/*
Gets the name of the table from which column of this result set
......@@ -281,16 +273,12 @@ OUString SAL_CALL ResultSetMetaData::getTableName( sal_Int32 column )
Because this feature is not widely supported, the return value
for many DBMSs will be an empty string.
*/
if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
return OUString();
return m_pImpl->m_aColumnData[ column - 1 ].tableName;
return OUString();
}
// virtual
OUString SAL_CALL ResultSetMetaData::getCatalogName( sal_Int32 column )
OUString SAL_CALL ResultSetMetaData::getCatalogName( sal_Int32 /*column*/ )
{
/*
Gets the catalog name for the table from which column of this
......@@ -298,11 +286,7 @@ OUString SAL_CALL ResultSetMetaData::getCatalogName( sal_Int32 column )
Because this feature is not widely supported, the return value
for many DBMSs will be an empty string.
*/
if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
return OUString();
return m_pImpl->m_aColumnData[ column - 1 ].catalogName;
return OUString();
}
......@@ -414,7 +398,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
// virtual
OUString SAL_CALL ResultSetMetaData::getColumnTypeName( sal_Int32 column )
OUString SAL_CALL ResultSetMetaData::getColumnTypeName( sal_Int32 /*column*/ )
{
/*
Gets the type name used by this particular data source for the
......@@ -422,11 +406,7 @@ OUString SAL_CALL ResultSetMetaData::getColumnTypeName( sal_Int32 column )
stored in column is STRUCT, DISTINCT or JAVA_OBJECT, this method
returns a fully-qualified SQL type name.
*/
if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
return OUString();
return m_pImpl->m_aColumnData[ column - 1 ].columnTypeName;
return OUString();
}
......@@ -452,18 +432,14 @@ sal_Bool SAL_CALL ResultSetMetaData::isDefinitelyWritable( sal_Int32 /*column*/
// virtual
OUString SAL_CALL ResultSetMetaData::getColumnServiceName( sal_Int32 column )
OUString SAL_CALL ResultSetMetaData::getColumnServiceName( sal_Int32 /*column*/ )
{
/*
Returns the fully-qualified name of the service whose instances
are manufactured if XResultSet::getObject is called to retrieve
a value from the column.
*/
if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
return OUString();
return m_pImpl->m_aColumnData[ column - 1 ].columnServiceName;
return OUString();
}
} // namespace ucbhelper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment