moved package to temparory org.x4o.vasc.etc
This commit is contained in:
parent
3d6ceff732
commit
cc6331b7fe
2
.project
2
.project
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>com.idcanet.vasc</name>
|
<name>vasc</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
|
3
demo-petstore/.settings/org.eclipse.core.resources.prefs
Normal file
3
demo-petstore/.settings/org.eclipse.core.resources.prefs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#Sun Dec 25 17:29:07 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding/<project>=UTF-8
|
5
demo-petstore/.settings/org.eclipse.m2e.core.prefs
Normal file
5
demo-petstore/.settings/org.eclipse.m2e.core.prefs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:03 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -1,10 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
|
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#Sun Dec 25 17:29:07 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding/<project>=UTF-8
|
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:03 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -2,10 +2,10 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>demo-petstore</artifactId>
|
<artifactId>demo-petstore</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>demo-petstore-ear</artifactId>
|
<artifactId>demo-petstore-ear</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</project>
|
</project>
|
|
@ -2,9 +2,8 @@
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
|
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
|
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:07 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:03 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -2,10 +2,10 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>demo-petstore</artifactId>
|
<artifactId>demo-petstore</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>demo-petstore-ejb</artifactId>
|
<artifactId>demo-petstore-ejb</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
<packaging>ejb</packaging>
|
<packaging>ejb</packaging>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-core</artifactId>
|
<artifactId>vasc-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -53,35 +53,35 @@
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.x4o</groupId>
|
<groupId>org.x4o</groupId>
|
||||||
<artifactId>x4o-core</artifactId>
|
<artifactId>x4o-core</artifactId>
|
||||||
<version>${x4o-core.version}</version>
|
<version>${x4o-core.version}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-core</artifactId>
|
<artifactId>vasc-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-backend-jpa</artifactId>
|
<artifactId>vasc-backend-jpa</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-xpql</artifactId>
|
<artifactId>vasc-xpql</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-xpql-ejb3</artifactId>
|
<artifactId>vasc-xpql-ejb3</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-ejb3</artifactId>
|
<artifactId>vasc-ejb3</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
@ -2,17 +2,17 @@ package demo.petstore.models;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascDefaultValue;
|
import org.x4o.vasc.annotations.VascDefaultValue;
|
||||||
import com.idcanet.vasc.annotations.VascDisplayName;
|
import org.x4o.vasc.annotations.VascDisplayName;
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldOrder;
|
import org.x4o.vasc.annotations.VascFieldOrder;
|
||||||
import com.idcanet.vasc.annotations.VascFieldType;
|
import org.x4o.vasc.annotations.VascFieldType;
|
||||||
import com.idcanet.vasc.annotations.VascI18n;
|
import org.x4o.vasc.annotations.VascI18n;
|
||||||
import com.idcanet.vasc.annotations.VascPrimaryKey;
|
import org.x4o.vasc.annotations.VascPrimaryKey;
|
||||||
import com.idcanet.vasc.annotations.VascRoles;
|
import org.x4o.vasc.annotations.VascRoles;
|
||||||
import com.idcanet.vasc.annotations.VascStyle;
|
import org.x4o.vasc.annotations.VascStyle;
|
||||||
import com.idcanet.vasc.validators.VascObjectNotNull;
|
import org.x4o.vasc.validators.VascObjectNotNull;
|
||||||
import com.idcanet.vasc.validators.VascStringLength;
|
import org.x4o.vasc.validators.VascStringLength;
|
||||||
|
|
||||||
abstract public class AbstractPetStoreFieldTemplates {
|
abstract public class AbstractPetStoreFieldTemplates {
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class Category extends AbstractPetStoreEntity{
|
public class Category extends AbstractPetStoreEntity{
|
||||||
|
|
|
@ -7,9 +7,9 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class CategoryProduct extends AbstractPetStoreEntity {
|
public class CategoryProduct extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class Item extends AbstractPetStoreEntity {
|
public class Item extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class ItemInventory extends AbstractPetStoreEntity {
|
public class ItemInventory extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class ItemSupplier extends AbstractPetStoreEntity {
|
public class ItemSupplier extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -9,9 +9,9 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class Order extends AbstractPetStoreEntity {
|
public class Order extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -7,9 +7,9 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class OrderLine extends AbstractPetStoreEntity {
|
public class OrderLine extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class OrderStatus extends AbstractPetStoreEntity {
|
public class OrderStatus extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class UserAccount extends AbstractPetStoreEntity {
|
public class UserAccount extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -7,9 +7,9 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class UserCredential extends AbstractPetStoreEntity {
|
public class UserCredential extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -7,10 +7,10 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
||||||
|
|
||||||
import com.idcanet.vasc.annotations.VascDefaultValue;
|
import org.x4o.vasc.annotations.VascDefaultValue;
|
||||||
import com.idcanet.vasc.annotations.VascField;
|
import org.x4o.vasc.annotations.VascField;
|
||||||
import com.idcanet.vasc.annotations.VascFieldTemplate;
|
import org.x4o.vasc.annotations.VascFieldTemplate;
|
||||||
import com.idcanet.vasc.annotations.VascModelReference;
|
import org.x4o.vasc.annotations.VascModelReference;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class UserProfile extends AbstractPetStoreEntity {
|
public class UserProfile extends AbstractPetStoreEntity {
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
|
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#Sun Dec 25 17:29:07 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding/<project>=UTF-8
|
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:03 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -2,10 +2,10 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>demo-petstore</artifactId>
|
<artifactId>demo-petstore</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>demo-petstore-war</artifactId>
|
<artifactId>demo-petstore-war</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</project>
|
</project>
|
|
@ -1,11 +1,11 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>vasc-base</artifactId>
|
<artifactId>vasc</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>demo-petstore</artifactId>
|
<artifactId>demo-petstore</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
24
pom.xml
24
pom.xml
|
@ -1,8 +1,8 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-base</artifactId>
|
<artifactId>vasc</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>vasc</name>
|
<name>vasc</name>
|
||||||
|
@ -10,23 +10,19 @@
|
||||||
<url>http://www.x4o.org/vasc</url>
|
<url>http://www.x4o.org/vasc</url>
|
||||||
<inceptionYear>2007</inceptionYear>
|
<inceptionYear>2007</inceptionYear>
|
||||||
<organization>
|
<organization>
|
||||||
<name>IDCA</name>
|
<name>X4O.oth</name>
|
||||||
<url>http://www.idca.nl</url>
|
<url>http://www.x4o.org</url>
|
||||||
</organization>
|
</organization>
|
||||||
<issueManagement>
|
|
||||||
<system>Trac</system>
|
|
||||||
<url>https://decaid.idca.nl/trac/oss/</url>
|
|
||||||
</issueManagement>
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
<name>BSD</name>
|
<name>BSD</name>
|
||||||
<url>http://repository.idcanet.com/licenses/bsd.txt</url>
|
<url>license.txt</url>
|
||||||
</license>
|
</license>
|
||||||
</licenses>
|
</licenses>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>https://decaid.idca.nl/hg/com.idcanet.vasc/</connection>
|
<connection>git@bitbucket.org:im_ik/vasc.git</connection>
|
||||||
<developerConnection>scm:hg:${hg.repo.url}</developerConnection>
|
<developerConnection>scm:hg:ssh://git@bitbucket.org:im_ik/vasc.git</developerConnection>
|
||||||
<url>https://decaid.idca.nl/hg/com.idcanet.vasc/file/</url>
|
<url>https://bitbucket.org/im_ik/vasc.git</url>
|
||||||
</scm>
|
</scm>
|
||||||
<modules>
|
<modules>
|
||||||
<module>vasc-backend-jpa</module>
|
<module>vasc-backend-jpa</module>
|
||||||
|
@ -41,12 +37,12 @@
|
||||||
<module>demo-petstore</module>
|
<module>demo-petstore</module>
|
||||||
</modules>
|
</modules>
|
||||||
<properties>
|
<properties>
|
||||||
<hg.repo.url>https://decaid.idca.nl/hg/com.idcanet.vasc/</hg.repo.url>
|
<hg.repo.url>https://...vasc/</hg.repo.url>
|
||||||
<staging.mvn.repo.url>file://${project.build.directory}/target-maven-repo</staging.mvn.repo.url>
|
<staging.mvn.repo.url>file://${project.build.directory}/target-maven-repo</staging.mvn.repo.url>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<juel.version>2.1.0</juel.version>
|
<juel.version>2.1.0</juel.version>
|
||||||
<testng.version>5.8</testng.version>
|
<testng.version>5.8</testng.version>
|
||||||
<x4o-core.version>0.8.1</x4o-core.version>
|
<x4o-core.version>0.8.2-SNAPSHOT</x4o-core.version>
|
||||||
<jldap.version>4.3</jldap.version>
|
<jldap.version>4.3</jldap.version>
|
||||||
|
|
||||||
<!-- Maven plugin versions -->
|
<!-- Maven plugin versions -->
|
||||||
|
|
|
@ -4,8 +4,8 @@ Downloading
|
||||||
|
|
||||||
+--
|
+--
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc</artifactId>
|
<artifactId>vasc-core</artifactId>
|
||||||
<version>0.5-SNAPSHOT</version>
|
<version>0.5-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
+--
|
+--
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#Sun Dec 25 17:29:06 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding//src/test/java=UTF-8
|
||||||
|
encoding//src/test/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
5
vasc-backend-jpa/.settings/org.eclipse.m2e.core.prefs
Normal file
5
vasc-backend-jpa/.settings/org.eclipse.m2e.core.prefs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:02 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -1,18 +1,18 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>vasc-base</artifactId>
|
<artifactId>vasc</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-backend-jpa</artifactId>
|
<artifactId>vasc-backend-jpa</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
<name>vasc-backend-jpa</name>
|
<name>vasc-backend-jpa</name>
|
||||||
<description>vasc-backend-jpa</description>
|
<description>vasc-backend-jpa</description>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-core</artifactId>
|
<artifactId>vasc-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jpa;
|
package org.x4o.vasc.backends.jpa;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
|
import org.x4o.vasc.core.AbstractVascBackend;
|
||||||
|
import org.x4o.vasc.core.VascException;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.AbstractVascBackend;
|
|
||||||
import com.idcanet.vasc.core.VascException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -24,14 +24,15 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jpa;
|
package org.x4o.vasc.backends.jpa;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.AbstractVascBackend;
|
import org.x4o.vasc.core.AbstractVascBackend;
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jpa;
|
package org.x4o.vasc.backends.jpa;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jpa;
|
package org.x4o.vasc.backends.jpa;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
|
|
|
@ -24,23 +24,23 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jpa;
|
package org.x4o.vasc.backends.jpa;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.hibernate.Hibernate;
|
import org.hibernate.Hibernate;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
|
import org.x4o.vasc.backends.BeanVascEntryFieldValue;
|
||||||
|
import org.x4o.vasc.backends.BeanVascEntryRecordCreator;
|
||||||
|
import org.x4o.vasc.core.VascBackendState;
|
||||||
|
import org.x4o.vasc.core.VascEntry;
|
||||||
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
|
import org.x4o.vasc.core.VascException;
|
||||||
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
import org.x4o.vasc.xpql.query.QueryParameterValue;
|
||||||
|
|
||||||
import com.idcanet.vasc.backends.BeanVascEntryFieldValue;
|
|
||||||
import com.idcanet.vasc.backends.BeanVascEntryRecordCreator;
|
|
||||||
import com.idcanet.vasc.core.VascBackendState;
|
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
|
||||||
import com.idcanet.vasc.core.VascException;
|
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
|
||||||
import com.idcanet.vasc.xpql.query.QueryParameterValue;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages persistance with xpql queries
|
* Manages persistance with xpql queries
|
||||||
|
@ -52,17 +52,17 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
|
|
||||||
private HibernateSessionProvider hibernateSessionProvider = null;
|
private HibernateSessionProvider hibernateSessionProvider = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query query = null;
|
private org.x4o.vasc.xpql.query.Query query = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryTotal = null;
|
private org.x4o.vasc.xpql.query.Query queryTotal = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveUp = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveUp = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveUpDown = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveUpDown = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveDown = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveDown = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveDownUp = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveDownUp = null;
|
||||||
|
|
||||||
private Class<?> resultClass = null;
|
private Class<?> resultClass = null;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
|
* @see org.x4o.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
Session getHibernateSession() {
|
Session getHibernateSession() {
|
||||||
|
@ -119,7 +119,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryFieldValue(com.idcanet.vasc.core.VascEntryField)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
|
||||||
*/
|
*/
|
||||||
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
||||||
BeanVascEntryFieldValue result = new BeanVascEntryFieldValue();
|
BeanVascEntryFieldValue result = new BeanVascEntryFieldValue();
|
||||||
|
@ -127,7 +127,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryRecordCreator(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
||||||
return new BeanVascEntryRecordCreator(resultClass);
|
return new BeanVascEntryRecordCreator(resultClass);
|
||||||
|
@ -136,28 +136,28 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
/**
|
/**
|
||||||
* @return the query
|
* @return the query
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQuery() {
|
public org.x4o.vasc.xpql.query.Query getQuery() {
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param query the query to set
|
* @param query the query to set
|
||||||
*/
|
*/
|
||||||
public void setQuery(com.idcanet.vasc.xpql.query.Query query) {
|
public void setQuery(org.x4o.vasc.xpql.query.Query query) {
|
||||||
this.query = query;
|
this.query = query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryTotal
|
* @return the queryTotal
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryTotal() {
|
public org.x4o.vasc.xpql.query.Query getQueryTotal() {
|
||||||
return queryTotal;
|
return queryTotal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryTotal the queryTotal to set
|
* @param queryTotal the queryTotal to set
|
||||||
*/
|
*/
|
||||||
public void setQueryTotal(com.idcanet.vasc.xpql.query.Query queryTotal) {
|
public void setQueryTotal(org.x4o.vasc.xpql.query.Query queryTotal) {
|
||||||
this.queryTotal = queryTotal;
|
this.queryTotal = queryTotal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#isPageable()
|
* @see org.x4o.vasc.core.AbstractVascBackend#isPageable()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isPageable() {
|
public boolean isPageable() {
|
||||||
|
@ -201,7 +201,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public long fetchTotalExecuteSize(VascBackendState state) {
|
public long fetchTotalExecuteSize(VascBackendState state) {
|
||||||
Session s = getHibernateSession();
|
Session s = getHibernateSession();
|
||||||
|
@ -230,7 +230,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#doRecordMoveDownById(java.lang.Object)
|
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveDownById(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
|
@ -299,7 +299,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#doRecordMoveUpById(java.lang.Object)
|
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveUpById(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
|
@ -368,7 +368,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#isRecordMoveable()
|
* @see org.x4o.vasc.core.AbstractVascBackend#isRecordMoveable()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isRecordMoveable() {
|
public boolean isRecordMoveable() {
|
||||||
|
@ -378,56 +378,56 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveUp
|
* @return the queryMoveUp
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveUp() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveUp() {
|
||||||
return queryMoveUp;
|
return queryMoveUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveUp the queryMoveUp to set
|
* @param queryMoveUp the queryMoveUp to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveUp(com.idcanet.vasc.xpql.query.Query queryMoveUp) {
|
public void setQueryMoveUp(org.x4o.vasc.xpql.query.Query queryMoveUp) {
|
||||||
this.queryMoveUp = queryMoveUp;
|
this.queryMoveUp = queryMoveUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveDown
|
* @return the queryMoveDown
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveDown() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveDown() {
|
||||||
return queryMoveDown;
|
return queryMoveDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveDown the queryMoveDown to set
|
* @param queryMoveDown the queryMoveDown to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveDown(com.idcanet.vasc.xpql.query.Query queryMoveDown) {
|
public void setQueryMoveDown(org.x4o.vasc.xpql.query.Query queryMoveDown) {
|
||||||
this.queryMoveDown = queryMoveDown;
|
this.queryMoveDown = queryMoveDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveUpDown
|
* @return the queryMoveUpDown
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveUpDown() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveUpDown() {
|
||||||
return queryMoveUpDown;
|
return queryMoveUpDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveUpDown the queryMoveUpDown to set
|
* @param queryMoveUpDown the queryMoveUpDown to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveUpDown(com.idcanet.vasc.xpql.query.Query queryMoveUpDown) {
|
public void setQueryMoveUpDown(org.x4o.vasc.xpql.query.Query queryMoveUpDown) {
|
||||||
this.queryMoveUpDown = queryMoveUpDown;
|
this.queryMoveUpDown = queryMoveUpDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveDownUp
|
* @return the queryMoveDownUp
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveDownUp() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveDownUp() {
|
||||||
return queryMoveDownUp;
|
return queryMoveDownUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveDownUp the queryMoveDownUp to set
|
* @param queryMoveDownUp the queryMoveDownUp to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveDownUp(com.idcanet.vasc.xpql.query.Query queryMoveDownUp) {
|
public void setQueryMoveDownUp(org.x4o.vasc.xpql.query.Query queryMoveDownUp) {
|
||||||
this.queryMoveDownUp = queryMoveDownUp;
|
this.queryMoveDownUp = queryMoveDownUp;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -24,22 +24,23 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jpa;
|
package org.x4o.vasc.backends.jpa;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
import javax.persistence.Query;
|
import javax.persistence.Query;
|
||||||
|
|
||||||
import com.idcanet.vasc.backends.BeanVascEntryFieldValue;
|
import org.x4o.vasc.backends.BeanVascEntryFieldValue;
|
||||||
import com.idcanet.vasc.backends.BeanVascEntryRecordCreator;
|
import org.x4o.vasc.backends.BeanVascEntryRecordCreator;
|
||||||
import com.idcanet.vasc.core.VascBackendState;
|
import org.x4o.vasc.core.VascBackendState;
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
import org.x4o.vasc.core.VascEntry;
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
import com.idcanet.vasc.xpql.query.QueryParameterValue;
|
import org.x4o.vasc.xpql.query.QueryParameterValue;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages persistance with xpql queries
|
* Manages persistance with xpql queries
|
||||||
|
@ -51,17 +52,17 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
|
|
||||||
private EntityManagerProvider entityManagerProvider = null;
|
private EntityManagerProvider entityManagerProvider = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query query = null;
|
private org.x4o.vasc.xpql.query.Query query = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryTotal = null;
|
private org.x4o.vasc.xpql.query.Query queryTotal = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveUp = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveUp = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveUpDown = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveUpDown = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveDown = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveDown = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query queryMoveDownUp = null;
|
private org.x4o.vasc.xpql.query.Query queryMoveDownUp = null;
|
||||||
|
|
||||||
private Class<?> resultClass = null;
|
private Class<?> resultClass = null;
|
||||||
|
|
||||||
|
@ -69,7 +70,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
|
* @see org.x4o.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
EntityManager getEntityManager() {
|
EntityManager getEntityManager() {
|
||||||
|
@ -123,7 +124,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryFieldValue(com.idcanet.vasc.core.VascEntryField)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
|
||||||
*/
|
*/
|
||||||
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
||||||
VascEntryFieldValue result = new BeanVascEntryFieldValue();
|
VascEntryFieldValue result = new BeanVascEntryFieldValue();
|
||||||
|
@ -131,7 +132,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryRecordCreator(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
||||||
VascEntryRecordCreator result = new BeanVascEntryRecordCreator(resultClass);
|
VascEntryRecordCreator result = new BeanVascEntryRecordCreator(resultClass);
|
||||||
|
@ -141,28 +142,28 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
/**
|
/**
|
||||||
* @return the query
|
* @return the query
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQuery() {
|
public org.x4o.vasc.xpql.query.Query getQuery() {
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param query the query to set
|
* @param query the query to set
|
||||||
*/
|
*/
|
||||||
public void setQuery(com.idcanet.vasc.xpql.query.Query query) {
|
public void setQuery(org.x4o.vasc.xpql.query.Query query) {
|
||||||
this.query = query;
|
this.query = query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryTotal
|
* @return the queryTotal
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryTotal() {
|
public org.x4o.vasc.xpql.query.Query getQueryTotal() {
|
||||||
return queryTotal;
|
return queryTotal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryTotal the queryTotal to set
|
* @param queryTotal the queryTotal to set
|
||||||
*/
|
*/
|
||||||
public void setQueryTotal(com.idcanet.vasc.xpql.query.Query queryTotal) {
|
public void setQueryTotal(org.x4o.vasc.xpql.query.Query queryTotal) {
|
||||||
this.queryTotal = queryTotal;
|
this.queryTotal = queryTotal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +196,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#isPageable()
|
* @see org.x4o.vasc.core.AbstractVascBackend#isPageable()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isPageable() {
|
public boolean isPageable() {
|
||||||
|
@ -206,7 +207,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public long fetchTotalExecuteSize(VascBackendState state) {
|
public long fetchTotalExecuteSize(VascBackendState state) {
|
||||||
EntityManager em = getEntityManager();
|
EntityManager em = getEntityManager();
|
||||||
|
@ -235,7 +236,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#doRecordMoveDownById(VascBackendState state,java.lang.Object)
|
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveDownById(VascBackendState state,java.lang.Object)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
|
@ -298,7 +299,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#doRecordMoveUpById(VascBackendState state,java.lang.Object)
|
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveUpById(VascBackendState state,java.lang.Object)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
|
@ -361,7 +362,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.AbstractVascBackend#isRecordMoveable()
|
* @see org.x4o.vasc.core.AbstractVascBackend#isRecordMoveable()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isRecordMoveable() {
|
public boolean isRecordMoveable() {
|
||||||
|
@ -371,61 +372,61 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveUp
|
* @return the queryMoveUp
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveUp() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveUp() {
|
||||||
return queryMoveUp;
|
return queryMoveUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveUp the queryMoveUp to set
|
* @param queryMoveUp the queryMoveUp to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveUp(com.idcanet.vasc.xpql.query.Query queryMoveUp) {
|
public void setQueryMoveUp(org.x4o.vasc.xpql.query.Query queryMoveUp) {
|
||||||
this.queryMoveUp = queryMoveUp;
|
this.queryMoveUp = queryMoveUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveDown
|
* @return the queryMoveDown
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveDown() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveDown() {
|
||||||
return queryMoveDown;
|
return queryMoveDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveDown the queryMoveDown to set
|
* @param queryMoveDown the queryMoveDown to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveDown(com.idcanet.vasc.xpql.query.Query queryMoveDown) {
|
public void setQueryMoveDown(org.x4o.vasc.xpql.query.Query queryMoveDown) {
|
||||||
this.queryMoveDown = queryMoveDown;
|
this.queryMoveDown = queryMoveDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveUpDown
|
* @return the queryMoveUpDown
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveUpDown() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveUpDown() {
|
||||||
return queryMoveUpDown;
|
return queryMoveUpDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveUpDown the queryMoveUpDown to set
|
* @param queryMoveUpDown the queryMoveUpDown to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveUpDown(com.idcanet.vasc.xpql.query.Query queryMoveUpDown) {
|
public void setQueryMoveUpDown(org.x4o.vasc.xpql.query.Query queryMoveUpDown) {
|
||||||
this.queryMoveUpDown = queryMoveUpDown;
|
this.queryMoveUpDown = queryMoveUpDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the queryMoveDownUp
|
* @return the queryMoveDownUp
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQueryMoveDownUp() {
|
public org.x4o.vasc.xpql.query.Query getQueryMoveDownUp() {
|
||||||
return queryMoveDownUp;
|
return queryMoveDownUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param queryMoveDownUp the queryMoveDownUp to set
|
* @param queryMoveDownUp the queryMoveDownUp to set
|
||||||
*/
|
*/
|
||||||
public void setQueryMoveDownUp(com.idcanet.vasc.xpql.query.Query queryMoveDownUp) {
|
public void setQueryMoveDownUp(org.x4o.vasc.xpql.query.Query queryMoveDownUp) {
|
||||||
this.queryMoveDownUp = queryMoveDownUp;
|
this.queryMoveDownUp = queryMoveDownUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isSearchable()
|
* @see org.x4o.vasc.core.VascBackend#isSearchable()
|
||||||
*/
|
*/
|
||||||
public boolean isSearchable() {
|
public boolean isSearchable() {
|
||||||
if (query.getQueryParameterValue("text_search")==null) {
|
if (query.getQueryParameterValue("text_search")==null) {
|
|
@ -5,6 +5,7 @@
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#Sun Dec 25 17:29:07 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding//src/test/java=UTF-8
|
||||||
|
encoding//src/test/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
5
vasc-backend-ldap/.settings/org.eclipse.m2e.core.prefs
Normal file
5
vasc-backend-ldap/.settings/org.eclipse.m2e.core.prefs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:02 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -1,18 +1,18 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>vasc-base</artifactId>
|
<artifactId>vasc</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-backend-ldap</artifactId>
|
<artifactId>vasc-backend-ldap</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
<name>vasc-backend-ldap</name>
|
<name>vasc-backend-ldap</name>
|
||||||
<description>vasc-backend-ldap</description>
|
<description>vasc-backend-ldap</description>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-core</artifactId>
|
<artifactId>vasc-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.ldap;
|
package org.x4o.vasc.backends.ldap;
|
||||||
|
|
||||||
import com.novell.ldap.LDAPConnection;
|
import com.novell.ldap.LDAPConnection;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.ldap;
|
package org.x4o.vasc.backends.ldap;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -32,15 +32,16 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.backends.MapVascEntryFieldValue;
|
import org.x4o.vasc.backends.MapVascEntryFieldValue;
|
||||||
import com.idcanet.vasc.backends.MapVascEntryRecordCreator;
|
import org.x4o.vasc.backends.MapVascEntryRecordCreator;
|
||||||
import com.idcanet.vasc.core.AbstractVascBackend;
|
import org.x4o.vasc.core.AbstractVascBackend;
|
||||||
import com.idcanet.vasc.core.VascBackendState;
|
import org.x4o.vasc.core.VascBackendState;
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
import org.x4o.vasc.core.VascEntry;
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
|
||||||
import com.novell.ldap.LDAPAttribute;
|
import com.novell.ldap.LDAPAttribute;
|
||||||
import com.novell.ldap.LDAPAttributeSet;
|
import com.novell.ldap.LDAPAttributeSet;
|
||||||
import com.novell.ldap.LDAPConnection;
|
import com.novell.ldap.LDAPConnection;
|
||||||
|
@ -81,7 +82,7 @@ public class LdapVascBackend extends AbstractVascBackend {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#execute()
|
* @see org.x4o.vasc.core.VascBackend#execute()
|
||||||
*/
|
*/
|
||||||
public List<Object> execute(VascBackendState state) throws VascException {
|
public List<Object> execute(VascBackendState state) throws VascException {
|
||||||
LdapConnectionProvider prov = getLdapConnectionProvider();
|
LdapConnectionProvider prov = getLdapConnectionProvider();
|
||||||
|
@ -140,7 +141,7 @@ public class LdapVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#merge(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#merge(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public Object merge(Object object) throws VascException {
|
public Object merge(Object object) throws VascException {
|
||||||
LdapConnectionProvider prov = getLdapConnectionProvider();
|
LdapConnectionProvider prov = getLdapConnectionProvider();
|
||||||
|
@ -220,7 +221,7 @@ public class LdapVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#persist(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#persist(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void persist(Object object) throws VascException {
|
public void persist(Object object) throws VascException {
|
||||||
LdapConnectionProvider prov = getLdapConnectionProvider();
|
LdapConnectionProvider prov = getLdapConnectionProvider();
|
||||||
|
@ -240,7 +241,7 @@ public class LdapVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#delete(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#delete(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void delete(Object object) throws VascException {
|
public void delete(Object object) throws VascException {
|
||||||
LdapConnectionProvider prov = getLdapConnectionProvider();
|
LdapConnectionProvider prov = getLdapConnectionProvider();
|
||||||
|
@ -274,14 +275,14 @@ public class LdapVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryRecordCreator(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
||||||
return new MapVascEntryRecordCreator();
|
return new MapVascEntryRecordCreator();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryFieldValue(com.idcanet.vasc.core.VascEntryField)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
|
||||||
*/
|
*/
|
||||||
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
||||||
return new MapVascEntryFieldValue();
|
return new MapVascEntryFieldValue();
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.ldap;
|
package org.x4o.vasc.backends.ldap;
|
||||||
|
|
||||||
import com.novell.ldap.LDAPConnection;
|
import com.novell.ldap.LDAPConnection;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public class SimpleLdapConnectionProvider implements LdapConnectionProvider {
|
||||||
private String bindPass = null;
|
private String bindPass = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.backends.ldap.LdapConnectionProvider#getLdapConnection()
|
* @see org.x4o.vasc.backends.ldap.LdapConnectionProvider#getLdapConnection()
|
||||||
*/
|
*/
|
||||||
public LDAPConnection getLdapConnection() {
|
public LDAPConnection getLdapConnection() {
|
||||||
try {
|
try {
|
|
@ -5,6 +5,7 @@
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
7
vasc-core/.settings/org.eclipse.core.resources.prefs
Normal file
7
vasc-core/.settings/org.eclipse.core.resources.prefs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#Sun Dec 25 17:29:06 CET 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding//src/test/java=UTF-8
|
||||||
|
encoding//src/test/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
5
vasc-core/.settings/org.eclipse.m2e.core.prefs
Normal file
5
vasc-core/.settings/org.eclipse.m2e.core.prefs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#Sun Dec 25 17:29:03 CET 2011
|
||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
|
@ -1,23 +1,23 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>vasc-base</artifactId>
|
<artifactId>vasc</artifactId>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-core</artifactId>
|
<artifactId>vasc-core</artifactId>
|
||||||
<version>0.3.5-SNAPSHOT</version>
|
<version>0.3.5-SNAPSHOT</version>
|
||||||
<name>vasc-core</name>
|
<name>vasc-core</name>
|
||||||
<description>vasc-core</description>
|
<description>vasc-core</description>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.x4o</groupId>
|
<groupId>org.x4o</groupId>
|
||||||
<artifactId>x4o-core</artifactId>
|
<artifactId>x4o-core</artifactId>
|
||||||
<version>${x4o-core.version}</version>
|
<version>${x4o-core.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.idcanet.vasc</groupId>
|
<groupId>org.x4o.vasc</groupId>
|
||||||
<artifactId>vasc-xpql</artifactId>
|
<artifactId>vasc-xpql</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.Annotation;
|
import java.lang.annotation.Annotation;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -1,15 +1,16 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.vasc.core.ui.VascSelectItem;
|
import org.x4o.vasc.core.ui.VascSelectItem;
|
||||||
import com.idcanet.vasc.core.ui.VascSelectItemModel;
|
import org.x4o.vasc.core.ui.VascSelectItemModel;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Selected the vasc choices
|
* Selected the vasc choices
|
||||||
|
@ -30,9 +31,9 @@ public class VascChoicesSelectItemModel implements VascSelectItemModel,Serializa
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.ui.VascSelectItemModel#getVascSelectItems(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.ui.VascSelectItemModel#getVascSelectItems(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public List<VascSelectItem> getVascSelectItems(com.idcanet.vasc.core.VascEntry entry) throws VascException {
|
public List<VascSelectItem> getVascSelectItems(org.x4o.vasc.core.VascEntry entry) throws VascException {
|
||||||
List<VascSelectItem> result = new ArrayList<VascSelectItem>(10);
|
List<VascSelectItem> result = new ArrayList<VascSelectItem>(10);
|
||||||
if ("null".equals(vascChoices.nullLabel())==false) {
|
if ("null".equals(vascChoices.nullLabel())==false) {
|
||||||
nullLabel = vascChoices.nullLabel();
|
nullLabel = vascChoices.nullLabel();
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
@ -44,7 +44,6 @@ public @interface VascI18n {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The key of the Label default to "null"
|
* The key of the Label default to "null"
|
||||||
* @see com.idcanet.i18n.I18nAnnotationParser#getI18nLabelKey(Class, String)
|
|
||||||
* @return The key of the ToolTip
|
* @return The key of the ToolTip
|
||||||
*/
|
*/
|
||||||
String name() default "";
|
String name() default "";
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.annotations;
|
package org.x4o.vasc.annotations;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -24,12 +24,13 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends;
|
package org.x4o.vasc.backends;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.x4o.impl.DefaultElementObjectPropertyValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
|
import org.x4o.xml.impl.DefaultElementObjectPropertyValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -42,7 +43,7 @@ public class BeanVascEntryFieldValue implements VascEntryFieldValue {
|
||||||
private DefaultElementObjectPropertyValue bean = new DefaultElementObjectPropertyValue();
|
private DefaultElementObjectPropertyValue bean = new DefaultElementObjectPropertyValue();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.entry.VascEntryFieldValue#getValue(com.idcanet.vasc.core.VascEntryField, java.lang.Object)
|
* @see org.x4o.vasc.core.entry.VascEntryFieldValue#getValue(org.x4o.vasc.core.VascEntryField, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public Object getValue(VascEntryField field, Object record) throws VascException {
|
public Object getValue(VascEntryField field, Object record) throws VascException {
|
||||||
if (field==null) {
|
if (field==null) {
|
||||||
|
@ -63,7 +64,7 @@ public class BeanVascEntryFieldValue implements VascEntryFieldValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.entry.VascEntryFieldValue#getDisplayValue(com.idcanet.vasc.core.VascEntryField, java.lang.Object)
|
* @see org.x4o.vasc.core.entry.VascEntryFieldValue#getDisplayValue(org.x4o.vasc.core.VascEntryField, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public String getDisplayValue(VascEntryField field, Object record) throws VascException {
|
public String getDisplayValue(VascEntryField field, Object record) throws VascException {
|
||||||
Object value = getValue(field,record);
|
Object value = getValue(field,record);
|
||||||
|
@ -88,7 +89,7 @@ public class BeanVascEntryFieldValue implements VascEntryFieldValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.entry.VascEntryFieldValue#setValue(com.idcanet.vasc.core.VascEntryField, java.lang.Object, java.lang.Object)
|
* @see org.x4o.vasc.core.entry.VascEntryFieldValue#setValue(org.x4o.vasc.core.VascEntryField, java.lang.Object, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void setValue(VascEntryField field, Object record,Object value) throws VascException {
|
public void setValue(VascEntryField field, Object record,Object value) throws VascException {
|
||||||
if (field==null) {
|
if (field==null) {
|
|
@ -1,10 +1,11 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package com.idcanet.vasc.backends;
|
package org.x4o.vasc.backends;
|
||||||
|
|
||||||
|
import org.x4o.vasc.core.VascEntry;
|
||||||
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author willemc
|
* @author willemc
|
|
@ -1,13 +1,14 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package com.idcanet.vasc.backends;
|
package org.x4o.vasc.backends;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author willemc
|
* @author willemc
|
||||||
|
@ -18,7 +19,7 @@ public class MapVascEntryFieldValue implements VascEntryFieldValue {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.entry.VascEntryFieldValue#getValue(com.idcanet.vasc.core.VascEntryField, java.lang.Object)
|
* @see org.x4o.vasc.core.entry.VascEntryFieldValue#getValue(org.x4o.vasc.core.VascEntryField, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Object getValue(VascEntryField field, Object record) throws VascException {
|
public Object getValue(VascEntryField field, Object record) throws VascException {
|
||||||
|
@ -31,14 +32,14 @@ public class MapVascEntryFieldValue implements VascEntryFieldValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.entry.VascEntryFieldValue#getDisplayValue(com.idcanet.vasc.core.VascEntryField, java.lang.Object)
|
* @see org.x4o.vasc.core.entry.VascEntryFieldValue#getDisplayValue(org.x4o.vasc.core.VascEntryField, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public String getDisplayValue(VascEntryField field, Object record) throws VascException {
|
public String getDisplayValue(VascEntryField field, Object record) throws VascException {
|
||||||
return ""+getValue(field,record); // not supported (this)ldap is already fully string based.
|
return ""+getValue(field,record); // not supported (this)ldap is already fully string based.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.entry.VascEntryFieldValue#setValue(com.idcanet.vasc.core.VascEntryField, java.lang.Object, java.lang.Object)
|
* @see org.x4o.vasc.core.entry.VascEntryFieldValue#setValue(org.x4o.vasc.core.VascEntryField, java.lang.Object, java.lang.Object)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void setValue(VascEntryField field, Object record,Object value) throws VascException {
|
public void setValue(VascEntryField field, Object record,Object value) throws VascException {
|
|
@ -1,13 +1,14 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package com.idcanet.vasc.backends;
|
package org.x4o.vasc.backends;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
import org.x4o.vasc.core.VascEntry;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author willemc
|
* @author willemc
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jdbc;
|
package org.x4o.vasc.backends.jdbc;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jdbc;
|
package org.x4o.vasc.backends.jdbc;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
|
@ -34,15 +34,16 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.backends.MapVascEntryFieldValue;
|
import org.x4o.vasc.backends.MapVascEntryFieldValue;
|
||||||
import com.idcanet.vasc.backends.MapVascEntryRecordCreator;
|
import org.x4o.vasc.backends.MapVascEntryRecordCreator;
|
||||||
import com.idcanet.vasc.core.AbstractVascBackend;
|
import org.x4o.vasc.core.AbstractVascBackend;
|
||||||
import com.idcanet.vasc.core.VascBackendState;
|
import org.x4o.vasc.core.VascBackendState;
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
import org.x4o.vasc.core.VascEntry;
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -73,7 +74,7 @@ public class JdbcVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#execute(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#execute(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public List<Object> execute(VascBackendState state) throws VascException {
|
public List<Object> execute(VascBackendState state) throws VascException {
|
||||||
JdbcConnectionProvider prov = getJdbcConnectionProvider();
|
JdbcConnectionProvider prov = getJdbcConnectionProvider();
|
||||||
|
@ -108,33 +109,33 @@ public class JdbcVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#merge(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#merge(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public Object merge(Object object) throws VascException {
|
public Object merge(Object object) throws VascException {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#persist(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#persist(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void persist(Object object) throws VascException {
|
public void persist(Object object) throws VascException {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#delete(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#delete(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void delete(Object object) throws VascException {
|
public void delete(Object object) throws VascException {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryFieldValue(com.idcanet.vasc.core.VascEntryField)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
|
||||||
*/
|
*/
|
||||||
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
||||||
return new MapVascEntryFieldValue();
|
return new MapVascEntryFieldValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryRecordCreator(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
||||||
return new MapVascEntryRecordCreator();
|
return new MapVascEntryRecordCreator();
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jdbc;
|
package org.x4o.vasc.backends.jdbc;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
@ -34,16 +34,17 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.backends.MapVascEntryFieldValue;
|
import org.x4o.vasc.backends.MapVascEntryFieldValue;
|
||||||
import com.idcanet.vasc.backends.MapVascEntryRecordCreator;
|
import org.x4o.vasc.backends.MapVascEntryRecordCreator;
|
||||||
import com.idcanet.vasc.core.AbstractVascBackend;
|
import org.x4o.vasc.core.AbstractVascBackend;
|
||||||
import com.idcanet.vasc.core.VascBackendState;
|
import org.x4o.vasc.core.VascBackendState;
|
||||||
import com.idcanet.vasc.core.VascEntry;
|
import org.x4o.vasc.core.VascEntry;
|
||||||
import com.idcanet.vasc.core.VascEntryField;
|
import org.x4o.vasc.core.VascEntryField;
|
||||||
import com.idcanet.vasc.core.VascException;
|
import org.x4o.vasc.core.VascException;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
import com.idcanet.vasc.xpql.query.QueryParameterValue;
|
import org.x4o.vasc.xpql.query.QueryParameterValue;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -54,7 +55,7 @@ public class JdbcXpqlVascBackend extends AbstractVascBackend {
|
||||||
|
|
||||||
private JdbcConnectionProvider jdbcConnectionProvider = null;
|
private JdbcConnectionProvider jdbcConnectionProvider = null;
|
||||||
|
|
||||||
private com.idcanet.vasc.xpql.query.Query query = null;
|
private org.x4o.vasc.xpql.query.Query query = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the JdbcConnectionProvider
|
* @return the JdbcConnectionProvider
|
||||||
|
@ -73,19 +74,19 @@ public class JdbcXpqlVascBackend extends AbstractVascBackend {
|
||||||
/**
|
/**
|
||||||
* @return the query
|
* @return the query
|
||||||
*/
|
*/
|
||||||
public com.idcanet.vasc.xpql.query.Query getQuery() {
|
public org.x4o.vasc.xpql.query.Query getQuery() {
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param query the query to set
|
* @param query the query to set
|
||||||
*/
|
*/
|
||||||
public void setQuery(com.idcanet.vasc.xpql.query.Query query) {
|
public void setQuery(org.x4o.vasc.xpql.query.Query query) {
|
||||||
this.query = query;
|
this.query = query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#execute(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#execute(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public List<Object> execute(VascBackendState state) throws VascException {
|
public List<Object> execute(VascBackendState state) throws VascException {
|
||||||
// Copy parameters
|
// Copy parameters
|
||||||
|
@ -131,33 +132,33 @@ public class JdbcXpqlVascBackend extends AbstractVascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#merge(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#merge(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public Object merge(Object object) throws VascException {
|
public Object merge(Object object) throws VascException {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#persist(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#persist(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void persist(Object object) throws VascException {
|
public void persist(Object object) throws VascException {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#delete(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#delete(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void delete(Object object) throws VascException {
|
public void delete(Object object) throws VascException {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryFieldValue(com.idcanet.vasc.core.VascEntryField)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
|
||||||
*/
|
*/
|
||||||
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
||||||
return new MapVascEntryFieldValue();
|
return new MapVascEntryFieldValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryRecordCreator(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
||||||
return new MapVascEntryRecordCreator();
|
return new MapVascEntryRecordCreator();
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jdbc;
|
package org.x4o.vasc.backends.jdbc;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
@ -47,7 +47,7 @@ public class JdniDataSourceJdbcConnectionProvider implements JdbcConnectionProvi
|
||||||
private String dataSourceName = null;
|
private String dataSourceName = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.backends.jdbc.JdbcConnectionProvider#getJdbcConnection()
|
* @see org.x4o.vasc.backends.jdbc.JdbcConnectionProvider#getJdbcConnection()
|
||||||
*/
|
*/
|
||||||
public Connection getJdbcConnection() throws SQLException {
|
public Connection getJdbcConnection() throws SQLException {
|
||||||
Connection connection = getDataSource(dataSourceName).getConnection();
|
Connection connection = getDataSource(dataSourceName).getConnection();
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.backends.jdbc;
|
package org.x4o.vasc.backends.jdbc;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
|
@ -45,7 +45,7 @@ public class SimpleJdbcConnectionProvider implements JdbcConnectionProvider {
|
||||||
private boolean loadedDriver = false;
|
private boolean loadedDriver = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.backends.jdbc.JdbcConnectionProvider#getJdbcConnection()
|
* @see org.x4o.vasc.backends.jdbc.JdbcConnectionProvider#getJdbcConnection()
|
||||||
*/
|
*/
|
||||||
public Connection getJdbcConnection() throws SQLException {
|
public Connection getJdbcConnection() throws SQLException {
|
||||||
if (loadedDriver==false) {
|
if (loadedDriver==false) {
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -39,14 +39,14 @@ abstract public class AbstractVascBackend implements VascBackend {
|
||||||
private String id = null;
|
private String id = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#getId()
|
* @see org.x4o.vasc.core.VascBackend#getId()
|
||||||
*/
|
*/
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setId(java.lang.String)
|
* @see org.x4o.vasc.core.VascBackend#setId(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
if (id==null) {
|
if (id==null) {
|
||||||
|
@ -56,77 +56,77 @@ abstract public class AbstractVascBackend implements VascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isPageable()
|
* @see org.x4o.vasc.core.VascBackend#isPageable()
|
||||||
*/
|
*/
|
||||||
public boolean isPageable() {
|
public boolean isPageable() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public long fetchTotalExecuteSize(VascBackendState state) {
|
public long fetchTotalExecuteSize(VascBackendState state) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isSearchable()
|
* @see org.x4o.vasc.core.VascBackend#isSearchable()
|
||||||
*/
|
*/
|
||||||
public boolean isSearchable() {
|
public boolean isSearchable() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isSortable()
|
* @see org.x4o.vasc.core.VascBackend#isSortable()
|
||||||
*/
|
*/
|
||||||
public boolean isSortable() {
|
public boolean isSortable() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isRecordMoveable()
|
* @see org.x4o.vasc.core.VascBackend#isRecordMoveable()
|
||||||
*/
|
*/
|
||||||
public boolean isRecordMoveable() {
|
public boolean isRecordMoveable() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#doRecordMoveDownById(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#doRecordMoveDownById(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
return 0l;
|
return 0l;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#doRecordMoveUpById(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#doRecordMoveUpById(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
return 0l;
|
return 0l;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#executePageSummary()
|
* @see org.x4o.vasc.core.VascBackend#executePageSummary()
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> executePageSummary() {
|
public Map<String, Object> executePageSummary() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#executeTotalSummary()
|
* @see org.x4o.vasc.core.VascBackend#executeTotalSummary()
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> executeTotalSummary() {
|
public Map<String, Object> executeTotalSummary() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isPageSummary()
|
* @see org.x4o.vasc.core.VascBackend#isPageSummary()
|
||||||
*/
|
*/
|
||||||
public boolean isPageSummary() {
|
public boolean isPageSummary() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isTotalSummary()
|
* @see org.x4o.vasc.core.VascBackend#isTotalSummary()
|
||||||
*/
|
*/
|
||||||
public boolean isTotalSummary() {
|
public boolean isTotalSummary() {
|
||||||
return false;
|
return false;
|
|
@ -24,13 +24,14 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -49,14 +50,14 @@ abstract public class AbstractVascBackendProxy implements VascBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public long fetchTotalExecuteSize(VascBackendState state) {
|
public long fetchTotalExecuteSize(VascBackendState state) {
|
||||||
return backend.fetchTotalExecuteSize(state);
|
return backend.fetchTotalExecuteSize(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isSortable()
|
* @see org.x4o.vasc.core.VascBackend#isSortable()
|
||||||
*/
|
*/
|
||||||
public boolean isSortable() {
|
public boolean isSortable() {
|
||||||
return backend.isSortable();
|
return backend.isSortable();
|
||||||
|
@ -64,119 +65,119 @@ abstract public class AbstractVascBackendProxy implements VascBackend {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @see com.idcanet.vasc.core.VascBackend#execute(VascBackendState state)
|
* @see org.x4o.vasc.core.VascBackend#execute(VascBackendState state)
|
||||||
*/
|
*/
|
||||||
public List<Object> execute(VascBackendState state) throws VascException {
|
public List<Object> execute(VascBackendState state) throws VascException {
|
||||||
return backend.execute(state);
|
return backend.execute(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#delete(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#delete(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void delete(Object object) throws VascException {
|
public void delete(Object object) throws VascException {
|
||||||
backend.delete(object);
|
backend.delete(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isPageable()
|
* @see org.x4o.vasc.core.VascBackend#isPageable()
|
||||||
*/
|
*/
|
||||||
public boolean isPageable() {
|
public boolean isPageable() {
|
||||||
return backend.isPageable();
|
return backend.isPageable();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isSearchable()
|
* @see org.x4o.vasc.core.VascBackend#isSearchable()
|
||||||
*/
|
*/
|
||||||
public boolean isSearchable() {
|
public boolean isSearchable() {
|
||||||
return backend.isSearchable();
|
return backend.isSearchable();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#merge(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#merge(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public Object merge(Object object) throws VascException {
|
public Object merge(Object object) throws VascException {
|
||||||
return backend.merge(object);
|
return backend.merge(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#persist(java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#persist(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public void persist(Object object) throws VascException {
|
public void persist(Object object) throws VascException {
|
||||||
backend.persist(object);
|
backend.persist(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryFieldValue(com.idcanet.vasc.core.VascEntryField)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
|
||||||
*/
|
*/
|
||||||
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
|
||||||
return backend.provideVascEntryFieldValue(field);
|
return backend.provideVascEntryFieldValue(field);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#provideVascEntryRecordCreator(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
|
||||||
return backend.provideVascEntryRecordCreator(vascEntry);
|
return backend.provideVascEntryRecordCreator(vascEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#getId()
|
* @see org.x4o.vasc.core.VascBackend#getId()
|
||||||
*/
|
*/
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return backend.getId();
|
return backend.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setId(java.lang.String)
|
* @see org.x4o.vasc.core.VascBackend#setId(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
backend.setId(id);
|
backend.setId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#doRecordMoveDownById(VascBackendState state,java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#doRecordMoveDownById(VascBackendState state,java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
return backend.doRecordMoveDownById(state,primaryId);
|
return backend.doRecordMoveDownById(state,primaryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#doRecordMoveUpById(VascBackendState state,java.lang.Object)
|
* @see org.x4o.vasc.core.VascBackend#doRecordMoveUpById(VascBackendState state,java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
|
||||||
return backend.doRecordMoveUpById(state,primaryId);
|
return backend.doRecordMoveUpById(state,primaryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isRecordMoveable()
|
* @see org.x4o.vasc.core.VascBackend#isRecordMoveable()
|
||||||
*/
|
*/
|
||||||
public boolean isRecordMoveable() {
|
public boolean isRecordMoveable() {
|
||||||
return backend.isRecordMoveable();
|
return backend.isRecordMoveable();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#executePageSummary()
|
* @see org.x4o.vasc.core.VascBackend#executePageSummary()
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> executePageSummary() {
|
public Map<String, Object> executePageSummary() {
|
||||||
return backend.executePageSummary();
|
return backend.executePageSummary();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#executeTotalSummary()
|
* @see org.x4o.vasc.core.VascBackend#executeTotalSummary()
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> executeTotalSummary() {
|
public Map<String, Object> executeTotalSummary() {
|
||||||
return backend.executeTotalSummary();
|
return backend.executeTotalSummary();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isPageSummary()
|
* @see org.x4o.vasc.core.VascBackend#isPageSummary()
|
||||||
*/
|
*/
|
||||||
public boolean isPageSummary() {
|
public boolean isPageSummary() {
|
||||||
return backend.isPageSummary();
|
return backend.isPageSummary();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isTotalSummary()
|
* @see org.x4o.vasc.core.VascBackend#isTotalSummary()
|
||||||
*/
|
*/
|
||||||
public boolean isTotalSummary() {
|
public boolean isTotalSummary() {
|
||||||
return backend.isTotalSummary();
|
return backend.isTotalSummary();
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -64,70 +64,70 @@ abstract public class AbstractVascBackendState implements VascBackendState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#getPageIndex()
|
* @see org.x4o.vasc.core.VascBackend#getPageIndex()
|
||||||
*/
|
*/
|
||||||
public int getPageIndex() {
|
public int getPageIndex() {
|
||||||
return pageIndex;
|
return pageIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setPageIndex(int)
|
* @see org.x4o.vasc.core.VascBackend#setPageIndex(int)
|
||||||
*/
|
*/
|
||||||
public void setPageIndex(int pageIndex) {
|
public void setPageIndex(int pageIndex) {
|
||||||
this.pageIndex=pageIndex;
|
this.pageIndex=pageIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#getPageSize()
|
* @see org.x4o.vasc.core.VascBackend#getPageSize()
|
||||||
*/
|
*/
|
||||||
public int getPageSize() {
|
public int getPageSize() {
|
||||||
return pageSize;
|
return pageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setPageSize(int)
|
* @see org.x4o.vasc.core.VascBackend#setPageSize(int)
|
||||||
*/
|
*/
|
||||||
public void setPageSize(int pageSize) {
|
public void setPageSize(int pageSize) {
|
||||||
this.pageSize=pageSize;
|
this.pageSize=pageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#getSearchString()
|
* @see org.x4o.vasc.core.VascBackend#getSearchString()
|
||||||
*/
|
*/
|
||||||
public String getSearchString() {
|
public String getSearchString() {
|
||||||
return searchString;
|
return searchString;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setSearchString(java.lang.String)
|
* @see org.x4o.vasc.core.VascBackend#setSearchString(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setSearchString(String searchString) {
|
public void setSearchString(String searchString) {
|
||||||
this.searchString=searchString;
|
this.searchString=searchString;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#isSortAscending()
|
* @see org.x4o.vasc.core.VascBackend#isSortAscending()
|
||||||
*/
|
*/
|
||||||
public boolean isSortAscending() {
|
public boolean isSortAscending() {
|
||||||
return ascending;
|
return ascending;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setSortAscending(boolean)
|
* @see org.x4o.vasc.core.VascBackend#setSortAscending(boolean)
|
||||||
*/
|
*/
|
||||||
public void setSortAscending(boolean ascending) {
|
public void setSortAscending(boolean ascending) {
|
||||||
this.ascending=ascending;
|
this.ascending=ascending;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#getSortField()
|
* @see org.x4o.vasc.core.VascBackend#getSortField()
|
||||||
*/
|
*/
|
||||||
public String getSortField() {
|
public String getSortField() {
|
||||||
return sortField;
|
return sortField;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascBackend#setSortField(java.lang.String)
|
* @see org.x4o.vasc.core.VascBackend#setSortField(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setSortField(String sortField) {
|
public void setSortField(String sortField) {
|
||||||
this.sortField=sortField;
|
this.sortField=sortField;
|
|
@ -24,16 +24,17 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
import org.x4o.vasc.core.ui.VascValueModel;
|
||||||
import com.idcanet.vasc.validators.VascValidator;
|
import org.x4o.vasc.validators.VascValidator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -64,35 +65,35 @@ abstract public class AbstractVascEntryFieldType implements VascEntryFieldType {
|
||||||
abstract public VascEntryFieldType clone() throws CloneNotSupportedException;
|
abstract public VascEntryFieldType clone() throws CloneNotSupportedException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getId()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getId()
|
||||||
*/
|
*/
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#setId(java.lang.String)
|
* @see org.x4o.vasc.core.VascEntryFieldType#setId(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
this.id=id;
|
this.id=id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getProperty(java.lang.String)
|
* @see org.x4o.vasc.core.VascEntryFieldType#getProperty(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public String getProperty(String name) {
|
public String getProperty(String name) {
|
||||||
return properties.get(name);
|
return properties.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#setProperty(java.lang.String, java.lang.String)
|
* @see org.x4o.vasc.core.VascEntryFieldType#setProperty(java.lang.String, java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setProperty(String name, String value) {
|
public void setProperty(String name, String value) {
|
||||||
properties.put(name, value);
|
properties.put(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getPropertyNames()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getPropertyNames()
|
||||||
*/
|
*/
|
||||||
public List<String> getPropertyNames() {
|
public List<String> getPropertyNames() {
|
||||||
return new ArrayList<String>(properties.keySet());
|
return new ArrayList<String>(properties.keySet());
|
||||||
|
@ -113,77 +114,77 @@ abstract public class AbstractVascEntryFieldType implements VascEntryFieldType {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getVascValidators()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getVascValidators()
|
||||||
*/
|
*/
|
||||||
public List<VascValidator> getVascValidators() {
|
public List<VascValidator> getVascValidators() {
|
||||||
return vascValidators;
|
return vascValidators;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#addVascValidator(com.idcanet.vasc.validators.VascValidator)
|
* @see org.x4o.vasc.core.VascEntryFieldType#addVascValidator(org.x4o.vasc.validators.VascValidator)
|
||||||
*/
|
*/
|
||||||
public void addVascValidator(VascValidator vascValidator) {
|
public void addVascValidator(VascValidator vascValidator) {
|
||||||
vascValidators.add(vascValidator);
|
vascValidators.add(vascValidator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#removeVascValidator(com.idcanet.vasc.validators.VascValidator)
|
* @see org.x4o.vasc.core.VascEntryFieldType#removeVascValidator(org.x4o.vasc.validators.VascValidator)
|
||||||
*/
|
*/
|
||||||
public void removeVascValidator(VascValidator vascValidator) {
|
public void removeVascValidator(VascValidator vascValidator) {
|
||||||
vascValidators.remove(vascValidator);
|
vascValidators.remove(vascValidator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getAutoDetectClass()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getAutoDetectClass()
|
||||||
*/
|
*/
|
||||||
public Class<?> getAutoDetectClass() {
|
public Class<?> getAutoDetectClass() {
|
||||||
return autoDetectClass;
|
return autoDetectClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#setAutoDetectClass(java.lang.Class)
|
* @see org.x4o.vasc.core.VascEntryFieldType#setAutoDetectClass(java.lang.Class)
|
||||||
*/
|
*/
|
||||||
public void setAutoDetectClass(Class<?> autoDetectClass) {
|
public void setAutoDetectClass(Class<?> autoDetectClass) {
|
||||||
this.autoDetectClass=autoDetectClass;
|
this.autoDetectClass=autoDetectClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getInputMask()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getInputMask()
|
||||||
*/
|
*/
|
||||||
public String getInputMask() {
|
public String getInputMask() {
|
||||||
return inputMask;
|
return inputMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#setInputMask(java.lang.String)
|
* @see org.x4o.vasc.core.VascEntryFieldType#setInputMask(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setInputMask(String inputMask) {
|
public void setInputMask(String inputMask) {
|
||||||
this.inputMask=inputMask;
|
this.inputMask=inputMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getUIComponentId()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getUIComponentId()
|
||||||
*/
|
*/
|
||||||
public String getUIComponentId() {
|
public String getUIComponentId() {
|
||||||
return uiComponentId;
|
return uiComponentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#setUIComponentId(java.lang.String)
|
* @see org.x4o.vasc.core.VascEntryFieldType#setUIComponentId(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setUIComponentId(String uiComponentId) {
|
public void setUIComponentId(String uiComponentId) {
|
||||||
this.uiComponentId=uiComponentId;
|
this.uiComponentId=uiComponentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#getUIComponentCount()
|
* @see org.x4o.vasc.core.VascEntryFieldType#getUIComponentCount()
|
||||||
*/
|
*/
|
||||||
public int getUIComponentCount(VascEntryField entryField) throws VascException {
|
public int getUIComponentCount(VascEntryField entryField) throws VascException {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#provideEditorUIComponent(int)
|
* @see org.x4o.vasc.core.VascEntryFieldType#provideEditorUIComponent(int)
|
||||||
*/
|
*/
|
||||||
public VascUIComponent provideEditorUIComponent(int index,VascEntryField entryField) throws VascException {
|
public VascUIComponent provideEditorUIComponent(int index,VascEntryField entryField) throws VascException {
|
||||||
ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
ClassLoader cl = Thread.currentThread().getContextClassLoader();
|
||||||
|
@ -198,14 +199,14 @@ abstract public class AbstractVascEntryFieldType implements VascEntryFieldType {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#provideLabelUIComponent(int)
|
* @see org.x4o.vasc.core.VascEntryFieldType#provideLabelUIComponent(int)
|
||||||
*/
|
*/
|
||||||
public VascUIComponent provideLabelUIComponent(int index,VascEntryField entryField) throws VascException {
|
public VascUIComponent provideLabelUIComponent(int index,VascEntryField entryField) throws VascException {
|
||||||
return entryField.getVascEntry().getVascFrontendData().getVascUIComponent(VascUIComponent.VASC_LABEL);
|
return entryField.getVascEntry().getVascFrontendData().getVascUIComponent(VascUIComponent.VASC_LABEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascEntryFieldType#provideEditorVascValueModel()
|
* @see org.x4o.vasc.core.VascEntryFieldType#provideEditorVascValueModel()
|
||||||
*/
|
*/
|
||||||
public VascValueModel provideEditorVascValueModel(int index,VascEntryField entryField) throws VascException {
|
public VascValueModel provideEditorVascValueModel(int index,VascEntryField entryField) throws VascException {
|
||||||
if (index>0) {
|
if (index>0) {
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ abstract public class AbstractVascFrontend implements VascFrontend {
|
||||||
abstract protected void addUiComponents();
|
abstract protected void addUiComponents();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascFrontend#initEntry(com.idcanet.vasc.core.VascEntry)
|
* @see org.x4o.vasc.core.VascFrontend#initEntry(org.x4o.vasc.core.VascEntry)
|
||||||
*/
|
*/
|
||||||
public void initEntry(VascEntry entry) throws Exception {
|
public void initEntry(VascEntry entry) throws Exception {
|
||||||
if (entry.getVascFrontendData().getVascFrontend()==null) {
|
if (entry.getVascFrontendData().getVascFrontend()==null) {
|
||||||
|
@ -71,14 +71,14 @@ abstract public class AbstractVascFrontend implements VascFrontend {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascFrontend#getId()
|
* @see org.x4o.vasc.core.VascFrontend#getId()
|
||||||
*/
|
*/
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see com.idcanet.vasc.core.VascFrontend#setId(java.lang.String)
|
* @see org.x4o.vasc.core.VascFrontend#setId(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
this.id=id;
|
this.id=id;
|
|
@ -24,13 +24,14 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -24,15 +24,16 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.idcanet.vasc.core.actions.ColumnVascAction;
|
import org.x4o.vasc.core.actions.ColumnVascAction;
|
||||||
import com.idcanet.vasc.core.actions.GlobalVascAction;
|
import org.x4o.vasc.core.actions.GlobalVascAction;
|
||||||
import com.idcanet.vasc.core.actions.RowVascAction;
|
import org.x4o.vasc.core.actions.RowVascAction;
|
||||||
import com.idcanet.vasc.core.entry.VascEntryFieldEventChannel;
|
import org.x4o.vasc.core.entry.VascEntryFieldEventChannel;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main vasc entry
|
* The main vasc entry
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.idcanet.vasc.core;
|
package org.x4o.vasc.core;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue