Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: sdbc ::

interface XWarningsSupplier

Base Interface
com::sun::star::uno::XInterface

Description
should be implemented of objects which may report warnings or non critical errors.
See also
com::sun::star::sdbc::SQLWarning


Known Services which Export this Interface

com::sun::star::sdbc::Connection represents a connection (session) with a specific database. Within the context of a Connection, SQL statements are executed and results are returned.
com::sun::star::sdbc::PreparedStatement represents a precompiled SQL statement.
com::sun::star::sdbc::ResultSet provides access to a table of data. A ResultSet object is usually generated by executing a Statement.
com::sun::star::sdbc::Statement is used for executing a static SQL statement and obtaining the results produced by it.

Methods' Summary

getWarnings returns the first warning reported by calls on an object that supports the usage of warnings.
clearWarnings clears all warnings reported for the object implementing the interface. After a call to this method, the method XWarningsSupplier::getWarnings() returns void until a new warning is reported for the object.

Methods' Details

getWarnings
 
any
getWarnings( )
raises ( com::sun::star::sdbc::SQLException );

Description
returns the first warning reported by calls on an object that supports the usage of warnings.

Note: Subsequent warnings will be chained to this SQLWarning .

Returns
the warnings
Throws
SQLException if a database access error occurs.
clearWarnings
 
void
clearWarnings( )
raises ( com::sun::star::sdbc::SQLException );

Description
clears all warnings reported for the object implementing the interface. After a call to this method, the method XWarningsSupplier::getWarnings() returns void until a new warning is reported for the object.
Throws
SQLException if a database access error occurs.

Top of Page