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 non-emptiness of a dynamic input value depends on the Java type of the related attribute

Author:
Vladimir Hudec

Method Summary
 boolean isNotEmpty(String attributeName, Object obj, Object parentObj, SqlMetaType sqlMetaType, String inOutModifier, boolean inSqlSetOrInsert, Map<String,String> values, Map<String,Object> features)
          Used for the evaluation of the emptiness in the META SQL fragments.
 

Method Detail

isNotEmpty

boolean isNotEmpty(String attributeName,
                   Object obj,
                   Object parentObj,
                   SqlMetaType sqlMetaType,
                   String inOutModifier,
                   boolean inSqlSetOrInsert,
                   Map<String,String> values,
                   Map<String,Object> features)
                   throws IllegalArgumentException
Used for the evaluation of the emptiness in the META SQL fragments.

Parameters:
attributeName - the name of the input value
obj - the input value
parentObj - the parent of the input value
sqlMetaType - the internal type (= META type) devoted for the special processing of the input values
inOutModifier - the input/output value modifier devoted to extend the processing of the input/output values
inSqlSetOrInsert - an indicator the input value is evaluated in the CRUD statement (INSERT or SET)
values - values for a special identifier handling, for example a sequence for an identity
features - the optional features in the statement coontext
Returns:
the non-emptiness of the input value
Throws:
IllegalArgumentException


Copyright © 2013. All Rights Reserved.