• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / mybatis-3 / 2686

01 Feb 2025 09:55PM UTC coverage: 87.093% (-0.1%) from 87.217%
2686

Pull #3379

github

web-flow
Merge c97c5c598 into 3d71c862a
Pull Request #3379: Resolve type handler based on `java.lang.reflect.Type` instead of `Class` and respect runtime JDBC type

3825 of 4663 branches covered (82.03%)

515 of 579 new or added lines in 36 files covered. (88.95%)

28 existing lines in 6 files now uncovered.

9912 of 11381 relevant lines covered (87.09%)

0.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/org/apache/ibatis/reflection/wrapper/ObjectWrapper.java
1
/*
2
 *    Copyright 2009-2025 the original author or authors.
3
 *
4
 *    Licensed under the Apache License, Version 2.0 (the "License");
5
 *    you may not use this file except in compliance with the License.
6
 *    You may obtain a copy of the License at
7
 *
8
 *       https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
package org.apache.ibatis.reflection.wrapper;
17

18
import java.lang.reflect.Type;
19
import java.util.List;
20
import java.util.Map.Entry;
21

22
import org.apache.ibatis.reflection.MetaObject;
23
import org.apache.ibatis.reflection.factory.ObjectFactory;
24
import org.apache.ibatis.reflection.property.PropertyTokenizer;
25

26
/**
27
 * @author Clinton Begin
28
 */
29
public interface ObjectWrapper {
30

31
  Object get(PropertyTokenizer prop);
32

33
  void set(PropertyTokenizer prop, Object value);
34

35
  String findProperty(String name, boolean useCamelCaseMapping);
36

37
  String[] getGetterNames();
38

39
  String[] getSetterNames();
40

41
  Class<?> getSetterType(String name);
42

43
  Class<?> getGetterType(String name);
44

45
  default Entry<Type, Class<?>> getGenericSetterType(String name) {
NEW
46
    throw new UnsupportedOperationException(
×
NEW
47
        "'" + this.getClass() + "' must override the default method 'getGenericSetterType()'.");
×
48
  }
49

50
  default Entry<Type, Class<?>> getGenericGetterType(String name) {
NEW
51
    throw new UnsupportedOperationException(
×
NEW
52
        "'" + this.getClass() + "' must override the default method 'getGenericGetterType()'.");
×
53
  }
54

55
  boolean hasSetter(String name);
56

57
  boolean hasGetter(String name);
58

59
  MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory);
60

61
  boolean isCollection();
62

63
  void add(Object element);
64

65
  <E> void addAll(List<E> element);
66

67
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc