namespace com::sun::star::beans { class XPropertySet; } namespace com::sun::star::i18n { class XLocaleData4; } namespace com::sun::star::sdbc { class XConnection; } namespace com::sun::star::uno { class XComponentContext; } namespace com::sun::star::util { class XNumberFormatter; }
namespace dbtools
{
//= OPredicateInputController
/** A class which allows input of an SQL predicate for a row set column intoaneditfield.
*/ class UNLESS_MERGELIBS_MORE(OOO_DLLPUBLIC_DBTOOLS) OPredicateInputController
{ private:
css::uno::Reference< css::sdbc::XConnection >
m_xConnection;
css::uno::Reference< css::util::XNumberFormatter >
m_xFormatter;
css::uno::Reference< css::i18n::XLocaleData4 >
m_xLocaleData;
/** transforms a "raw" predicate value (usually obtained from a user input) into a valid predicate for the given column @param_rPredicateValue Thetexttonormalize. @param_rxField Thefieldforwhichthetextshouldbeapredicatevalue. @param_pErrorMessage Ifnot<NULL/>,andaparsingerroroccurs,theerrormessagewillbecopiedtothestringtheargument pointsto.
*/ bool normalizePredicateString(
OUString& _rPredicateValue, const css::uno::Reference< css::beans::XPropertySet >& _rxField,
OUString* _pErrorMessage = nullptr
) const;
/** get the value of the predicate, as a string to be used in a WHERE clause @param_rPredicateValue thevaluewhichhasbeennormalizedusingnormalizePredicateString @param_rxField isthefieldforwhichapredicateistobeentered @seenormalizePredicateString
*/
OUString getPredicateValueStr( const OUString& _rPredicateValue, const css::uno::Reference< css::beans::XPropertySet > & _rxField
) const;
/** get the value of the predicate, either as an empty or as a string @param_rPredicateValue thevaluewhichhasbeennormalizedusingnormalizePredicateString @param_rxField isthefieldforwhichapredicateistobeentered @seenormalizePredicateString
*/
css::uno::Any getPredicateValue( const OUString& _rPredicateValue, const css::uno::Reference< css::beans::XPropertySet > & _rxField
) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.