From 3bccb0220d24651d644102b8ce72ad79da3638bb Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 22 Jun 2017 20:21:35 +0900 Subject: [PATCH] fixed crawler // --- .../noauthagent/dao/JPANoAuthAgentDAO.java | 42 -------- .../noauthagent/dao/NoAuthAgentDao.java | 16 ---- .../module/noauthagent/model/NoAuthAgent.java | 96 ------------------- 3 files changed, 154 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/module/noauthagent/dao/JPANoAuthAgentDAO.java delete mode 100644 src/main/java/com/loafle/overflow/module/noauthagent/dao/NoAuthAgentDao.java delete mode 100644 src/main/java/com/loafle/overflow/module/noauthagent/model/NoAuthAgent.java diff --git a/src/main/java/com/loafle/overflow/module/noauthagent/dao/JPANoAuthAgentDAO.java b/src/main/java/com/loafle/overflow/module/noauthagent/dao/JPANoAuthAgentDAO.java deleted file mode 100644 index 36b7fbd..0000000 --- a/src/main/java/com/loafle/overflow/module/noauthagent/dao/JPANoAuthAgentDAO.java +++ /dev/null @@ -1,42 +0,0 @@ -//package com.loafle.overflow.module.noauthagent.dao; -// -//import com.loafle.overflow.commons.dao.JPABaseDAO; -//import com.loafle.overflow.module.noauthagent.model.NoAuthAgent; -// -//import javax.persistence.Query; -//import java.util.List; -// -///** -// * Created by root on 17. 5. 30. -// */ -//public class JPANoAuthAgentDAO extends JPABaseDAO implements NoAuthAgentDao { -// public NoAuthAgent findByTempKey(NoAuthAgent noAuthAgent) { -// Query query = getEntityManager().createNativeQuery("SELECT na.* FROM NOAUTH_AGENT na WHERE na.TEMP_KEY = :tempkey", NoAuthAgent.class); -// query.setParameter("tempkey", noAuthAgent.getTempKey()); -// -// NoAuthAgent authAgent = null; -// try { -// authAgent = (NoAuthAgent)query.getSingleResult(); -// }catch(Exception e) { -// e.printStackTrace(); -// }finally { -// return authAgent; -// } -// } -// -// public List findAllByNoAuth(NoAuthAgent noAuthAgent) { -// -// Query query = getEntityManager().createNativeQuery("SELECT na.* FROM NOAUTH_AGENT na WHERE na.AUTH_STATUS != :authStatus", NoAuthAgent.class); -// query.setParameter("authStatus", noAuthAgent.getAuthStatus().toString()); -// -// List authAgentList = null; -// try { -// authAgentList = (List)query.getResultList(); -// }catch(Exception e) { -// e.printStackTrace(); -// }finally { -// return authAgentList; -// } -// -// } -//} diff --git a/src/main/java/com/loafle/overflow/module/noauthagent/dao/NoAuthAgentDao.java b/src/main/java/com/loafle/overflow/module/noauthagent/dao/NoAuthAgentDao.java deleted file mode 100644 index 8a84222..0000000 --- a/src/main/java/com/loafle/overflow/module/noauthagent/dao/NoAuthAgentDao.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.loafle.overflow.module.noauthagent.dao; - -import com.loafle.overflow.module.noauthagent.model.NoAuthAgent; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - * Created by root on 17. 5. 30. - */ -@Repository -public interface NoAuthAgentDao extends JpaRepository { -// NoAuthAgent findByTempKey(NoAuthAgent noAuthAgent); -// List findAllByNoAuth(NoAuthAgent noAuthAgent); -} diff --git a/src/main/java/com/loafle/overflow/module/noauthagent/model/NoAuthAgent.java b/src/main/java/com/loafle/overflow/module/noauthagent/model/NoAuthAgent.java deleted file mode 100644 index df6d336..0000000 --- a/src/main/java/com/loafle/overflow/module/noauthagent/model/NoAuthAgent.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.loafle.overflow.module.noauthagent.model; - - -import com.loafle.overflow.module.noauthprobe.type.AuthType; - -import javax.persistence.*; -import java.util.Date; - -/** - * Created by root on 17. 5. 30. - */ -@Entity -@Table(name = "NOAUTH_AGENT") -public class NoAuthAgent { - - @Id - @GeneratedValue(strategy= GenerationType.IDENTITY) - private Long id; - - @Column(name="TEMP_KEY", unique=true, nullable=false) - private String tempKey; - - @Temporal(TemporalType.TIMESTAMP) - @Column(name="DATE", nullable=false) - private Date date; - - @Column(name="API_KEY", unique = true, nullable=false) - private String apiKey; - - @Column(name="AUTH_STATUS", nullable=false) - @Enumerated(EnumType.STRING) - private AuthType authStatus; - - @Column(name="LOCAL_IP", nullable=false) - private long localIP; - - @Column(name="HOST_NAME") - private String hostName; - - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getTempKey() { - return tempKey; - } - - public void setTempKey(String tempKey) { - this.tempKey = tempKey; - } - - public Date getDate() { - return date; - } - - public void setDate(Date date) { - this.date = date; - } - - public String getApiKey() { - return apiKey; - } - - public void setApiKey(String apiKey) { - this.apiKey = apiKey; - } - - public AuthType getAuthStatus() { - return authStatus; - } - - public void setAuthStatus(AuthType authStatus) { - this.authStatus = authStatus; - } - - public long getLocalIP() { - return localIP; - } - - public void setLocalIP(long localIP) { - this.localIP = localIP; - } - - public String getHostName() { - return hostName; - } - - public void setHostName(String hostName) { - this.hostName = hostName; - } -}