Package org.mybatis.dynamic.sql.util
Interface ColumnMappingVisitor<R>
-
- Type Parameters:
R
- The type of object created by the visitor
- All Known Implementing Classes:
AbstractMultiRowValuePhraseVisitor
,BatchValuePhraseVisitor
,GeneralInsertMappingVisitor
,GeneralInsertValuePhraseVisitor
,InsertMappingVisitor
,MultiRowInsertMappingVisitor
,MultiRowValuePhraseVisitor
,SetPhraseVisitor
,UpdateMappingVisitor
,ValuePhraseVisitor
public interface ColumnMappingVisitor<R>
Visitor for all column mappings. Various column mappings are used by insert and update statements. Only the null and constant mappings are supported by all statements. Other mappings may or may not be supported. For example, it makes no sense to map a column to another column in an insert - so the ColumnToColumnMapping is only supported on update statements.Rather than implement this interface directly, we recommend implementing one of the derived classes. The derived classes encapsulate the rules about which mappings are applicable to the different types of statements.
- Author:
- Jeff Butler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
visit(ColumnToColumnMapping columnMapping)
R
visit(ConstantMapping mapping)
R
visit(NullMapping mapping)
R
visit(PropertyMapping mapping)
R
visit(PropertyWhenPresentMapping mapping)
R
visit(SelectMapping mapping)
R
visit(StringConstantMapping mapping)
<T> R
visit(ValueMapping<T> mapping)
<T> R
visit(ValueWhenPresentMapping<T> mapping)
-
-
-
Method Detail
-
visit
R visit(NullMapping mapping)
-
visit
R visit(ConstantMapping mapping)
-
visit
R visit(StringConstantMapping mapping)
-
visit
<T> R visit(ValueMapping<T> mapping)
-
visit
<T> R visit(ValueWhenPresentMapping<T> mapping)
-
visit
R visit(SelectMapping mapping)
-
visit
R visit(PropertyMapping mapping)
-
visit
R visit(PropertyWhenPresentMapping mapping)
-
visit
R visit(ColumnToColumnMapping columnMapping)
-
-