Tag: cws_src680_qiq User: fs Date: 06/05/17 04:51:43 Modified: /dba/connectivity/inc/connectivity/ dbmetadata.hxx
Log: #i51143# +isConnection/reset File Changes: Directory: /dba/connectivity/inc/connectivity/ ============================================== File [changed]: dbmetadata.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/dbmetadata.hxx?r1=1.1.2.3&r2=1.1.2.4 Delta lines: +17 -3 -------------------- --- dbmetadata.hxx 17 May 2006 05:19:06 -0000 1.1.2.3 +++ dbmetadata.hxx 17 May 2006 11:51:40 -0000 1.1.2.4 @@ -4,9 +4,9 @@ * * $RCSfile: dbmetadata.hxx,v $ * - * $Revision: 1.1.2.3 $ + * $Revision: 1.1.2.4 $ * - * last change: $Author: fs $ $Date: 2006/05/17 05:19:06 $ + * last change: $Author: fs $ $Date: 2006/05/17 11:51:40 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -79,7 +79,7 @@ the com.sun.star.sdb.Connection service. @throws ::com::sun::star::lang::IllegalArgumentException - if the given connection is <NULL/>, or the XDatabaseMetaData provided by it + if the given connection is not <NULL/>, but the XDatabaseMetaData provided by it are <NULL/> @throws ::com::sun::star::sdbc::SQLException if obtaining the meta data from the connection throws an SQLException @@ -94,6 +94,20 @@ ~DatabaseMetaData(); public: + /** determines whether or not the instances is based on a valid connection + + As long as this method returns true<TRUE/>, you should expect all other + methods throwing an SQLException when called. + */ + bool isConnected() const; + + /** resets the instance so that it's based on a new connection + */ + inline void reset( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _connection ) + { + *this = DatabaseMetaData( _connection ); + } + /** determines whether the database supports sub queries in the FROM part of a SELECT clause are supported. @throws ::com::sun::star::sdbc::SQLException --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
