2
0
Fork 0

moved package to temparory org.x4o.vasc.etc

This commit is contained in:
Willem Cazander 2011-12-30 00:09:01 +01:00
parent 3d6ceff732
commit cc6331b7fe
322 changed files with 2032 additions and 1750 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.idcanet.vasc</name>
<name>vasc</name>
<comment></comment>
<projects>
</projects>

View File

@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

View File

@ -0,0 +1,3 @@
#Sun Dec 25 17:29:07 CET 2011
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:03 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -1,10 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<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.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

View File

@ -0,0 +1,3 @@
#Sun Dec 25 17:29:07 CET 2011
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:03 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -2,10 +2,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>demo-petstore</artifactId>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>demo-petstore-ear</artifactId>
<version>0.3.5-SNAPSHOT</version>
</project>

View File

@ -2,9 +2,8 @@
<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.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

View File

@ -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

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:03 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -2,10 +2,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>demo-petstore</artifactId>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>demo-petstore-ejb</artifactId>
<version>0.3.5-SNAPSHOT</version>
<packaging>ejb</packaging>
@ -25,7 +25,7 @@
</build>
<dependencies>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>${project.version}</version>
</dependency>
@ -53,35 +53,35 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.idcanet.x4o</groupId>
<groupId>org.x4o</groupId>
<artifactId>x4o-core</artifactId>
<version>${x4o-core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-backend-jpa</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-xpql</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-xpql-ejb3</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-ejb3</artifactId>
<version>${project.version}</version>
</dependency>

View File

@ -2,17 +2,17 @@ package demo.petstore.models;
import java.util.Date;
import com.idcanet.vasc.annotations.VascDefaultValue;
import com.idcanet.vasc.annotations.VascDisplayName;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldOrder;
import com.idcanet.vasc.annotations.VascFieldType;
import com.idcanet.vasc.annotations.VascI18n;
import com.idcanet.vasc.annotations.VascPrimaryKey;
import com.idcanet.vasc.annotations.VascRoles;
import com.idcanet.vasc.annotations.VascStyle;
import com.idcanet.vasc.validators.VascObjectNotNull;
import com.idcanet.vasc.validators.VascStringLength;
import org.x4o.vasc.annotations.VascDefaultValue;
import org.x4o.vasc.annotations.VascDisplayName;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldOrder;
import org.x4o.vasc.annotations.VascFieldType;
import org.x4o.vasc.annotations.VascI18n;
import org.x4o.vasc.annotations.VascPrimaryKey;
import org.x4o.vasc.annotations.VascRoles;
import org.x4o.vasc.annotations.VascStyle;
import org.x4o.vasc.validators.VascObjectNotNull;
import org.x4o.vasc.validators.VascStringLength;
abstract public class AbstractPetStoreFieldTemplates {

View File

@ -4,8 +4,8 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
@Entity
public class Category extends AbstractPetStoreEntity{

View File

@ -7,9 +7,9 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class CategoryProduct extends AbstractPetStoreEntity {

View File

@ -7,8 +7,8 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class Item extends AbstractPetStoreEntity {

View File

@ -7,8 +7,8 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class ItemInventory extends AbstractPetStoreEntity {

View File

@ -4,8 +4,8 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
@Entity
public class ItemSupplier extends AbstractPetStoreEntity {

View File

@ -9,9 +9,9 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class Order extends AbstractPetStoreEntity {

View File

@ -7,9 +7,9 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class OrderLine extends AbstractPetStoreEntity {

View File

@ -4,8 +4,8 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
@Entity
public class OrderStatus extends AbstractPetStoreEntity {

View File

@ -4,8 +4,8 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
@Entity
public class UserAccount extends AbstractPetStoreEntity {

View File

@ -7,9 +7,9 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class UserCredential extends AbstractPetStoreEntity {

View File

@ -7,10 +7,10 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import com.idcanet.vasc.annotations.VascDefaultValue;
import com.idcanet.vasc.annotations.VascField;
import com.idcanet.vasc.annotations.VascFieldTemplate;
import com.idcanet.vasc.annotations.VascModelReference;
import org.x4o.vasc.annotations.VascDefaultValue;
import org.x4o.vasc.annotations.VascField;
import org.x4o.vasc.annotations.VascFieldTemplate;
import org.x4o.vasc.annotations.VascModelReference;
@Entity
public class UserProfile extends AbstractPetStoreEntity {

View File

@ -1,10 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<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.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

View File

@ -0,0 +1,3 @@
#Sun Dec 25 17:29:07 CET 2011
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:03 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -2,10 +2,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>demo-petstore</artifactId>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>demo-petstore-war</artifactId>
<version>0.3.5-SNAPSHOT</version>
</project>

View File

@ -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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>vasc-base</artifactId>
<groupId>com.idcanet.vasc</groupId>
<artifactId>vasc</artifactId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>demo-petstore</artifactId>
<version>0.3.5-SNAPSHOT</version>
<packaging>pom</packaging>

24
pom.xml
View File

@ -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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.idcanet.vasc</groupId>
<artifactId>vasc-base</artifactId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc</artifactId>
<version>0.3.5-SNAPSHOT</version>
<packaging>pom</packaging>
<name>vasc</name>
@ -10,23 +10,19 @@
<url>http://www.x4o.org/vasc</url>
<inceptionYear>2007</inceptionYear>
<organization>
<name>IDCA</name>
<url>http://www.idca.nl</url>
<name>X4O.oth</name>
<url>http://www.x4o.org</url>
</organization>
<issueManagement>
<system>Trac</system>
<url>https://decaid.idca.nl/trac/oss/</url>
</issueManagement>
<licenses>
<license>
<name>BSD</name>
<url>http://repository.idcanet.com/licenses/bsd.txt</url>
<url>license.txt</url>
</license>
</licenses>
<scm>
<connection>https://decaid.idca.nl/hg/com.idcanet.vasc/</connection>
<developerConnection>scm:hg:${hg.repo.url}</developerConnection>
<url>https://decaid.idca.nl/hg/com.idcanet.vasc/file/</url>
<connection>git@bitbucket.org:im_ik/vasc.git</connection>
<developerConnection>scm:hg:ssh://git@bitbucket.org:im_ik/vasc.git</developerConnection>
<url>https://bitbucket.org/im_ik/vasc.git</url>
</scm>
<modules>
<module>vasc-backend-jpa</module>
@ -41,12 +37,12 @@
<module>demo-petstore</module>
</modules>
<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>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<juel.version>2.1.0</juel.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>
<!-- Maven plugin versions -->

View File

@ -4,8 +4,8 @@ Downloading
+--
<dependency>
<groupId>com.idcanet</groupId>
<artifactId>vasc</artifactId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>0.5-SNAPSHOT</version>
</dependency>
+--

View File

@ -5,6 +5,7 @@
<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.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

View 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

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:02 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>vasc-base</artifactId>
<groupId>com.idcanet.vasc</groupId>
<artifactId>vasc</artifactId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-backend-jpa</artifactId>
<version>0.3.5-SNAPSHOT</version>
<name>vasc-backend-jpa</name>
<description>vasc-backend-jpa</description>
<dependencies>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>${project.version}</version>
</dependency>

View File

@ -24,12 +24,12 @@
* 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.x4o.vasc.core.AbstractVascBackend;
import org.x4o.vasc.core.VascException;
import com.idcanet.vasc.core.AbstractVascBackend;
import com.idcanet.vasc.core.VascException;
/**
*

View File

@ -24,14 +24,15 @@
* 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 javax.persistence.EntityManager;
import com.idcanet.vasc.core.AbstractVascBackend;
import com.idcanet.vasc.core.VascException;
import org.x4o.vasc.core.AbstractVascBackend;
import org.x4o.vasc.core.VascException;
/**
*

View File

@ -24,7 +24,7 @@
* 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;

View File

@ -24,7 +24,7 @@
* 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;

View File

@ -24,23 +24,23 @@
* 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 org.hibernate.Hibernate;
import org.hibernate.Query;
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
@ -52,17 +52,17 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
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;
@ -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
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) {
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) {
return new BeanVascEntryRecordCreator(resultClass);
@ -136,28 +136,28 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
/**
* @return the query
*/
public com.idcanet.vasc.xpql.query.Query getQuery() {
public org.x4o.vasc.xpql.query.Query getQuery() {
return query;
}
/**
* @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;
}
/**
* @return the queryTotal
*/
public com.idcanet.vasc.xpql.query.Query getQueryTotal() {
public org.x4o.vasc.xpql.query.Query getQueryTotal() {
return queryTotal;
}
/**
* @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;
}
@ -190,7 +190,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see com.idcanet.vasc.core.AbstractVascBackend#isPageable()
* @see org.x4o.vasc.core.AbstractVascBackend#isPageable()
*/
@Override
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) {
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
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
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
public boolean isRecordMoveable() {
@ -378,56 +378,56 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
/**
* @return the queryMoveUp
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveUp() {
public org.x4o.vasc.xpql.query.Query getQueryMoveUp() {
return queryMoveUp;
}
/**
* @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;
}
/**
* @return the queryMoveDown
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveDown() {
public org.x4o.vasc.xpql.query.Query getQueryMoveDown() {
return queryMoveDown;
}
/**
* @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;
}
/**
* @return the queryMoveUpDown
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveUpDown() {
public org.x4o.vasc.xpql.query.Query getQueryMoveUpDown() {
return queryMoveUpDown;
}
/**
* @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;
}
/**
* @return the queryMoveDownUp
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveDownUp() {
public org.x4o.vasc.xpql.query.Query getQueryMoveDownUp() {
return queryMoveDownUp;
}
/**
* @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;
}
}

View File

@ -24,22 +24,23 @@
* 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 javax.persistence.EntityManager;
import javax.persistence.Query;
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;
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;
/**
* Manages persistance with xpql queries
@ -51,17 +52,17 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
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;
@ -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
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) {
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) {
VascEntryRecordCreator result = new BeanVascEntryRecordCreator(resultClass);
@ -141,28 +142,28 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
/**
* @return the query
*/
public com.idcanet.vasc.xpql.query.Query getQuery() {
public org.x4o.vasc.xpql.query.Query getQuery() {
return query;
}
/**
* @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;
}
/**
* @return the queryTotal
*/
public com.idcanet.vasc.xpql.query.Query getQueryTotal() {
public org.x4o.vasc.xpql.query.Query getQueryTotal() {
return queryTotal;
}
/**
* @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;
}
@ -195,7 +196,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see com.idcanet.vasc.core.AbstractVascBackend#isPageable()
* @see org.x4o.vasc.core.AbstractVascBackend#isPageable()
*/
@Override
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) {
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
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
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
public boolean isRecordMoveable() {
@ -371,61 +372,61 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
/**
* @return the queryMoveUp
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveUp() {
public org.x4o.vasc.xpql.query.Query getQueryMoveUp() {
return queryMoveUp;
}
/**
* @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;
}
/**
* @return the queryMoveDown
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveDown() {
public org.x4o.vasc.xpql.query.Query getQueryMoveDown() {
return queryMoveDown;
}
/**
* @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;
}
/**
* @return the queryMoveUpDown
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveUpDown() {
public org.x4o.vasc.xpql.query.Query getQueryMoveUpDown() {
return queryMoveUpDown;
}
/**
* @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;
}
/**
* @return the queryMoveDownUp
*/
public com.idcanet.vasc.xpql.query.Query getQueryMoveDownUp() {
public org.x4o.vasc.xpql.query.Query getQueryMoveDownUp() {
return queryMoveDownUp;
}
/**
* @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;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isSearchable()
* @see org.x4o.vasc.core.VascBackend#isSearchable()
*/
public boolean isSearchable() {
if (query.getQueryParameterValue("text_search")==null) {

View File

@ -5,6 +5,7 @@
<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.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

View File

@ -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

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:02 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>vasc-base</artifactId>
<groupId>com.idcanet.vasc</groupId>
<artifactId>vasc</artifactId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-backend-ldap</artifactId>
<version>0.3.5-SNAPSHOT</version>
<name>vasc-backend-ldap</name>
<description>vasc-backend-ldap</description>
<dependencies>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>${project.version}</version>
</dependency>

View File

@ -24,7 +24,7 @@
* 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;

View File

@ -24,7 +24,7 @@
* 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.HashMap;
@ -32,15 +32,16 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.idcanet.vasc.backends.MapVascEntryFieldValue;
import com.idcanet.vasc.backends.MapVascEntryRecordCreator;
import com.idcanet.vasc.core.AbstractVascBackend;
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 org.x4o.vasc.backends.MapVascEntryFieldValue;
import org.x4o.vasc.backends.MapVascEntryRecordCreator;
import org.x4o.vasc.core.AbstractVascBackend;
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 com.novell.ldap.LDAPAttribute;
import com.novell.ldap.LDAPAttributeSet;
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 {
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 {
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 {
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 {
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) {
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) {
return new MapVascEntryFieldValue();

View File

@ -24,7 +24,7 @@
* 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;
@ -42,7 +42,7 @@ public class SimpleLdapConnectionProvider implements LdapConnectionProvider {
private String bindPass = null;
/**
* @see com.idcanet.vasc.backends.ldap.LdapConnectionProvider#getLdapConnection()
* @see org.x4o.vasc.backends.ldap.LdapConnectionProvider#getLdapConnection()
*/
public LDAPConnection getLdapConnection() {
try {

View File

@ -5,6 +5,7 @@
<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.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View 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

View File

@ -0,0 +1,5 @@
#Sun Dec 25 17:29:03 CET 2011
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>vasc-base</artifactId>
<groupId>com.idcanet.vasc</groupId>
<artifactId>vasc</artifactId>
<groupId>org.x4o.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>0.3.5-SNAPSHOT</version>
<name>vasc-core</name>
<description>vasc-core</description>
<dependencies>
<dependency>
<groupId>com.idcanet.x4o</groupId>
<groupId>org.x4o</groupId>
<artifactId>x4o-core</artifactId>
<version>${x4o-core.version}</version>
</dependency>
<dependency>
<groupId>com.idcanet.vasc</groupId>
<groupId>org.x4o.vasc</groupId>
<artifactId>vasc-xpql</artifactId>
<version>${project.version}</version>
</dependency>

View File

@ -24,7 +24,7 @@
* 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.reflect.Method;

View File

@ -24,7 +24,7 @@
* 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.util.ArrayList;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -1,15 +1,16 @@
/**
*
*/
package com.idcanet.vasc.annotations;
package org.x4o.vasc.annotations;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.idcanet.vasc.core.VascException;
import com.idcanet.vasc.core.ui.VascSelectItem;
import com.idcanet.vasc.core.ui.VascSelectItemModel;
import org.x4o.vasc.core.VascException;
import org.x4o.vasc.core.ui.VascSelectItem;
import org.x4o.vasc.core.ui.VascSelectItemModel;
/**
* 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);
if ("null".equals(vascChoices.nullLabel())==false) {
nullLabel = vascChoices.nullLabel();

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;
@ -44,7 +44,6 @@ public @interface VascI18n {
/**
* The key of the Label default to "null"
* @see com.idcanet.i18n.I18nAnnotationParser#getI18nLabelKey(Class, String)
* @return The key of the ToolTip
*/
String name() default "";

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,7 +24,7 @@
* 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.Retention;

View File

@ -24,12 +24,13 @@
* 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 com.idcanet.vasc.core.entry.VascEntryFieldValue;
import com.idcanet.x4o.impl.DefaultElementObjectPropertyValue;
import org.x4o.vasc.core.VascEntryField;
import org.x4o.vasc.core.VascException;
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();
/**
* @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 {
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 {
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 {
if (field==null) {

View File

@ -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

View File

@ -1,13 +1,14 @@
/**
*
*/
package com.idcanet.vasc.backends;
package org.x4o.vasc.backends;
import java.util.Map;
import com.idcanet.vasc.core.VascEntryField;
import com.idcanet.vasc.core.VascException;
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
import org.x4o.vasc.core.VascEntryField;
import org.x4o.vasc.core.VascException;
import org.x4o.vasc.core.entry.VascEntryFieldValue;
/**
* @author willemc
@ -18,7 +19,7 @@ public class MapVascEntryFieldValue implements VascEntryFieldValue {
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")
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 {
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")
public void setValue(VascEntryField field, Object record,Object value) throws VascException {

View File

@ -1,13 +1,14 @@
/**
*
*/
package com.idcanet.vasc.backends;
package org.x4o.vasc.backends;
import java.util.HashMap;
import java.util.Map;
import com.idcanet.vasc.core.VascEntry;
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
import org.x4o.vasc.core.VascEntry;
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
/**
* @author willemc

View File

@ -24,7 +24,7 @@
* 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.SQLException;

View File

@ -24,7 +24,7 @@
* 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.ResultSet;
@ -34,15 +34,16 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.idcanet.vasc.backends.MapVascEntryFieldValue;
import com.idcanet.vasc.backends.MapVascEntryRecordCreator;
import com.idcanet.vasc.core.AbstractVascBackend;
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 org.x4o.vasc.backends.MapVascEntryFieldValue;
import org.x4o.vasc.backends.MapVascEntryRecordCreator;
import org.x4o.vasc.core.AbstractVascBackend;
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;
/**
*
@ -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 {
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 {
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 {
}
/**
* @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 {
}
/**
* @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) {
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) {
return new MapVascEntryRecordCreator();

View File

@ -24,7 +24,7 @@
* 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.PreparedStatement;
@ -34,16 +34,17 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.idcanet.vasc.backends.MapVascEntryFieldValue;
import com.idcanet.vasc.backends.MapVascEntryRecordCreator;
import com.idcanet.vasc.core.AbstractVascBackend;
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;
import org.x4o.vasc.backends.MapVascEntryFieldValue;
import org.x4o.vasc.backends.MapVascEntryRecordCreator;
import org.x4o.vasc.core.AbstractVascBackend;
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;
/**
*
@ -54,7 +55,7 @@ public class JdbcXpqlVascBackend extends AbstractVascBackend {
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
@ -73,19 +74,19 @@ public class JdbcXpqlVascBackend extends AbstractVascBackend {
/**
* @return the query
*/
public com.idcanet.vasc.xpql.query.Query getQuery() {
public org.x4o.vasc.xpql.query.Query getQuery() {
return query;
}
/**
* @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;
}
/**
* @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 {
// 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 {
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 {
}
/**
* @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 {
}
/**
* @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) {
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) {
return new MapVascEntryRecordCreator();

View File

@ -24,7 +24,7 @@
* 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.SQLException;
@ -47,7 +47,7 @@ public class JdniDataSourceJdbcConnectionProvider implements JdbcConnectionProvi
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 {
Connection connection = getDataSource(dataSourceName).getConnection();

View File

@ -24,7 +24,7 @@
* 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.DriverManager;
@ -45,7 +45,7 @@ public class SimpleJdbcConnectionProvider implements JdbcConnectionProvider {
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 {
if (loadedDriver==false) {

View File

@ -24,7 +24,7 @@
* 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;
@ -39,14 +39,14 @@ abstract public class AbstractVascBackend implements VascBackend {
private String id = null;
/**
* @see com.idcanet.vasc.core.VascBackend#getId()
* @see org.x4o.vasc.core.VascBackend#getId()
*/
public String getId() {
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) {
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() {
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) {
return 0;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isSearchable()
* @see org.x4o.vasc.core.VascBackend#isSearchable()
*/
public boolean isSearchable() {
return false;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isSortable()
* @see org.x4o.vasc.core.VascBackend#isSortable()
*/
public boolean isSortable() {
return false;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isRecordMoveable()
* @see org.x4o.vasc.core.VascBackend#isRecordMoveable()
*/
public boolean isRecordMoveable() {
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 {
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 {
return 0l;
}
/**
* @see com.idcanet.vasc.core.VascBackend#executePageSummary()
* @see org.x4o.vasc.core.VascBackend#executePageSummary()
*/
public Map<String, Object> executePageSummary() {
return null;
}
/**
* @see com.idcanet.vasc.core.VascBackend#executeTotalSummary()
* @see org.x4o.vasc.core.VascBackend#executeTotalSummary()
*/
public Map<String, Object> executeTotalSummary() {
return null;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isPageSummary()
* @see org.x4o.vasc.core.VascBackend#isPageSummary()
*/
public boolean isPageSummary() {
return false;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isTotalSummary()
* @see org.x4o.vasc.core.VascBackend#isTotalSummary()
*/
public boolean isTotalSummary() {
return false;

View File

@ -24,13 +24,14 @@
* 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.Map;
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
import org.x4o.vasc.core.entry.VascEntryFieldValue;
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) {
return backend.fetchTotalExecuteSize(state);
}
/**
* @see com.idcanet.vasc.core.VascBackend#isSortable()
* @see org.x4o.vasc.core.VascBackend#isSortable()
*/
public boolean isSortable() {
return backend.isSortable();
@ -64,119 +65,119 @@ abstract public class AbstractVascBackendProxy implements VascBackend {
/**
* @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 {
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 {
backend.delete(object);
}
/**
* @see com.idcanet.vasc.core.VascBackend#isPageable()
* @see org.x4o.vasc.core.VascBackend#isPageable()
*/
public boolean isPageable() {
return backend.isPageable();
}
/**
* @see com.idcanet.vasc.core.VascBackend#isSearchable()
* @see org.x4o.vasc.core.VascBackend#isSearchable()
*/
public boolean 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 {
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 {
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) {
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) {
return backend.provideVascEntryRecordCreator(vascEntry);
}
/**
* @see com.idcanet.vasc.core.VascBackend#getId()
* @see org.x4o.vasc.core.VascBackend#getId()
*/
public String 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) {
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 {
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 {
return backend.doRecordMoveUpById(state,primaryId);
}
/**
* @see com.idcanet.vasc.core.VascBackend#isRecordMoveable()
* @see org.x4o.vasc.core.VascBackend#isRecordMoveable()
*/
public boolean isRecordMoveable() {
return backend.isRecordMoveable();
}
/**
* @see com.idcanet.vasc.core.VascBackend#executePageSummary()
* @see org.x4o.vasc.core.VascBackend#executePageSummary()
*/
public Map<String, Object> executePageSummary() {
return backend.executePageSummary();
}
/**
* @see com.idcanet.vasc.core.VascBackend#executeTotalSummary()
* @see org.x4o.vasc.core.VascBackend#executeTotalSummary()
*/
public Map<String, Object> executeTotalSummary() {
return backend.executeTotalSummary();
}
/**
* @see com.idcanet.vasc.core.VascBackend#isPageSummary()
* @see org.x4o.vasc.core.VascBackend#isPageSummary()
*/
public boolean isPageSummary() {
return backend.isPageSummary();
}
/**
* @see com.idcanet.vasc.core.VascBackend#isTotalSummary()
* @see org.x4o.vasc.core.VascBackend#isTotalSummary()
*/
public boolean isTotalSummary() {
return backend.isTotalSummary();

View File

@ -24,7 +24,7 @@
* 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.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() {
return pageIndex;
}
/**
* @see com.idcanet.vasc.core.VascBackend#setPageIndex(int)
* @see org.x4o.vasc.core.VascBackend#setPageIndex(int)
*/
public void setPageIndex(int pageIndex) {
this.pageIndex=pageIndex;
}
/**
* @see com.idcanet.vasc.core.VascBackend#getPageSize()
* @see org.x4o.vasc.core.VascBackend#getPageSize()
*/
public int getPageSize() {
return pageSize;
}
/**
* @see com.idcanet.vasc.core.VascBackend#setPageSize(int)
* @see org.x4o.vasc.core.VascBackend#setPageSize(int)
*/
public void setPageSize(int pageSize) {
this.pageSize=pageSize;
}
/**
* @see com.idcanet.vasc.core.VascBackend#getSearchString()
* @see org.x4o.vasc.core.VascBackend#getSearchString()
*/
public String getSearchString() {
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) {
this.searchString=searchString;
}
/**
* @see com.idcanet.vasc.core.VascBackend#isSortAscending()
* @see org.x4o.vasc.core.VascBackend#isSortAscending()
*/
public boolean isSortAscending() {
return ascending;
}
/**
* @see com.idcanet.vasc.core.VascBackend#setSortAscending(boolean)
* @see org.x4o.vasc.core.VascBackend#setSortAscending(boolean)
*/
public void setSortAscending(boolean ascending) {
this.ascending=ascending;
}
/**
* @see com.idcanet.vasc.core.VascBackend#getSortField()
* @see org.x4o.vasc.core.VascBackend#getSortField()
*/
public String getSortField() {
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) {
this.sortField=sortField;

View File

@ -24,16 +24,17 @@
* 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.HashMap;
import java.util.List;
import java.util.Map;
import com.idcanet.vasc.core.ui.VascUIComponent;
import com.idcanet.vasc.core.ui.VascValueModel;
import com.idcanet.vasc.validators.VascValidator;
import org.x4o.vasc.core.ui.VascUIComponent;
import org.x4o.vasc.core.ui.VascValueModel;
import org.x4o.vasc.validators.VascValidator;
/**
*
@ -64,35 +65,35 @@ abstract public class AbstractVascEntryFieldType implements VascEntryFieldType {
abstract public VascEntryFieldType clone() throws CloneNotSupportedException;
/**
* @see com.idcanet.vasc.core.VascEntryFieldType#getId()
* @see org.x4o.vasc.core.VascEntryFieldType#getId()
*/
public String getId() {
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) {
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) {
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) {
properties.put(name, value);
}
/**
* @see com.idcanet.vasc.core.VascEntryFieldType#getPropertyNames()
* @see org.x4o.vasc.core.VascEntryFieldType#getPropertyNames()
*/
public List<String> getPropertyNames() {
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() {
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) {
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) {
vascValidators.remove(vascValidator);
}
/**
* @see com.idcanet.vasc.core.VascEntryFieldType#getAutoDetectClass()
* @see org.x4o.vasc.core.VascEntryFieldType#getAutoDetectClass()
*/
public Class<?> getAutoDetectClass() {
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) {
this.autoDetectClass=autoDetectClass;
}
/**
* @see com.idcanet.vasc.core.VascEntryFieldType#getInputMask()
* @see org.x4o.vasc.core.VascEntryFieldType#getInputMask()
*/
public String getInputMask() {
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) {
this.inputMask=inputMask;
}
/**
* @see com.idcanet.vasc.core.VascEntryFieldType#getUIComponentId()
* @see org.x4o.vasc.core.VascEntryFieldType#getUIComponentId()
*/
public String getUIComponentId() {
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) {
this.uiComponentId=uiComponentId;
}
/**
* @see com.idcanet.vasc.core.VascEntryFieldType#getUIComponentCount()
* @see org.x4o.vasc.core.VascEntryFieldType#getUIComponentCount()
*/
public int getUIComponentCount(VascEntryField entryField) throws VascException {
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 {
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 {
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 {
if (index>0) {

View File

@ -1,7 +1,7 @@
/**
*
*/
package com.idcanet.vasc.core;
package org.x4o.vasc.core;
import java.util.ArrayList;
import java.util.HashMap;

View File

@ -24,7 +24,7 @@
* 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;
@ -55,7 +55,7 @@ abstract public class AbstractVascFrontend implements VascFrontend {
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 {
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() {
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) {
this.id=id;

View File

@ -24,13 +24,14 @@
* 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.Map;
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
import org.x4o.vasc.core.entry.VascEntryFieldValue;
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
/**
*

View File

@ -24,7 +24,7 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package com.idcanet.vasc.core;
package org.x4o.vasc.core;
/**

View File

@ -24,7 +24,7 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package com.idcanet.vasc.core;
package org.x4o.vasc.core;
/**

View File

@ -24,7 +24,7 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package com.idcanet.vasc.core;
package org.x4o.vasc.core;
/**

View File

@ -24,7 +24,7 @@
* 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;

View File

@ -24,7 +24,7 @@
* 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.util.Set;

View File

@ -24,7 +24,7 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package com.idcanet.vasc.core;
package org.x4o.vasc.core;
/**

View File

@ -24,15 +24,16 @@
* 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.util.List;
import com.idcanet.vasc.core.actions.ColumnVascAction;
import com.idcanet.vasc.core.actions.GlobalVascAction;
import com.idcanet.vasc.core.actions.RowVascAction;
import com.idcanet.vasc.core.entry.VascEntryFieldEventChannel;
import org.x4o.vasc.core.actions.ColumnVascAction;
import org.x4o.vasc.core.actions.GlobalVascAction;
import org.x4o.vasc.core.actions.RowVascAction;
import org.x4o.vasc.core.entry.VascEntryFieldEventChannel;
/**
* The main vasc entry

View File

@ -24,7 +24,7 @@
* 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;

View File

@ -24,7 +24,7 @@
* 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