2
0
Fork 0

renamed better

This commit is contained in:
Willem Cazander 2011-12-31 00:07:21 +01:00
parent cc6331b7fe
commit a523cc9122
289 changed files with 2546 additions and 1608 deletions

View file

@ -2,17 +2,17 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>vasc</artifactId>
<groupId>org.x4o.vasc</groupId>
<groupId>net.forwardfire.vasc</groupId>
<version>0.3.5-SNAPSHOT</version>
</parent>
<groupId>org.x4o.vasc</groupId>
<groupId>net.forwardfire.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>org.x4o.vasc</groupId>
<groupId>net.forwardfire.vasc</groupId>
<artifactId>vasc-core</artifactId>
<version>${project.version}</version>
</dependency>

View file

@ -24,11 +24,12 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package org.x4o.vasc.backends.jpa;
package net.forwardfire.vasc.backends.jpa;
import net.forwardfire.vasc.core.AbstractVascBackend;
import net.forwardfire.vasc.core.VascException;
import org.hibernate.Session;
import org.x4o.vasc.core.AbstractVascBackend;
import org.x4o.vasc.core.VascException;
/**

View file

@ -24,14 +24,14 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package org.x4o.vasc.backends.jpa;
package net.forwardfire.vasc.backends.jpa;
import java.lang.reflect.Method;
import javax.persistence.EntityManager;
import org.x4o.vasc.core.AbstractVascBackend;
import org.x4o.vasc.core.VascException;
import net.forwardfire.vasc.core.AbstractVascBackend;
import net.forwardfire.vasc.core.VascException;
/**

View file

@ -24,7 +24,7 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package org.x4o.vasc.backends.jpa;
package net.forwardfire.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 org.x4o.vasc.backends.jpa;
package net.forwardfire.vasc.backends.jpa;
import org.hibernate.Session;

View file

@ -24,22 +24,23 @@
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
*/
package org.x4o.vasc.backends.jpa;
package net.forwardfire.vasc.backends.jpa;
import java.util.List;
import net.forwardfire.vasc.backends.BeanVascEntryFieldValue;
import net.forwardfire.vasc.backends.BeanVascEntryRecordCreator;
import net.forwardfire.vasc.core.VascBackendState;
import net.forwardfire.vasc.core.VascEntry;
import net.forwardfire.vasc.core.VascEntryField;
import net.forwardfire.vasc.core.VascException;
import net.forwardfire.vasc.core.entry.VascEntryFieldValue;
import net.forwardfire.vasc.core.entry.VascEntryRecordCreator;
import net.forwardfire.vasc.xpql.query.QueryParameterValue;
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;
/**
@ -52,17 +53,17 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
private HibernateSessionProvider hibernateSessionProvider = null;
private org.x4o.vasc.xpql.query.Query query = null;
private net.forwardfire.vasc.xpql.query.Query query = null;
private org.x4o.vasc.xpql.query.Query queryTotal = null;
private net.forwardfire.vasc.xpql.query.Query queryTotal = null;
private org.x4o.vasc.xpql.query.Query queryMoveUp = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveUp = null;
private org.x4o.vasc.xpql.query.Query queryMoveUpDown = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveUpDown = null;
private org.x4o.vasc.xpql.query.Query queryMoveDown = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveDown = null;
private org.x4o.vasc.xpql.query.Query queryMoveDownUp = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveDownUp = null;
private Class<?> resultClass = null;
@ -70,7 +71,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
* @see net.forwardfire.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
*/
@Override
Session getHibernateSession() {
@ -119,7 +120,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
* @see net.forwardfire.vasc.core.VascBackend#provideVascEntryFieldValue(net.forwardfire.vasc.core.VascEntryField)
*/
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
BeanVascEntryFieldValue result = new BeanVascEntryFieldValue();
@ -127,7 +128,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
* @see net.forwardfire.vasc.core.VascBackend#provideVascEntryRecordCreator(net.forwardfire.vasc.core.VascEntry)
*/
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
return new BeanVascEntryRecordCreator(resultClass);
@ -136,28 +137,28 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
/**
* @return the query
*/
public org.x4o.vasc.xpql.query.Query getQuery() {
public net.forwardfire.vasc.xpql.query.Query getQuery() {
return query;
}
/**
* @param query the query to set
*/
public void setQuery(org.x4o.vasc.xpql.query.Query query) {
public void setQuery(net.forwardfire.vasc.xpql.query.Query query) {
this.query = query;
}
/**
* @return the queryTotal
*/
public org.x4o.vasc.xpql.query.Query getQueryTotal() {
public net.forwardfire.vasc.xpql.query.Query getQueryTotal() {
return queryTotal;
}
/**
* @param queryTotal the queryTotal to set
*/
public void setQueryTotal(org.x4o.vasc.xpql.query.Query queryTotal) {
public void setQueryTotal(net.forwardfire.vasc.xpql.query.Query queryTotal) {
this.queryTotal = queryTotal;
}
@ -190,7 +191,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#isPageable()
* @see net.forwardfire.vasc.core.AbstractVascBackend#isPageable()
*/
@Override
public boolean isPageable() {
@ -201,7 +202,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
* @see net.forwardfire.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
*/
public long fetchTotalExecuteSize(VascBackendState state) {
Session s = getHibernateSession();
@ -230,7 +231,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveDownById(java.lang.Object)
* @see net.forwardfire.vasc.core.AbstractVascBackend#doRecordMoveDownById(java.lang.Object)
*/
@Override
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
@ -299,7 +300,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveUpById(java.lang.Object)
* @see net.forwardfire.vasc.core.AbstractVascBackend#doRecordMoveUpById(java.lang.Object)
*/
@Override
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
@ -368,7 +369,7 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#isRecordMoveable()
* @see net.forwardfire.vasc.core.AbstractVascBackend#isRecordMoveable()
*/
@Override
public boolean isRecordMoveable() {
@ -378,56 +379,56 @@ public class XpqlHibernateVascBackend extends AbstractHibernateVascBackend {
/**
* @return the queryMoveUp
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveUp() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveUp() {
return queryMoveUp;
}
/**
* @param queryMoveUp the queryMoveUp to set
*/
public void setQueryMoveUp(org.x4o.vasc.xpql.query.Query queryMoveUp) {
public void setQueryMoveUp(net.forwardfire.vasc.xpql.query.Query queryMoveUp) {
this.queryMoveUp = queryMoveUp;
}
/**
* @return the queryMoveDown
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveDown() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveDown() {
return queryMoveDown;
}
/**
* @param queryMoveDown the queryMoveDown to set
*/
public void setQueryMoveDown(org.x4o.vasc.xpql.query.Query queryMoveDown) {
public void setQueryMoveDown(net.forwardfire.vasc.xpql.query.Query queryMoveDown) {
this.queryMoveDown = queryMoveDown;
}
/**
* @return the queryMoveUpDown
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveUpDown() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveUpDown() {
return queryMoveUpDown;
}
/**
* @param queryMoveUpDown the queryMoveUpDown to set
*/
public void setQueryMoveUpDown(org.x4o.vasc.xpql.query.Query queryMoveUpDown) {
public void setQueryMoveUpDown(net.forwardfire.vasc.xpql.query.Query queryMoveUpDown) {
this.queryMoveUpDown = queryMoveUpDown;
}
/**
* @return the queryMoveDownUp
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveDownUp() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveDownUp() {
return queryMoveDownUp;
}
/**
* @param queryMoveDownUp the queryMoveDownUp to set
*/
public void setQueryMoveDownUp(org.x4o.vasc.xpql.query.Query queryMoveDownUp) {
public void setQueryMoveDownUp(net.forwardfire.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 org.x4o.vasc.backends.jpa;
package net.forwardfire.vasc.backends.jpa;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
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 net.forwardfire.vasc.backends.BeanVascEntryFieldValue;
import net.forwardfire.vasc.backends.BeanVascEntryRecordCreator;
import net.forwardfire.vasc.core.VascBackendState;
import net.forwardfire.vasc.core.VascEntry;
import net.forwardfire.vasc.core.VascEntryField;
import net.forwardfire.vasc.core.VascException;
import net.forwardfire.vasc.core.entry.VascEntryFieldValue;
import net.forwardfire.vasc.core.entry.VascEntryRecordCreator;
import net.forwardfire.vasc.xpql.query.QueryParameterValue;
/**
@ -52,17 +53,17 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
private EntityManagerProvider entityManagerProvider = null;
private org.x4o.vasc.xpql.query.Query query = null;
private net.forwardfire.vasc.xpql.query.Query query = null;
private org.x4o.vasc.xpql.query.Query queryTotal = null;
private net.forwardfire.vasc.xpql.query.Query queryTotal = null;
private org.x4o.vasc.xpql.query.Query queryMoveUp = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveUp = null;
private org.x4o.vasc.xpql.query.Query queryMoveUpDown = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveUpDown = null;
private org.x4o.vasc.xpql.query.Query queryMoveDown = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveDown = null;
private org.x4o.vasc.xpql.query.Query queryMoveDownUp = null;
private net.forwardfire.vasc.xpql.query.Query queryMoveDownUp = null;
private Class<?> resultClass = null;
@ -70,7 +71,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
* @see net.forwardfire.vasc.backends.jpa.AbstractPersistenceVascBackend#getEntityManager()
*/
@Override
EntityManager getEntityManager() {
@ -124,7 +125,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.core.VascBackend#provideVascEntryFieldValue(org.x4o.vasc.core.VascEntryField)
* @see net.forwardfire.vasc.core.VascBackend#provideVascEntryFieldValue(net.forwardfire.vasc.core.VascEntryField)
*/
public VascEntryFieldValue provideVascEntryFieldValue(VascEntryField field) {
VascEntryFieldValue result = new BeanVascEntryFieldValue();
@ -132,7 +133,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.core.VascBackend#provideVascEntryRecordCreator(org.x4o.vasc.core.VascEntry)
* @see net.forwardfire.vasc.core.VascBackend#provideVascEntryRecordCreator(net.forwardfire.vasc.core.VascEntry)
*/
public VascEntryRecordCreator provideVascEntryRecordCreator(VascEntry vascEntry) {
VascEntryRecordCreator result = new BeanVascEntryRecordCreator(resultClass);
@ -142,28 +143,28 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
/**
* @return the query
*/
public org.x4o.vasc.xpql.query.Query getQuery() {
public net.forwardfire.vasc.xpql.query.Query getQuery() {
return query;
}
/**
* @param query the query to set
*/
public void setQuery(org.x4o.vasc.xpql.query.Query query) {
public void setQuery(net.forwardfire.vasc.xpql.query.Query query) {
this.query = query;
}
/**
* @return the queryTotal
*/
public org.x4o.vasc.xpql.query.Query getQueryTotal() {
public net.forwardfire.vasc.xpql.query.Query getQueryTotal() {
return queryTotal;
}
/**
* @param queryTotal the queryTotal to set
*/
public void setQueryTotal(org.x4o.vasc.xpql.query.Query queryTotal) {
public void setQueryTotal(net.forwardfire.vasc.xpql.query.Query queryTotal) {
this.queryTotal = queryTotal;
}
@ -196,7 +197,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#isPageable()
* @see net.forwardfire.vasc.core.AbstractVascBackend#isPageable()
*/
@Override
public boolean isPageable() {
@ -207,7 +208,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
* @see net.forwardfire.vasc.core.VascBackend#fetchTotalExecuteSize(VascBackendState state)
*/
public long fetchTotalExecuteSize(VascBackendState state) {
EntityManager em = getEntityManager();
@ -236,7 +237,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
/**
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveDownById(VascBackendState state,java.lang.Object)
* @see net.forwardfire.vasc.core.AbstractVascBackend#doRecordMoveDownById(VascBackendState state,java.lang.Object)
*/
@Override
public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
@ -299,7 +300,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#doRecordMoveUpById(VascBackendState state,java.lang.Object)
* @see net.forwardfire.vasc.core.AbstractVascBackend#doRecordMoveUpById(VascBackendState state,java.lang.Object)
*/
@Override
public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
@ -362,7 +363,7 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
}
/**
* @see org.x4o.vasc.core.AbstractVascBackend#isRecordMoveable()
* @see net.forwardfire.vasc.core.AbstractVascBackend#isRecordMoveable()
*/
@Override
public boolean isRecordMoveable() {
@ -372,61 +373,61 @@ public class XpqlPersistanceVascBackend extends AbstractPersistenceVascBackend
/**
* @return the queryMoveUp
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveUp() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveUp() {
return queryMoveUp;
}
/**
* @param queryMoveUp the queryMoveUp to set
*/
public void setQueryMoveUp(org.x4o.vasc.xpql.query.Query queryMoveUp) {
public void setQueryMoveUp(net.forwardfire.vasc.xpql.query.Query queryMoveUp) {
this.queryMoveUp = queryMoveUp;
}
/**
* @return the queryMoveDown
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveDown() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveDown() {
return queryMoveDown;
}
/**
* @param queryMoveDown the queryMoveDown to set
*/
public void setQueryMoveDown(org.x4o.vasc.xpql.query.Query queryMoveDown) {
public void setQueryMoveDown(net.forwardfire.vasc.xpql.query.Query queryMoveDown) {
this.queryMoveDown = queryMoveDown;
}
/**
* @return the queryMoveUpDown
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveUpDown() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveUpDown() {
return queryMoveUpDown;
}
/**
* @param queryMoveUpDown the queryMoveUpDown to set
*/
public void setQueryMoveUpDown(org.x4o.vasc.xpql.query.Query queryMoveUpDown) {
public void setQueryMoveUpDown(net.forwardfire.vasc.xpql.query.Query queryMoveUpDown) {
this.queryMoveUpDown = queryMoveUpDown;
}
/**
* @return the queryMoveDownUp
*/
public org.x4o.vasc.xpql.query.Query getQueryMoveDownUp() {
public net.forwardfire.vasc.xpql.query.Query getQueryMoveDownUp() {
return queryMoveDownUp;
}
/**
* @param queryMoveDownUp the queryMoveDownUp to set
*/
public void setQueryMoveDownUp(org.x4o.vasc.xpql.query.Query queryMoveDownUp) {
public void setQueryMoveDownUp(net.forwardfire.vasc.xpql.query.Query queryMoveDownUp) {
this.queryMoveDownUp = queryMoveDownUp;
}
/**
* @see org.x4o.vasc.core.VascBackend#isSearchable()
* @see net.forwardfire.vasc.core.VascBackend#isSearchable()
*/
public boolean isSearchable() {
if (query.getQueryParameterValue("text_search")==null) {