ing
This commit is contained in:
parent
eb6ae510ae
commit
64a3f7fd8f
2
pom.xml
2
pom.xml
|
@ -50,7 +50,7 @@
|
|||
<dependency>
|
||||
<groupId>com.loafle.overflow</groupId>
|
||||
<artifactId>commons-java</artifactId>
|
||||
<version>1.0.21-SNAPSHOT</version>
|
||||
<version>1.0.22-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaCryptoTypeDAO extends JpaRepository<MetaCryptoType, Short> {
|
||||
MetaCryptoType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaEmailTypeDAO extends JpaRepository<MetaEmailType, Short> {
|
||||
MetaEmailType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaHistoryTypeDAO extends JpaRepository<MetaHistoryType, Integer> {
|
||||
MetaHistoryType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaIPTypeDAO extends JpaRepository<MetaIPType, Short> {
|
||||
MetaIPType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaInfraTypeDAO extends JpaRepository<MetaInfraType, Integer> {
|
||||
MetaInfraType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaInputTypeDAO extends JpaRepository<MetaInputType, Short> {
|
||||
MetaInputType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaMemberStatusDAO extends JpaRepository<MetaMemberStatus, Short> {
|
||||
MetaMemberStatus findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,6 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaNoAuthProbeStatusDAO extends JpaRepository<MetaNoAuthProbeStatus, Short> {
|
||||
|
||||
MetaNoAuthProbeStatus findByKey(String key);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaPortTypeDAO extends JpaRepository<MetaPortType, Short> {
|
||||
MetaPortType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaProbeStatusDAO extends JpaRepository<MetaProbeStatus, Short> {
|
||||
MetaProbeStatus findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,6 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaTargetHostTypeDAO extends JpaRepository<MetaTargetHostType, Integer> {
|
||||
MetaTargetHostType findByKey(String key);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaTargetServiceTypeDAO extends JpaRepository<MetaTargetServiceType, Integer> {
|
||||
MetaTargetServiceType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaTargetStatusDAO extends JpaRepository<MetaTargetStatus, Short> {
|
||||
MetaTargetStatus findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaTargetTypeCategoryDAO extends JpaRepository<MetaTargetTypeCategory, Integer> {
|
||||
MetaTargetTypeCategory findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaTargetTypeDAO extends JpaRepository<MetaTargetType, Integer> {
|
||||
MetaTargetType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -9,4 +9,5 @@ import org.springframework.stereotype.Repository;
|
|||
*/
|
||||
@Repository
|
||||
public interface MetaTargetZoneTypeDAO extends JpaRepository<MetaTargetZoneType, Integer> {
|
||||
MetaTargetZoneType findByKey(String key);
|
||||
}
|
||||
|
|
|
@ -16,9 +16,10 @@ import java.util.List;
|
|||
public class CentralMetaCrawlerInputItemService implements MetaCrawlerInputItemService {
|
||||
|
||||
@Autowired
|
||||
private MetaCrawlerInputItemDAO crawlerInputItemDAO;
|
||||
private MetaCrawlerInputItemDAO metaCrawlerInputItemDAO;
|
||||
|
||||
@Override
|
||||
public List<MetaCrawlerInputItem> readAllByMetaCrawlerID(Short metaCrawlerID) throws OverflowException {
|
||||
return this.crawlerInputItemDAO.findAllByMetaCrawlerId(metaCrawlerID);
|
||||
return this.metaCrawlerInputItemDAO.findAllByMetaCrawlerId(metaCrawlerID);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaCrawlerMappingDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaCrawlerMapping;
|
||||
import com.loafle.overflow.service.central.meta.MetaCrawlerMappingService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,12 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaCrawlerMappingService")
|
||||
public class CentralMetaCrawlerMappingService {
|
||||
public class CentralMetaCrawlerMappingService implements MetaCrawlerMappingService {
|
||||
|
||||
@Autowired
|
||||
private MetaCrawlerMappingDAO metaCrawlerMappingDAO;
|
||||
|
||||
@Override
|
||||
public List<MetaCrawlerMapping> readAll() throws OverflowException {
|
||||
return this.metaCrawlerMappingDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaCrawlerDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaCrawler;
|
||||
import com.loafle.overflow.service.central.meta.MetaCrawlerService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,12 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaCrawlerService")
|
||||
public class CentralMetaCrawlerService {
|
||||
public class CentralMetaCrawlerService implements MetaCrawlerService {
|
||||
|
||||
@Autowired
|
||||
private MetaCrawlerDAO metaCrawlerDAO;
|
||||
|
||||
@Override
|
||||
public List<MetaCrawler> readAll() throws OverflowException {
|
||||
return this.metaCrawlerDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaCryptoTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaCryptoType;
|
||||
import com.loafle.overflow.service.central.meta.MetaCryptoTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,21 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaCryptoTypeService")
|
||||
public class CentralMetaCryptoTypeService {
|
||||
|
||||
public class CentralMetaCryptoTypeService implements MetaCryptoTypeService {
|
||||
@Autowired
|
||||
private MetaCryptoTypeDAO metaCryptoTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaCryptoType regist(MetaCryptoType metaCryptoType) throws OverflowException {
|
||||
return this.metaCryptoTypeDAO.save(metaCryptoType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaCryptoType readByKey(String key) throws OverflowException {
|
||||
return this.metaCryptoTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaCryptoType> readAll() throws OverflowException {
|
||||
return this.metaCryptoTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaEmailTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaEmailType;
|
||||
import com.loafle.overflow.service.central.meta.MetaEmailTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaEmailTypeService")
|
||||
public class CentralMetaEmailTypeService {
|
||||
public class CentralMetaEmailTypeService implements MetaEmailTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaEmailTypeDAO metaEmailTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaEmailType regist(MetaEmailType metaCryptoType) throws OverflowException {
|
||||
return this.metaEmailTypeDAO.save(metaCryptoType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaEmailType readByKey(String key) throws OverflowException {
|
||||
return this.metaEmailTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaEmailType> readAll() throws OverflowException {
|
||||
return this.metaEmailTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -17,17 +17,24 @@ import java.util.List;
|
|||
public class CentralMetaHistoryTypeService implements MetaHistoryTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaHistoryTypeDAO hisotyTypeDAO;
|
||||
|
||||
public List<MetaHistoryType> readAll() throws OverflowException {
|
||||
return this.hisotyTypeDAO.findAll();
|
||||
}
|
||||
private MetaHistoryTypeDAO metaHistoryTypeDAO;
|
||||
|
||||
public MetaHistoryType regist(MetaHistoryType type) throws OverflowException {
|
||||
return this.hisotyTypeDAO.save(type);
|
||||
return this.metaHistoryTypeDAO.save(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaHistoryType readByKey(String key) throws OverflowException {
|
||||
return this.metaHistoryTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaHistoryType> readAll() throws OverflowException {
|
||||
return this.metaHistoryTypeDAO.findAll();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaHistoryType> registAll(List<MetaHistoryType> metaHistoryTypes) throws OverflowException {
|
||||
return (List<MetaHistoryType>) this.hisotyTypeDAO.saveAll(metaHistoryTypes);
|
||||
return (List<MetaHistoryType>) this.metaHistoryTypeDAO.saveAll(metaHistoryTypes);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaIPTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaIPType;
|
||||
import com.loafle.overflow.service.central.meta.MetaIPTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaIPTypeService")
|
||||
public class CentralMetaIPTypeService {
|
||||
public class CentralMetaIPTypeService implements MetaIPTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaIPTypeDAO metaIPTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaIPType regist(MetaIPType metaIPType) throws OverflowException {
|
||||
return this.metaIPTypeDAO.save(metaIPType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaIPType readByKey(String key) throws OverflowException {
|
||||
return this.metaIPTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaIPType> readAll() throws OverflowException {
|
||||
return this.metaIPTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -17,9 +17,20 @@ import java.util.List;
|
|||
public class CentralMetaInfraTypeService implements MetaInfraTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaInfraTypeDAO infraTypeDAO;
|
||||
private MetaInfraTypeDAO metaInfraTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaInfraType regist(MetaInfraType metaCryptoType) throws OverflowException {
|
||||
return this.metaInfraTypeDAO.save(metaCryptoType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaInfraType readByKey(String key) throws OverflowException {
|
||||
return this.metaInfraTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaInfraType> readAll() throws OverflowException {
|
||||
return this.infraTypeDAO.findAll();
|
||||
return this.metaInfraTypeDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,20 @@ import java.util.List;
|
|||
public class CentralMetaInputTypeService implements MetaInputTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaInputTypeDAO inputTypeDAO;
|
||||
private MetaInputTypeDAO metaInputTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaInputType regist(MetaInputType metaInputType) throws OverflowException {
|
||||
return this.metaInputTypeDAO.save(metaInputType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaInputType readByKey(String key) throws OverflowException {
|
||||
return this.metaInputTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaInputType> readAll() throws OverflowException {
|
||||
return this.inputTypeDAO.findAll();
|
||||
return this.metaInputTypeDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,20 @@ import java.util.List;
|
|||
public class CentralMetaMemberStatusService implements MetaMemberStatusService {
|
||||
|
||||
@Autowired
|
||||
private MetaMemberStatusDAO memberStatusDAO;
|
||||
private MetaMemberStatusDAO metaMemberStatusDAO;
|
||||
|
||||
@Override
|
||||
public MetaMemberStatus regist(MetaMemberStatus metaMemberStatus) throws OverflowException {
|
||||
return this.metaMemberStatusDAO.save(metaMemberStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaMemberStatus readByKey(String key) throws OverflowException {
|
||||
return this.metaMemberStatusDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaMemberStatus> readAll() throws OverflowException {
|
||||
return this.memberStatusDAO.findAll();
|
||||
return this.metaMemberStatusDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,20 @@ import java.util.List;
|
|||
@Service("MetaNoAuthProbeStatusService")
|
||||
public class CentralMetaNoAuthProbeStatusService implements MetaNoAuthProbeStatusService {
|
||||
@Autowired
|
||||
private MetaNoAuthProbeStatusDAO noAuthProbeStatusDAO;
|
||||
private MetaNoAuthProbeStatusDAO metaNoAuthProbeStatusDAO;
|
||||
|
||||
@Override
|
||||
public MetaNoAuthProbeStatus regist(MetaNoAuthProbeStatus metaNoAuthProbeStatus) throws OverflowException {
|
||||
return this.metaNoAuthProbeStatusDAO.save(metaNoAuthProbeStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaNoAuthProbeStatus readByKey(String key) throws OverflowException {
|
||||
return this.metaNoAuthProbeStatusDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaNoAuthProbeStatus> readAll() throws OverflowException {
|
||||
return this.noAuthProbeStatusDAO.findAll();
|
||||
return this.metaNoAuthProbeStatusDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaPortTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaPortType;
|
||||
import com.loafle.overflow.service.central.meta.MetaPortTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaPortTypeService")
|
||||
public class CentralMetaPortTypeService {
|
||||
public class CentralMetaPortTypeService implements MetaPortTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaPortTypeDAO metaPortTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaPortType regist(MetaPortType metaCryptoType) throws OverflowException {
|
||||
return this.metaPortTypeDAO.save(metaCryptoType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaPortType readByKey(String key) throws OverflowException {
|
||||
return this.metaPortTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaPortType> readAll() throws OverflowException {
|
||||
return this.metaPortTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -16,9 +16,20 @@ import java.util.List;
|
|||
public class CentralMetaProbeStatusService implements MetaProbeStatusService {
|
||||
|
||||
@Autowired
|
||||
private MetaProbeStatusDAO probeStatusDAO;
|
||||
private MetaProbeStatusDAO metaProbeStatusDAO;
|
||||
|
||||
@Override
|
||||
public MetaProbeStatus regist(MetaProbeStatus metaProbeStatus) throws OverflowException {
|
||||
return this.metaProbeStatusDAO.save(metaProbeStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaProbeStatus readByKey(String key) throws OverflowException {
|
||||
return this.metaProbeStatusDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaProbeStatus> readAll() throws OverflowException {
|
||||
return this.probeStatusDAO.findAll();
|
||||
return this.metaProbeStatusDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetHostTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetHostType;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetHostTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetHostTypeService")
|
||||
public class CentralMetaTargetHostTypeService {
|
||||
public class CentralMetaTargetHostTypeService implements MetaTargetHostTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetHostTypeDAO metaTargetHostTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaTargetHostType regist(MetaTargetHostType metaTargetHostType) throws OverflowException {
|
||||
return this.metaTargetHostTypeDAO.save(metaTargetHostType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaTargetHostType readByKey(String key) throws OverflowException {
|
||||
return this.metaTargetHostTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaTargetHostType> readAll() throws OverflowException {
|
||||
return this.metaTargetHostTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetServiceTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetServiceType;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetServiceTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetServiceTypeService")
|
||||
public class CentralMetaTargetServiceTypeService {
|
||||
public class CentralMetaTargetServiceTypeService implements MetaTargetServiceTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetServiceTypeDAO metaTargetServiceTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaTargetServiceType regist(MetaTargetServiceType metaTargetServiceType) throws OverflowException {
|
||||
return this.metaTargetServiceTypeDAO.save(metaTargetServiceType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaTargetServiceType readByKey(String key) throws OverflowException {
|
||||
return this.metaTargetServiceTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaTargetServiceType> readAll() throws OverflowException {
|
||||
return this.metaTargetServiceTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetStatusDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetStatus;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetStatusService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetStatusService")
|
||||
public class CentralMetaTargetStatusService {
|
||||
public class CentralMetaTargetStatusService implements MetaTargetStatusService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetStatusDAO metaTargetStatusDAO;
|
||||
|
||||
@Override
|
||||
public MetaTargetStatus regist(MetaTargetStatus metaTargetStatus) throws OverflowException {
|
||||
return this.metaTargetStatusDAO.save(metaTargetStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaTargetStatus readByKey(String key) throws OverflowException {
|
||||
return this.metaTargetStatusDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaTargetStatus> readAll() throws OverflowException {
|
||||
return this.metaTargetStatusDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeCategoryMappingDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetTypeCategoryMapping;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetTypeCategoryMappingService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,12 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetTypeCategoryMappingService")
|
||||
public class CentralMetaTargetTypeCategoryMappingService {
|
||||
public class CentralMetaTargetTypeCategoryMappingService implements MetaTargetTypeCategoryMappingService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetTypeCategoryMappingDAO metaTargetTypeCategoryMappingDAO;
|
||||
|
||||
@Override
|
||||
public List<MetaTargetTypeCategoryMapping> readAll() throws OverflowException {
|
||||
return this.metaTargetTypeCategoryMappingDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeCategoryDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetTypeCategory;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetTypeCategoryService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetTypeCategoryService")
|
||||
public class CentralMetaTargetTypeCategoryService {
|
||||
public class CentralMetaTargetTypeCategoryService implements MetaTargetTypeCategoryService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetTypeCategoryDAO metaTargetTypeCategoryDAO;
|
||||
|
||||
@Override
|
||||
public MetaTargetTypeCategory regist(MetaTargetTypeCategory metaTargetTypeCategory) throws OverflowException {
|
||||
return this.metaTargetTypeCategoryDAO.save(metaTargetTypeCategory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaTargetTypeCategory readByKey(String key) throws OverflowException {
|
||||
return this.metaTargetTypeCategoryDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaTargetTypeCategory> readAll() throws OverflowException {
|
||||
return this.metaTargetTypeCategoryDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetType;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,11 +14,22 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetTypeService")
|
||||
public class CentralMetaTargetTypeService {
|
||||
public class CentralMetaTargetTypeService implements MetaTargetTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetTypeDAO metaTargetTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaTargetType regist(MetaTargetType metaTargetType) throws OverflowException {
|
||||
return this.metaTargetTypeDAO.save(metaTargetType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaTargetType readByKey(String key) throws OverflowException {
|
||||
return this.metaTargetTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaTargetType> readAll() throws OverflowException {
|
||||
return this.metaTargetTypeDAO.findAll();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.loafle.overflow.central.module.meta.service;
|
|||
import com.loafle.overflow.central.module.meta.dao.MetaTargetZoneTypeDAO;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.meta.MetaTargetZoneType;
|
||||
import com.loafle.overflow.service.central.meta.MetaTargetZoneTypeService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -12,12 +14,23 @@ import java.util.List;
|
|||
* Created by snoop on 17. 7. 27.
|
||||
*/
|
||||
@Service("MetaTargetZoneTypeService")
|
||||
public class CentralMetaTargetZoneTypeService {
|
||||
public class CentralMetaTargetZoneTypeService implements MetaTargetZoneTypeService {
|
||||
|
||||
@Autowired
|
||||
private MetaTargetZoneTypeDAO metaTargetZoneType;
|
||||
private MetaTargetZoneTypeDAO metaTargetZoneTypeDAO;
|
||||
|
||||
@Override
|
||||
public MetaTargetZoneType regist(MetaTargetZoneType metaTargetZoneType) throws OverflowException {
|
||||
return this.metaTargetZoneTypeDAO.save(metaTargetZoneType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MetaTargetZoneType readByKey(String key) throws OverflowException {
|
||||
return this.metaTargetZoneTypeDAO.findByKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MetaTargetZoneType> readAll() throws OverflowException {
|
||||
return this.metaTargetZoneType.findAll();
|
||||
return this.metaTargetZoneTypeDAO.findAll();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user