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

com.cory.dao.ClusterDao Maven / Gradle / Ivy

There is a newer version: 0.0.35
Show newest version
package com.cory.dao;

import com.cory.db.annotations.Dao;
import com.cory.db.annotations.Param;
import com.cory.db.annotations.Select;
import com.cory.db.annotations.Update;
import com.cory.enums.ClusterStatus;
import com.cory.model.Cluster;

/**
 * generated by CodeGenerator on 2017/5/10.
 */
@Dao(model = Cluster.class)
public interface ClusterDao extends BaseDao {

    @Select(whereSql = "ip = #{ip}")
    Cluster getByIp(@Param("ip") String ip);

    @Update(columnSql = "modify_time = now(), status = #{status}", whereSql = "ip = #{ip}")
    void updateStatus(@Param("ip") String ip, @Param("status") ClusterStatus status);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy