AuthScopeDaoImpl.java
944 Bytes
/*
* Copyright (c) 2014 www.diligrp.com All rights reserved.
* 本软件源代码版权归----所有,未经许可不得任意复制与传播.
*/
package com.dili.titan.dao.impl;
import com.dili.titan.dao.AuthScopeDao;
import com.dili.titan.dao.base.BaseDaoImpl;
import com.dili.titan.domain.AuthScope;
import org.springframework.stereotype.Repository;
/**
* AuthScopeDao 实现类
* @author dev-center
* @since 2014-10-29
*/
@Repository("authScopeDao")
public class AuthScopeDaoImpl extends BaseDaoImpl<AuthScope,Long> implements AuthScopeDao {
private final static String NAMESPACE = "com.diligrp.titan.dao.AuthScopeDao.";
//返回本DAO命名空间,并添加statement
public String getNameSpace(String statement) {
return NAMESPACE + statement;
}
@Override
public boolean deleteByAuthId(Long authId) {
return this.getSqlTemplate(false, false).delete(this.getNameSpace("deleteByAuthId"), authId)>0 ? true : false;
}
}