Kaydet (Commit) f84b38ff authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS qiq (1.16.104); FILE MERGED

2006/06/27 14:05:49 fs 1.16.104.2: RESYNC: (1.16-1.17); FILE MERGED
2006/06/16 11:32:31 fs 1.16.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)
üst 0b2b729b
......@@ -4,9 +4,9 @@
*
* $RCSfile: BViews.cxx,v $
*
* $Revision: 1.17 $
* $Revision: 1.18 $
*
* last change: $Author: hr $ $Date: 2006-06-20 01:11:38 $
* last change: $Author: obo $ $Date: 2006-07-10 14:23:01 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -149,20 +149,17 @@ void OViews::disposing(void)
OCollection::disposing();
}
// -------------------------------------------------------------------------
Reference< XPropertySet > OViews::createEmptyObject()
Reference< XPropertySet > OViews::createDescriptor()
{
Reference<XConnection> xConnection = static_cast<OAdabasCatalog&>(m_rParent).getConnection();
return new connectivity::sdbcx::OView(sal_True,xConnection->getMetaData());
}
// -------------------------------------------------------------------------
// XAppend
void OViews::appendObject( const Reference< XPropertySet >& descriptor )
sdbcx::ObjectType OViews::appendObject( const ::rtl::OUString& _rForName, const Reference< XPropertySet >& descriptor )
{
::rtl::OUString aName = getString(descriptor->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)));
if(!aName.getLength())
::dbtools::throwFunctionSequenceException(static_cast<XTypeProvider*>(this));
createView(descriptor);
return createObject( _rForName );
}
// -------------------------------------------------------------------------
// XDrop
......
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