fixed
crawler //
This commit is contained in:
parent
5dc415a6d1
commit
3bccb0220d
|
@ -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<NoAuthAgent> 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<NoAuthAgent> 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<NoAuthAgent> authAgentList = null;
|
||||
// try {
|
||||
// authAgentList = (List<NoAuthAgent>)query.getResultList();
|
||||
// }catch(Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }finally {
|
||||
// return authAgentList;
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//}
|
|
@ -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, Long> {
|
||||
// NoAuthAgent findByTempKey(NoAuthAgent noAuthAgent);
|
||||
// List<NoAuthAgent> findAllByNoAuth(NoAuthAgent noAuthAgent);
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user