Module bus.pager

Class MetaObject

java.lang.Object
org.miaixz.bus.pager.binding.MetaObject

public class MetaObject extends Object
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
    Modifier and Type
    Field
    Description
    static Method
    The Method object representing the forObject method of MyBatis's MetaObject.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.ibatis.reflection.MetaObject
    forObject(Object object)
    Invokes the appropriate forObject method of MyBatis's MetaObject to create a MetaObject instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • method

      public static Method method
      The Method object representing the forObject method of MyBatis's MetaObject. This field is initialized statically to ensure compatibility with different MyBatis versions.
  • Constructor Details

    • MetaObject

      public MetaObject()
  • Method Details

    • forObject

      public static org.apache.ibatis.reflection.MetaObject forObject(Object object)
      Invokes the appropriate forObject method of MyBatis's MetaObject to create a MetaObject instance.
      Parameters:
      object - the object for which to create a MetaObject
      Returns:
      a MetaObject instance for the given object
      Throws:
      org.miaixz.bus.core.lang.exception.PageException - if an error occurs during method invocation