org.sqlproc.engine.plugin
Interface IsEmptyPlugin

All Known Implementing Classes:
DefaultSqlPlugins

public interface IsEmptyPlugin

The SQL Processor plugin devoted to evaluate the emptiness of the input value.

The emptiness is the basic facility in the construction of the final SQL statements from the META SQL fragments.

The standard evaluation is the next one:

The emptiness of a dynamic input value depends on the Java type of the related attribute

Author:
Vladimir Hudec

Method Summary
 boolean isEmpty(Object obj, SqlMetaType sqlMetaType, String sqlMetaTypeExt, boolean inSqlSetOrInsert)
          Used for the evaluation of the emptiness in the META SQL fragments.
 

Method Detail

isEmpty

boolean isEmpty(Object obj,
                SqlMetaType sqlMetaType,
                String sqlMetaTypeExt,
                boolean inSqlSetOrInsert)
                throws IllegalArgumentException
Used for the evaluation of the emptiness in the META SQL fragments.

Parameters:
obj - the input value
sqlMetaType - the internal type (= META type) devoted for the special processing of the input values
sqlMetaTypeExt - the META type extension (=the internal type supplement value) devoted to extend the special processing of the input values
inSqlSetOrInsert - an indicator the input value is evaluated in the CRUD statement (INSERT or SET)
Returns:
the emptiness of the input value
Throws:
IllegalArgumentException


Copyright © 2012. All Rights Reserved.