public MybatisMapperAnnotationBuilder(Configuration configuration, Class<?> type) { super(configuration, type); String resource = type.getName().replace('.', '/') + ".java (best guess)"; this.assistant = new MapperBuilderAssistant(configuration, resource); this.configuration = configuration; this.type = type; }
private XMLMapperBuilder(XPathParser parser, Configuration configuration, String resource, Map<String, XNode> sqlFragments) { super(configuration); this.builderAssistant = new MapperBuilderAssistant(configuration, resource); this.parser = parser; this.sqlFragments = sqlFragments; this.resource = resource; }
private XMLMapperBuilder(XPathParser parser, Configuration configuration, String resource, Map<String, XNode> sqlFragments) { super(configuration); this.builderAssistant = new MapperBuilderAssistant(configuration, resource); this.parser = parser; this.sqlFragments = sqlFragments; this.resource = resource; }
public MapperAnnotationBuilder(Configuration configuration, Class<?> type) { String resource = type.getName().replace('.', '/') + ".java (best guess)"; this.assistant = new MapperBuilderAssistant(configuration, resource); this.configuration = configuration; this.type = type; }
public MapperAnnotationBuilder(Configuration configuration, Class<?> type) { String resource = type.getName().replace('.', '/') + ".java (best guess)"; this.assistant = new MapperBuilderAssistant(configuration, resource); this.configuration = configuration; this.type = type; sqlAnnotationTypes.add(Select.class); sqlAnnotationTypes.add(Insert.class); sqlAnnotationTypes.add(Update.class); sqlAnnotationTypes.add(Delete.class); sqlProviderAnnotationTypes.add(SelectProvider.class); sqlProviderAnnotationTypes.add(InsertProvider.class); sqlProviderAnnotationTypes.add(UpdateProvider.class); sqlProviderAnnotationTypes.add(DeleteProvider.class); }
public MapperAnnotationBuilder(Configuration configuration, Class type) { String resource = type.getName().replace('.', '/') + ".java (best guess)"; this.assistant = new MapperBuilderAssistant(configuration, resource); this.configuration = configuration; this.type = type; this.sqlFragments = new HashMap(); }
public PersistentResultMapEnhancer(Configuration configuration, Class<?> type) { super(configuration); this.resource = "auto-entity:" + type.getName(); this.assistant = new MapperBuilderAssistant(configuration, resource); this.type = type; this.entityMetaData = PersistentRecognizer.entityMetaData(type); }
public MybatisMapperBuildAssistant(Configuration configuration, PersistentEntity<?, ?> persistentEntity, String namespace) { this.configuration = configuration; dialect = detectDialect(); this.entity = (MybatisPersistentEntity<?>) persistentEntity; this.assistant = new MapperBuilderAssistant(configuration, namespace.replace('.', '/') + ".java (mapper)"); this.assistant.setCurrentNamespace(namespace); }
this.assistant = new MapperBuilderAssistant(configuration, resource); this.mapper = mapper;
public XMLMapperBuilder(Reader reader, Configuration configuration, String resource, Map<String, XNode> sqlFragments) { super(configuration); this.builderAssistant = new MapperBuilderAssistant(configuration, resource); this.parser = new XPathParser(reader, true, new XMLMapperEntityResolver(), configuration.getVariables()); this.sqlFragments = sqlFragments; this.resource = resource; }
public List<ResultMapping> resolveResultMappings(String resource, String id, Class<?> type) { List<ResultMapping> resultMappings = new ArrayList<>(); MapperBuilderAssistant assistant = new MapperBuilderAssistant(configuration, resource);