package org.beetl.sql.mapper.internal;

import org.beetl.sql.core.SQLManager;
import org.beetl.sql.mapper.MapperInvoke;

import java.lang.reflect.Method;

/**
 * 生成select * from table where id = ? for update 的行级锁查询语句
 * create time : 2017-6-26 13:04
 *
 * @author darren
 */
public class LockAMI extends MapperInvoke {

	@Override
    public Object call(SQLManager sm, Class entityClass,  Method m, Object[] args) {
        return sm.lock(entityClass, args[0]);
    }

}
