[svn r262] made i18n work, added some images, made preperments for the user options
This commit is contained in:
parent
cb8d6bc334
commit
0d5312462c
27 changed files with 468 additions and 163 deletions
|
|
@ -30,7 +30,7 @@ import java.util.ArrayList;
|
|||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.idcanet.vasc.core.VascDataSource;
|
||||
import com.idcanet.vasc.core.AbstractVascDataSource;
|
||||
import com.idcanet.vasc.models.TestModel;
|
||||
|
||||
/**
|
||||
|
|
@ -38,7 +38,7 @@ import com.idcanet.vasc.models.TestModel;
|
|||
* @author Willem Cazander
|
||||
* @version 1.0 Mar 21, 2007
|
||||
*/
|
||||
public class TestModelVascDataSource implements VascDataSource {
|
||||
public class TestModelVascDataSource extends AbstractVascDataSource {
|
||||
|
||||
private List<Object> testModels = null;
|
||||
|
||||
|
|
@ -63,22 +63,22 @@ public class TestModelVascDataSource implements VascDataSource {
|
|||
this.testModels=testModels;
|
||||
}
|
||||
|
||||
public List<Object> executeQuery(com.idcanet.xtes.xpql.query.Query query) throws Exception {
|
||||
public List<Object> execute() throws Exception {
|
||||
return testModels;
|
||||
}
|
||||
|
||||
public void persist(Object object) throws Exception {
|
||||
testModels.add(object);
|
||||
}
|
||||
|
||||
public Object merge(Object object) throws Exception {
|
||||
if(testModels.contains(object)==false) {
|
||||
testModels.add(object);
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
public void delete(Object object) throws Exception {
|
||||
testModels.remove(object);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue