Skip to content

Commit

Permalink
Entrega capas de Transacciones
Browse files Browse the repository at this point in the history
  • Loading branch information
wagarzon committed Apr 28, 2020
1 parent 7bbecd3 commit 7bf82c9
Show file tree
Hide file tree
Showing 310 changed files with 13,066 additions and 470 deletions.

This file was deleted.

This file was deleted.

10 changes: 10 additions & 0 deletions artifact/libraries/QTDIRC01/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java/"/>
<classpathentry kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions artifact/libraries/QTDIRC01/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>QTDIRC01</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<groupId>com.bbva.qtdi</groupId>

<artifactId>QTDIR001</artifactId>
<name>QTDIR001</name>
<artifactId>QTDIRC01</artifactId>
<name>QTDIRC01</name>
<version>0.0.1</version>
<packaging>bundle</packaging>

Expand Down Expand Up @@ -72,13 +72,13 @@
<version>${apx.core.online.version}</version>
<optional>true</optional>
</dependency>
<!-- DTO's -->

<!-- DTO's -->
<dependency>
<groupId>com.bbva.qtdi.employees.dto</groupId>
<artifactId>QTDIC001</artifactId>
<version>0.0.1</version>
</dependency>

<!-- Dependencias test -->

</dependencies>
Expand All @@ -97,7 +97,7 @@
<Bundle-Category>library-jdbc</Bundle-Category>
<Import-Package>
com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}",
com.bbva.qtdi.lib.r001.*;version="${osgi.version.manifest}",
com.bbva.qtdi.lib.rc01.*;version="${osgi.version.manifest}",
com.bbva.elara.*;version="${osgi.version.manifest}"
;resolution:="optional",
org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.bbva.qtdi.lib.rc01;

public interface QTDIRC01 {

void execute();

}
10 changes: 10 additions & 0 deletions artifact/libraries/QTDIRC01IMPL/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java/"/>
<classpathentry kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions artifact/libraries/QTDIRC01IMPL/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>QTDIRC01IMPL</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<groupId>com.bbva.qtdi</groupId>

<artifactId>QTDIR001IMPL</artifactId>
<name>QTDIR001IMPL</name>
<artifactId>QTDIRC01IMPL</artifactId>
<name>QTDIRC01IMPL</name>
<version>0.0.1</version>
<packaging>bundle</packaging>

Expand All @@ -22,7 +22,7 @@
<dependencies>
<dependency>
<groupId>com.bbva.qtdi</groupId>
<artifactId>QTDIR001</artifactId>
<artifactId>QTDIRC01</artifactId>
<version>0.0.1</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -84,14 +84,13 @@
<version>${apx.jdbc.version}</version>
<optional>true</optional>
</dependency>

<!-- DTO's -->
<!-- DTO's -->
<dependency>
<groupId>com.bbva.qtdi.employees.dto</groupId>
<artifactId>QTDIC001</artifactId>
<version>0.0.1</version>
</dependency>

<!-- Dependencias test -->
<dependency>
<groupId>org.springframework</groupId>
Expand Down Expand Up @@ -146,7 +145,7 @@
<Bundle-Category>library-jdbc</Bundle-Category>
<Import-Package>
com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}",
com.bbva.qtdi.lib.r001.*;version="${osgi.version.manifest}",
com.bbva.qtdi.lib.rc01.*;version="${osgi.version.manifest}",
com.bbva.elara.*;version="${osgi.version.manifest}"
;resolution:="optional",
org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bbva.qtdi.lib.r001.impl;
package com.bbva.qtdi.lib.rc01.impl;

import java.util.Map;

Expand All @@ -8,11 +8,11 @@
import com.bbva.elara.configuration.manager.application.ApplicationConfigurationService;
import com.bbva.elara.library.AbstractLibrary;
import com.bbva.elara.utility.jdbc.JdbcUtils;
import com.bbva.qtdi.lib.r001.QTDIR001;
import com.bbva.qtdi.lib.rc01.QTDIRC01;

public abstract class QTDIR001Abstract extends AbstractLibrary implements QTDIR001 {
public abstract class QTDIRC01Abstract extends AbstractLibrary implements QTDIRC01 {

private static final Logger LOGGER = LoggerFactory.getLogger(QTDIR001.class);
private static final Logger LOGGER = LoggerFactory.getLogger(QTDIRC01.class);

protected ApplicationConfigurationService applicationConfigurationService;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.bbva.qtdi.lib.r001.impl;
package com.bbva.qtdi.lib.rc01.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.bbva.qtdi.lib.r001.QTDIR001;
import com.bbva.qtdi.lib.rc01.QTDIRC01;

public class QTDIR001Impl extends QTDIR001Abstract {
public class QTDIRC01Impl extends QTDIRC01Abstract {

private static final Logger LOGGER = LoggerFactory.getLogger(QTDIR001.class);
private static final Logger LOGGER = LoggerFactory.getLogger(QTDIRC01.class);

@Override
public void execute() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">


<bean id="qtdiR002" class="com.bbva.qtdi.lib.r002.impl.QTDIR002Impl" parent="qtdiR002Abstract" >
<bean id="qtdiRC01" class="com.bbva.qtdi.lib.rc01.impl.QTDIRC01Impl" parent="qtdiRC01Abstract" >

</bean>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">

<osgi:service id="qtdiR002Osgi" ref="qtdiR002"
interface="com.bbva.qtdi.lib.r002.QTDIR002" />
<osgi:service id="qtdiRC01Osgi" ref="qtdiRC01"
interface="com.bbva.qtdi.lib.rc01.QTDIRC01" />

<osgi:reference id="applicationConfigurationServiceFactory"
bean-name="applicationConfigurationServiceFactory"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ref="bundleContext" />
</bean>

<bean id="qtdiR002Abstract" abstract="true" class="com.bbva.qtdi.lib.r002.impl.QTDIR002Abstract">
<bean id="qtdiRC01Abstract" abstract="true" class="com.bbva.qtdi.lib.rc01.impl.QTDIRC01Abstract">
<property name="applicationConfigurationService" ref="applicationConfigurationService" />
<property name="jdbcUtils" ref="jdbcUtils" />
</bean>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bbva.qtdi.lib.r002;
package com.bbva.qtdi.lib.rc01;

import javax.annotation.Resource;
import org.junit.Before;
Expand All @@ -12,27 +12,27 @@

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
"classpath:/META-INF/spring/QTDIR002-app.xml",
"classpath:/META-INF/spring/QTDIR002-app-test.xml",
"classpath:/META-INF/spring/QTDIR002-arc.xml",
"classpath:/META-INF/spring/QTDIR002-arc-test.xml" })
public class QTDIR002Test {
"classpath:/META-INF/spring/QTDIRC01-app.xml",
"classpath:/META-INF/spring/QTDIRC01-app-test.xml",
"classpath:/META-INF/spring/QTDIRC01-arc.xml",
"classpath:/META-INF/spring/QTDIRC01-arc-test.xml" })
public class QTDIRC01Test {

private static final Logger LOGGER = LoggerFactory
.getLogger(QTDIR002.class);
.getLogger(QTDIRC01.class);

@Resource(name = "qtdiR002")
private QTDIR002 qtdiR002;
@Resource(name = "qtdiRC01")
private QTDIRC01 qtdiRC01;

@Before
public void setUp() throws Exception {
getObjectIntrospection();
}

private Object getObjectIntrospection() throws Exception{
Object result = this.qtdiR002;
if(this.qtdiR002 instanceof Advised){
Advised advised = (Advised) this.qtdiR002;
Object result = this.qtdiRC01;
if(this.qtdiRC01 instanceof Advised){
Advised advised = (Advised) this.qtdiRC01;
result = advised.getTargetSource().getTarget();
}
return result;
Expand All @@ -41,7 +41,7 @@ private Object getObjectIntrospection() throws Exception{
@Test
public void executeTest(){
LOGGER.info("Executing the test...");
qtdiR002.execute();
qtdiRC01.execute();
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bbva.qtdi.lib.r002.factory;
package com.bbva.qtdi.lib.rc01.factory;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Bundle getBundle() {
mockBundle.findEntries(Mockito.anyString(),
Mockito.anyString(), Mockito.eq(true))).thenReturn(
Collections.enumeration(urlList));
Mockito.when(mockBundle.getSymbolicName()).thenReturn("QTDIR001IMPL-0.0.1");
Mockito.when(mockBundle.getSymbolicName()).thenReturn("QTDIRC01IMPL-0.0.1");
Mockito.when(mockBundle.getVersion()).thenReturn(new Version("0.0.1"));
return mockBundle;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
</bean>


<bean id="jdbcUtilsFactory" class="com.bbva.qtdi.lib.r002.factory.JdbcUtilsFactory" />
<bean id="jdbcUtilsFactory" class="com.bbva.qtdi.lib.rc01.factory.JdbcUtilsFactory" />
</beans>
10 changes: 10 additions & 0 deletions artifact/libraries/QTDIRC02/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java/"/>
<classpathentry kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions artifact/libraries/QTDIRC02/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>QTDIRC02</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<groupId>com.bbva.qtdi</groupId>

<artifactId>QTDIR002</artifactId>
<name>QTDIR002</name>
<artifactId>QTDIRC02</artifactId>
<name>QTDIRC02</name>
<version>0.0.1</version>
<packaging>bundle</packaging>

Expand Down Expand Up @@ -72,13 +72,7 @@
<version>${apx.core.online.version}</version>
<optional>true</optional>
</dependency>

<!-- DTO's -->
<dependency>
<groupId>com.bbva.qtdi.employees.dto</groupId>
<artifactId>QTDIC001</artifactId>
<version>0.0.1</version>
</dependency>


<!-- Dependencias test -->

Expand All @@ -97,8 +91,8 @@
<Bundle-SymbolicName>${bundle-library-name}</Bundle-SymbolicName>
<Bundle-Category>library-jdbc</Bundle-Category>
<Import-Package>
com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}",
com.bbva.qtdi.lib.r002.*;version="${osgi.version.manifest}",
com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}",
com.bbva.qtdi.lib.rc02.*;version="${osgi.version.manifest}",
com.bbva.elara.*;version="${osgi.version.manifest}"
;resolution:="optional",
org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.bbva.qtdi.lib.rc02;

public interface QTDIRC02 {

void execute();

}
Loading

0 comments on commit 7bf82c9

Please sign in to comment.