summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/adabas/BGroups.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-07-10 13:21:41 +0000
committerOliver Bolte <obo@openoffice.org>2006-07-10 13:21:41 +0000
commita304bd36dee55cbdb2ba32947308e3263513671f (patch)
treebaec111c7dfd301ffb6270e916cabe1f21fed61b /connectivity/source/drivers/adabas/BGroups.cxx
parent6ce57d76defd0fae783efdd43f3656ab715e3029 (diff)
INTEGRATION: CWS qiq (1.10.104); FILE MERGED
2006/06/29 13:06:49 fs 1.10.104.3: #i10000# 2006/06/27 14:03:03 fs 1.10.104.2: RESYNC: (1.10-1.11); FILE MERGED 2006/06/16 11:32:30 fs 1.10.104.1: during #i51143#: refactored VCollection: - createEmptyObject now named createDescriptor - cloneObject removed - appendObject now returns the newly created object (previously done via a subsequent call to cloneObject)
Diffstat (limited to 'connectivity/source/drivers/adabas/BGroups.cxx')
-rw-r--r--connectivity/source/drivers/adabas/BGroups.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/connectivity/source/drivers/adabas/BGroups.cxx b/connectivity/source/drivers/adabas/BGroups.cxx
index fecabee2adf1..b2fa26bfd872 100644
--- a/connectivity/source/drivers/adabas/BGroups.cxx
+++ b/connectivity/source/drivers/adabas/BGroups.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: BGroups.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 01:08:47 $
+ * last change: $Author: obo $ $Date: 2006-07-10 14:21:41 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -76,23 +76,25 @@ void OGroups::impl_refresh() throw(RuntimeException)
m_pParent->refreshGroups();
}
// -------------------------------------------------------------------------
-Reference< XPropertySet > OGroups::createEmptyObject()
+Reference< XPropertySet > OGroups::createDescriptor()
{
// OAdabasGroup* pNew =
return new OAdabasGroup(m_pConnection);
}
// -------------------------------------------------------------------------
// XAppend
-void OGroups::appendObject( const Reference< XPropertySet >& descriptor )
+sdbcx::ObjectType OGroups::appendObject( const ::rtl::OUString& _rForName, const Reference< XPropertySet >& /*descriptor*/ )
{
::rtl::OUString aSql = ::rtl::OUString::createFromAscii("CREATE USERGROUP ");
::rtl::OUString aQuote = m_pConnection->getMetaData()->getIdentifierQuoteString( );
- aSql = aSql + aQuote + getString(descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME))) + aQuote;
+ aSql = aSql + aQuote + _rForName + aQuote;
Reference< XStatement > xStmt = m_pConnection->createStatement( );
xStmt->execute(aSql);
::comphelper::disposeComponent(xStmt);
+
+ return createObject( _rForName );
}
// -------------------------------------------------------------------------
// XDrop