sage-dao.1.0.19.source-code.message-dao.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2013-2018 butor.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <bean id="messageDsCfg" parent="baseDsCfg"> <property name="jdbcUrl" value="${db.message.jdbcUrl}" /> <property name="username" value="${db.message.username}" /> <property name="password"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${db.message.passwordFile}" /> </bean> </property> </bean> <bean name="messageAttrSetDao" parent="attrSetDao"> <property name="dataSource" ref="messageDs" /> <property name="sqlLogger" ref="sqlLogger"/> </bean> <bean id="messageDao" class="com.butor.message.dao.message.MessageDaoImpl"> <property name="dataSource" ref="messageDs" /> <property name="sqlLogger" ref="sqlLogger"/> <property name="authDao" ref="authDao" /> <property name="authDataSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/auth/secAuth/authData.sql,classpath:sql/auth/secAuth/authData.sql" /> </bean> </property> <property name="checkReceivedSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/checkReceived.sql,classpath:sql/message/message/checkReceived.sql" /> </bean> </property> <property name="listReceivedSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/listReceived.sql,classpath:sql/message/message/listReceived.sql" /> </bean> </property> <property name="deleteMessageSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/delete.sql,classpath:sql/message/message/delete.sql" /> </bean> </property> <property name="insertMessageSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/insert.sql,classpath:sql/message/message/insert.sql" /> </bean> </property> <property name="insertDeletedMessageSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/insertDeleted.sql,classpath:sql/message/message/insertDeleted.sql" /> </bean> </property> <property name="readMessageSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/read.sql,classpath:sql/message/message/read.sql" /> </bean> </property> <property name="updateMessageSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/message/update.sql,classpath:sql/message/message/update.sql" /> </bean> </property> </bean> <bean id="sentMessageDao" class="com.butor.message.dao.message.SentMessageDaoImpl"> <property name="dataSource" ref="messageDs" /> <property name="sqlLogger" ref="sqlLogger"/> <property name="authDao" ref="authDao" /> <property name="authDataSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/auth/secAuth/authData.sql,classpath:sql/auth/secAuth/authData.sql" /> </bean> </property> <property name="listSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/sentMessage/list.sql,classpath:sql/message/sentMessage/list.sql" /> </bean> </property> <property name="deleteSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/sentMessage/delete.sql,classpath:sql/message/sentMessage/delete.sql" /> </bean> </property> <property name="insertSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/sentMessage/insert.sql,classpath:sql/message/sentMessage/insert.sql" /> </bean> </property> <property name="readSql"> <bean class="org.butor.spring.StringResourceFactoryBean"> <constructor-arg value="${conf.dir}sql/message/sentMessage/read.sql,classpath:sql/message/sentMessage/read.sql" /> </bean> </property> </bean> </beans>