Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: sdb ::

unpublished constants group BooleanComparisonMode
Usage Restrictions
not published
Description
specifies different modi how boolean comparison predicates are to be generated by a SingleSelectQueryComposer.

Constants
EQUAL_INTEGER denotes the default comparison  
IS_LITERAL requires to use IS boolean_literal for boolean comparison.  
EQUAL_LITERAL requires to use = boolean_literal for boolean comparison.  
ACCESS_COMPAT requires to use an Microsoft Access compatible syntax for boolean comparison.  
Constants' Details
EQUAL_INTEGER
const long EQUAL_INTEGER = 0;
Description
denotes the default comparison

Most databases support comparing boolean expressions or column values directly with integer values: column = 0 respectively column = 1.

IS_LITERAL
const long IS_LITERAL = 1;
Description
requires to use IS boolean_literal for boolean comparison.

That is, the generated comparison predicates will be column IS TRUE resp. column IS FALSE.

EQUAL_LITERAL
const long EQUAL_LITERAL = 2;
Description
requires to use = boolean_literal for boolean comparison.

That is, the generated comparison predicates will be column = TRUE resp. column = FALSE.

ACCESS_COMPAT
const long ACCESS_COMPAT = 3;
Description
requires to use an Microsoft Access compatible syntax for boolean comparison.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.