![]()
![]() ![]() ![]() ![]() ![]() ![]() ![]() Documentation Top ![]() Global Index ![]() Reference Manual ![]() ![]() ![]() Developer's Guide ![]() ![]() Tuning Cloudscape ![]() ![]() |
Conditional (?:)You can place a conditional expression anywhere an expression is allowed. It chooses an expression to evaluate based on a boolean test. SyntaxThenExpression and ElseExpression are both expressions that must be type-compatible. For built-in types, this means that the types must be the same or a built-in broadening conversion must exist between the types. For Java data types, this means that the types must be the same or one of the types must be assignable to the other one due to a super/subclass or interface/implementor relationship. NEW: Beginning in Version 3.0, you no longer need to use the conditional expression for avoiding NullPointerExceptions when a nullable column becomes a method receiver. If the value of the instance specified in an instance method invocation is null, the result of the invocation is null (SQL-J NULL). However, you still may need to use the conditional expression for when a nullable column is a primitive method parameter; the conditional expression is a good way of doing that. Example
| ||
![]() ![]() ![]() ![]() ![]() ![]() | ![]() ![]() Cloudscape Version 3.0 ![]() For technical support, go to: www.cloudscape.com and click Support. Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved. |