java.lang.Object
org.miaixz.bus.pager.binding.MetaObject
Provides a compatibility layer for accessing MyBatis's
MetaObject.forObject method across different MyBatis
versions. It dynamically determines the correct method signature based on the available MyBatis reflection classes.- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
method
TheMethodobject representing theforObjectmethod of MyBatis's MetaObject. This field is initialized statically to ensure compatibility with different MyBatis versions.
-
-
Constructor Details
-
MetaObject
public MetaObject()
-
-
Method Details
-
forObject
Invokes the appropriateforObjectmethod of MyBatis's MetaObject to create aMetaObjectinstance.- Parameters:
object- the object for which to create a MetaObject- Returns:
- a
MetaObjectinstance for the given object - Throws:
org.miaixz.bus.core.lang.exception.PageException- if an error occurs during method invocation
-