Class MyBatisContext
java.lang.Object
org.springframework.data.jdbc.mybatis.MyBatisContext
MyBatisContext instances get passed to MyBatis mapped statements as arguments, making Ids, instances,
 domainType and other attributes available to the statements. All methods might return null depending on
 the kind of values available on invocation.- Author:
- Jens Schauder, Christoph Strobl
- 
Constructor SummaryConstructorsConstructorDescriptionMyBatisContext(@Nullable Object id, @Nullable Object instance, @Nullable Class<?> domainType, Map<String, Object> additionalValues) MyBatisContext(Identifier identifier, @Nullable Object instance, @Nullable Class<?> domainType) 
- 
Method SummaryModifier and TypeMethodDescription@Nullable ObjectReturns a value for the given key.@Nullable ClassThe domain type of the entity to query or act upon.@Nullable ObjectgetId()The ID of the entity to query/act upon.@Nullable IdentifierTheIdentifierfor a path to query.@Nullable ObjectThe entity to act upon.
- 
Constructor Details- 
MyBatisContext
- 
MyBatisContextpublic MyBatisContext(Identifier identifier, @Nullable Object instance, @Nullable Class<?> domainType) 
 
- 
- 
Method Details- 
getId
- 
getIdentifierTheIdentifierfor a path to query.- Returns:
- Might return null.
 
- 
getInstanceThe entity to act upon. This isnullfor queries, since the object doesn't exist before the query.- Returns:
- Might return null.
 
- 
getDomainTypeThe domain type of the entity to query or act upon.- Returns:
- Might return null.
 
- 
get
 
-