All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tenio.interstellar.context.mybatis.DataObjectWrapperFactory Maven / Gradle / Ivy

package org.tenio.interstellar.context.mybatis;

import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.reflection.wrapper.ObjectWrapper;
import org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory;
import org.tenio.interstellar.context.DataObject;

/**
 * TODO
 * 

* @author: Ban Tenio * @version: 1.0 */ public class DataObjectWrapperFactory implements ObjectWrapperFactory { @Override public boolean hasWrapperFor(Object object) { return object instanceof DataObject; } @Override public ObjectWrapper getWrapperFor(MetaObject metaObject, Object object) { return new DataObjectWrapper(metaObject, (DataObject) object); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy