<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:aop="http://www.springframework.org/schema/aop" xmlns="http://www.springframework.org/schema/beans"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">


<!-- 
	<aop:config>
		<aop:pointcut id="tfrWriteTemplateTxMethods" expression="execution(* gov.va.med.cds.template.TemplateCachePersistenceInterface.*(..))"/>
		<aop:advisor advice-ref="tfrWriteTemplateTxAdvice"  pointcut-ref="tfrWriteTemplateTxMethods" order="1"/>
	</aop:config>

	<tx:advice id="tfrWriteTemplateTxAdvice" transaction-manager="tfrTransactionManager">
		<tx:attributes>
			<tx:method name="saveTemplateMetaDataToPersistence" propagation="REQUIRED" isolation="READ_COMMITTED" />
		</tx:attributes>
	</tx:advice>
 -->	
	<aop:config>
		<aop:pointcut id="tfrReadTemplateTxMethods" expression="execution(* gov.va.med.cds.template.TemplateCachePersistenceInterface.*(..))"/>
		<aop:advisor advice-ref="tfrReadTemplateTxAdvice"  pointcut-ref="tfrReadTemplateTxMethods" order="1"/>
	</aop:config>

	<tx:advice id="tfrReadTemplateTxAdvice" transaction-manager="tfrTransactionManager">
		<tx:attributes>
			<tx:method name="loadTemplateIntoCache" propagation="SUPPORTS" isolation="READ_COMMITTED"
				read-only="true" />
			<tx:method name="loadAllTemplatesIntoCache" propagation="SUPPORTS" isolation="READ_COMMITTED"
				read-only="true" />
		</tx:attributes>
	</tx:advice>

	<aop:config>
		<aop:pointcut id="tfrReadFilterTxMethods" expression="execution(* gov.va.med.cds.filter.FilterCachePersistenceInterface.*(..))"/>
		<aop:advisor advice-ref="tfrReadFilterTxAdvice"  pointcut-ref="tfrReadFilterTxMethods" order="1"/>
	</aop:config>

	<tx:advice id="tfrReadFilterTxAdvice" transaction-manager="tfrTransactionManager">
		<tx:attributes>
			<tx:method name="loadFilterIntoMemoryCache" propagation="SUPPORTS" isolation="READ_COMMITTED"
				read-only="true" />
			<tx:method name="loadAllFilterSchemasIntoMemoryCache" propagation="SUPPORTS" isolation="READ_COMMITTED"
				read-only="true" />
			<tx:method name="getFilterIdentifiers" propagation="SUPPORTS" isolation="READ_COMMITTED"
				read-only="true" />
		</tx:attributes>
	</tx:advice>

<!-- 
	<aop:config>
		<aop:pointcut id="tfrWriteFilterTxMethods" expression="execution(* gov.va.med.cds.filter.FilterCachePersistenceInterface.*(..))"/>
		<aop:advisor advice-ref="tfrWriteFilterTxAdvice"  pointcut-ref="tfrWriteFilterTxMethods" order="1"/>
	</aop:config>

	<tx:advice id="tfrWriteFilterTxAdvice" transaction-manager="tfrTransactionManager">
		<tx:attributes>
			<tx:method name="removeFilterSchema" propagation="REQUIRED" isolation="READ_COMMITTED" />
			<tx:method name="replaceFilterPersistence" propagation="REQUIRED" isolation="READ_COMMITTED" />
			<tx:method name="persistFilterSchema" propagation="REQUIRED" isolation="READ_COMMITTED" />
		</tx:attributes>
	</tx:advice>
 -->	


</beans>
