diff options
author | James Moger <james.moger@gmail.com> | 2011-08-12 13:04:29 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-08-12 13:04:29 -0400 |
commit | 78d9f3ecbd9203a5ad63138037960e265509efba (patch) | |
tree | a62c1d2a61e44048ceb594ea9ee0935e95aa6cba /tests/com/iciql/test/models | |
parent | 5c70dc9c2562f40211d51b35854c50a626c9c163 (diff) | |
download | iciql-78d9f3ecbd9203a5ad63138037960e265509efba.tar.gz iciql-78d9f3ecbd9203a5ad63138037960e265509efba.zip |
Full primitives support.
Diffstat (limited to 'tests/com/iciql/test/models')
-rw-r--r-- | tests/com/iciql/test/models/PrimitivesModel.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/com/iciql/test/models/PrimitivesModel.java b/tests/com/iciql/test/models/PrimitivesModel.java index 2d1a7da..07c1611 100644 --- a/tests/com/iciql/test/models/PrimitivesModel.java +++ b/tests/com/iciql/test/models/PrimitivesModel.java @@ -15,6 +15,8 @@ */
package com.iciql.test.models;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Random;
import com.iciql.Iciql.IQColumn;
@@ -69,4 +71,19 @@ public class PrimitivesModel { same &= myFloat == p.myFloat;
return same;
}
+
+ public static List<PrimitivesModel> getList() {
+ List<PrimitivesModel> list = new ArrayList<PrimitivesModel>();
+ for (int i = 1; i <= 10; i++) {
+ PrimitivesModel p = new PrimitivesModel();
+ p.myLong = i;
+ list.add(p);
+ }
+ return list;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(myLong);
+ }
}
|