From 14b1978a772c32ed6eb21a74be0e5af71348c4a4 Mon Sep 17 00:00:00 2001 From: cchantep Date: Thu, 12 Sep 2013 15:16:22 +0200 Subject: [PATCH] Bump version --- project/Acolyte.scala | 2 +- project/Core.scala | 89 ++++++++++++++++++++++++++++++++++++++++++- scala/build.sbt | 4 +- 3 files changed, 90 insertions(+), 5 deletions(-) diff --git a/project/Acolyte.scala b/project/Acolyte.scala index 077c8975..c071f686 100644 --- a/project/Acolyte.scala +++ b/project/Acolyte.scala @@ -9,7 +9,7 @@ object Acolyte extends Build with Core { lazy val root = Project(id = "acolyte", base = file(".")). aggregate(core, rowparsers, scala).settings( - version := "1.0.6", + version := "1.0.7", scalaVersion := "2.10.2", publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))) diff --git a/project/Core.scala b/project/Core.scala index 08eec42d..65a9ec65 100644 --- a/project/Core.scala +++ b/project/Core.scala @@ -5,7 +5,7 @@ trait Core { lazy val core = Project(id = "core", base = file("core")).settings( name := "acolyte-core", organization := "acolyte", - version := "1.0.6", + version := "1.0.7", scalaVersion := "2.10.2", javacOptions in Test ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"), autoScalaLibrary := false, @@ -162,7 +162,92 @@ public final class Rows {""") /** * Row lists utility/factory. */ -public final class RowLists {"""); +public final class RowLists { + + /** + * Convinience alias for row list of 1 string column. + */ + public static RowList1 stringList() { + return rowList1(String.class); + } + + /** + * Convinience alias for row list of 1 boolean column. + */ + public static RowList1 booleanList() { + return rowList1(Boolean.TYPE); + } + + /** + * Convinience alias for row list of 1 byte column. + */ + public static RowList1 byteList() { + return rowList1(Byte.TYPE); + } + + /** + * Convinience alias for row list of 1 short column. + */ + public static RowList1 shortList() { + return rowList1(Short.TYPE); + } + + /** + * Convinience alias for row list of 1 int column. + */ + public static RowList1 intList() { + return rowList1(Integer.TYPE); + } + + /** + * Convinience alias for row list of 1 long column. + */ + public static RowList1 longList() { + return rowList1(Long.TYPE); + } + + /** + * Convinience alias for row list of 1 float column. + */ + public static RowList1 floatList() { + return rowList1(Float.TYPE); + } + + /** + * Convinience alias for row list of 1 double column. + */ + public static RowList1 doubleList() { + return rowList1(Double.TYPE); + } + + /** + * Convinience alias for row list of 1 bigDecimal column. + */ + public static RowList1 bigDecimalList() { + return rowList1(java.math.BigDecimal.class); + } + + /** + * Convinience alias for row list of 1 date column. + */ + public static RowList1 dateList() { + return rowList1(java.sql.Date.class); + } + + /** + * Convinience alias for row list of 1 time column. + */ + public static RowList1 timeList() { + return rowList1(java.sql.Time.class); + } + + /** + * Convinience alias for row list of 1 timestamp column. + */ + public static RowList1 timestampList() { + return rowList1(java.sql.Timestamp.class); + } +"""); for (n <- 1 to lim) yield { val g = for (i <- 0 until n) yield letter(i) diff --git a/scala/build.sbt b/scala/build.sbt index bfe7fe5f..6bf64a3e 100644 --- a/scala/build.sbt +++ b/scala/build.sbt @@ -2,7 +2,7 @@ name := "acolyte-scala" organization := "acolyte" -version := "1.0.6" +version := "1.0.7" scalaVersion := "2.10.2" @@ -34,7 +34,7 @@ sourceGenerators in Compile <+= (baseDirectory in Compile) zip (sourceManaged in resolvers += "Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/" libraryDependencies ++= Seq( - "acolyte" % "acolyte-core" % "1.0.6", + "acolyte" % "acolyte-core" % "1.0.7", "org.specs2" %% "specs2" % "1.14" % "test") publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))