User: obo     
Date: 2006/07/10 07:21:44

Modified:
   dba/connectivity/source/drivers/adabas/BGroups.cxx

Log:
 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)

File Changes:

Directory: /dba/connectivity/source/drivers/adabas/
===================================================

File [changed]: BGroups.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/adabas/BGroups.cxx?r1=1.11&r2=1.12
Delta lines:  +5 -3
-------------------
--- BGroups.cxx 20 Jun 2006 01:08:47 -0000      1.11
+++ BGroups.cxx 10 Jul 2006 14:21:41 -0000      1.12
@@ -76,23 +76,25 @@
        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




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to