public class Nil extends Object
Types
.
Date d1 = new Date(), d2 = null; ServiceLocator.getStore().executeStatement( "update t set d1=?, d2=? where oid = ?", Nil.wrap(d1, Types.TIMESTAMP), Nil.wrap(d2,Types.TIMESTAMP), oid);Can be used in value lists of inserts and in "set column = value" assignments of update statements. Note that usage for parameters in the where clause is not advisable since this will not yield the intended results because of the three valued logic in SQL (see
NullExpression
for this).Modifier and Type | Method and Description |
---|---|
int |
getSqltype() |
Object |
getValue() |
static Nil |
wrap(Object value,
int sqltype)
Wrap up a value and an appropriate sqltype (from
Types ) |
public Object getValue()
public int getSqltype()
@enterprise 10.0.38375 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.