Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
6cb1f56f
Kaydet (Commit)
6cb1f56f
authored
Agu 15, 2013
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Implement sdbcx table creation. (firebird-sdbc)
Change-Id: I3d0de21a5fe10b64e21955f3384b95a96ac7561e
üst
dc3eb678
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
4 deletions
+44
-4
Table.cxx
connectivity/source/drivers/firebird/Table.cxx
+11
-0
Table.hxx
connectivity/source/drivers/firebird/Table.hxx
+3
-0
Tables.cxx
connectivity/source/drivers/firebird/Tables.cxx
+21
-0
Tables.hxx
connectivity/source/drivers/firebird/Tables.hxx
+9
-4
No files found.
connectivity/source/drivers/firebird/Table.cxx
Dosyayı görüntüle @
6cb1f56f
...
@@ -27,6 +27,17 @@ using namespace ::com::sun::star::container;
...
@@ -27,6 +27,17 @@ using namespace ::com::sun::star::container;
using
namespace
::
com
::
sun
::
star
::
sdbc
;
using
namespace
::
com
::
sun
::
star
::
sdbc
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
Table
::
Table
(
Tables
*
pTables
,
Mutex
&
rMutex
,
const
uno
::
Reference
<
XConnection
>&
rConnection
)
:
OTableHelper
(
pTables
,
rConnection
,
sal_True
),
m_rMutex
(
rMutex
)
{
OTableHelper
::
construct
();
}
Table
::
Table
(
Tables
*
pTables
,
Table
::
Table
(
Tables
*
pTables
,
Mutex
&
rMutex
,
Mutex
&
rMutex
,
const
uno
::
Reference
<
XConnection
>&
rConnection
,
const
uno
::
Reference
<
XConnection
>&
rConnection
,
...
...
connectivity/source/drivers/firebird/Table.hxx
Dosyayı görüntüle @
6cb1f56f
...
@@ -35,6 +35,9 @@ namespace connectivity
...
@@ -35,6 +35,9 @@ namespace connectivity
::
rtl
::
OUString
getAlterTableColumn
(
const
::
rtl
::
OUString
&
rColumn
);
::
rtl
::
OUString
getAlterTableColumn
(
const
::
rtl
::
OUString
&
rColumn
);
public
:
public
:
Table
(
Tables
*
pTables
,
::
osl
::
Mutex
&
rMutex
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>&
_xConnection
);
Table
(
Tables
*
pTables
,
Table
(
Tables
*
pTables
,
::
osl
::
Mutex
&
rMutex
,
::
osl
::
Mutex
&
rMutex
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>&
_xConnection
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XConnection
>&
_xConnection
,
...
...
connectivity/source/drivers/firebird/Tables.cxx
Dosyayı görüntüle @
6cb1f56f
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
#include "Table.hxx"
#include "Table.hxx"
#include "Tables.hxx"
#include "Tables.hxx"
#include <connectivity/dbtools.hxx>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
using
namespace
::
connectivity
;
using
namespace
::
connectivity
;
...
@@ -20,6 +22,7 @@ using namespace ::osl;
...
@@ -20,6 +22,7 @@ using namespace ::osl;
using
namespace
::
rtl
;
using
namespace
::
rtl
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
container
;
using
namespace
::
com
::
sun
::
star
::
container
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
sdbc
;
using
namespace
::
com
::
sun
::
star
::
sdbc
;
...
@@ -75,6 +78,24 @@ ObjectType Tables::createObject(const OUString& rName)
...
@@ -75,6 +78,24 @@ ObjectType Tables::createObject(const OUString& rName)
return
xRet
;
return
xRet
;
}
}
uno
::
Reference
<
XPropertySet
>
Tables
::
createDescriptor
()
{
// There is some internal magic so that the same class can be used as either
// a descriptor or as a normal table. See VTable.cxx for the details. In our
// case we just need to ensure we use the correct constructor.
return
new
Table
(
this
,
m_rMutex
,
m_xMetaData
->
getConnection
());
}
//----- XAppend ---------------------------------------------------------------
ObjectType
Tables
::
appendObject
(
const
OUString
&
rName
,
const
uno
::
Reference
<
XPropertySet
>&
rDescriptor
)
{
OUString
sSql
(
::
dbtools
::
createSqlCreateTableStatement
(
rDescriptor
,
m_xMetaData
->
getConnection
()));
m_xMetaData
->
getConnection
()
->
createStatement
()
->
execute
(
sSql
);
return
createObject
(
rName
);
}
// //----- XDrop ----------------------------------------------------------------
// //----- XDrop ----------------------------------------------------------------
// void SAL_CALL Tables::dropByName(const OUString& rName)
// void SAL_CALL Tables::dropByName(const OUString& rName)
// throw (SQLException, NoSuchElementException, RuntimeException)
// throw (SQLException, NoSuchElementException, RuntimeException)
...
...
connectivity/source/drivers/firebird/Tables.hxx
Dosyayı görüntüle @
6cb1f56f
...
@@ -29,14 +29,19 @@ namespace connectivity
...
@@ -29,14 +29,19 @@ namespace connectivity
::
osl
::
Mutex
&
m_rMutex
;
::
osl
::
Mutex
&
m_rMutex
;
protected
:
protected
:
// OCollection: pure virtual functions requiring implementation
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XDatabaseMetaData
>
m_xMetaData
;
// OCollection
virtual
void
impl_refresh
()
virtual
void
impl_refresh
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
connectivity
::
sdbcx
::
ObjectType
createObject
(
virtual
::
connectivity
::
sdbcx
::
ObjectType
createObject
(
const
::
rtl
::
OUString
&
rName
);
const
::
rtl
::
OUString
&
rName
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XDatabaseMetaData
>
createDescriptor
();
m_xMetaData
;
virtual
::
connectivity
::
sdbcx
::
ObjectType
appendObject
(
const
OUString
&
rName
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>&
rDescriptor
);
public
:
public
:
Tables
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XDatabaseMetaData
>&
rMetaData
,
Tables
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
sdbc
::
XDatabaseMetaData
>&
rMetaData
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment