summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-14 12:18:29 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-14 17:24:57 +0100
commit5b0c06c291157a08de568735935f5f9f6c80ee83 (patch)
tree14a936ac377ffc1784da808e1eddc9db4c0835a8 /connectivity
parent2594878f706ffabb60cdc616bb7245bd5e5d41a9 (diff)
ColumnsHelper can create the Column for us. (firebird-sdbc)
Change-Id: Ia51394a701a06b6d6bc2cf6e9628cca9ce274821
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/Columns.cxx38
-rw-r--r--connectivity/source/drivers/firebird/Columns.hxx3
2 files changed, 0 insertions, 41 deletions
diff --git a/connectivity/source/drivers/firebird/Columns.cxx b/connectivity/source/drivers/firebird/Columns.cxx
index fbf54e0dbda8..d53c4f3a73ef 100644
--- a/connectivity/source/drivers/firebird/Columns.cxx
+++ b/connectivity/source/drivers/firebird/Columns.cxx
@@ -9,8 +9,6 @@
#include "Columns.hxx"
-#include <connectivity/sdbcx/VColumn.hxx>
-
#include <com/sun/star/sdbc/XRow.hpp>
using namespace ::connectivity;
@@ -35,40 +33,4 @@ Columns::Columns(Table& rTable,
OColumnsHelper::setParent(&rTable);
}
-ObjectType Columns::createObject(const OUString& rColumnName)
-{
- uno::Reference< XResultSet > xColumns = m_pTable->getConnection()->getMetaData()->getColumns(
- Any(),
- "",
- m_pTable->getName(),
- rColumnName);
-
- uno::Reference< XRow > xRow(xColumns, UNO_QUERY);
-
- if(!xColumns.is() || !xRow.is() || !xColumns->next())
- throw RuntimeException();
-
- ObjectType xColumn(new OColumn(rColumnName, // Name
- xRow->getString(6), // Type Name
- xRow->getString(13), // Default Value
- xRow->getString(12), // Description
- xRow->getInt(11), // Nullable
- xRow->getInt(7), // Precision
- xRow->getInt(9), // Scale
- xRow->getInt(5), // Type
- sal_False, // TODO: AutoIncrement
- // Might need a call to getTypes to determine autoincrement
- sal_False, // TODO: IsRowVersion?
- sal_False, // IsCurrency -- same as autoincrement
- sal_True, // Case sensitivity: yes
- "",
- "",
- m_pTable->getName()));
-
- if (xColumns->next())
- throw RuntimeException(); // There should only be one column retrieved
-
- return xColumn;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
diff --git a/connectivity/source/drivers/firebird/Columns.hxx b/connectivity/source/drivers/firebird/Columns.hxx
index dc006d1cd288..f6ec64fc6715 100644
--- a/connectivity/source/drivers/firebird/Columns.hxx
+++ b/connectivity/source/drivers/firebird/Columns.hxx
@@ -25,9 +25,6 @@ namespace connectivity
::osl::Mutex& rMutex,
const ::connectivity::TStringVector &_rVector);
- // OColumnsHelper
- virtual ::connectivity::sdbcx::ObjectType createObject(
- const ::rtl::OUString& rName);
};
} // namespace firebird