Skip to content

Commit

Permalink
regen for jdk7
Browse files Browse the repository at this point in the history
  • Loading branch information
tpolecat committed Dec 7, 2015
1 parent 8129e49 commit cb9b86c
Show file tree
Hide file tree
Showing 10 changed files with 729 additions and 1,149 deletions.
752 changes: 290 additions & 462 deletions core/src/main/scala/doobie/free/callablestatement.scala

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions core/src/main/scala/doobie/free/clob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ object clob {
case object GetAsciiStream extends ClobOp[InputStream] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getAsciiStream())
}
case object GetCharacterStream extends ClobOp[Reader] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getCharacterStream())
}
case class GetCharacterStream1(a: Long, b: Long) extends ClobOp[Reader] {
case class GetCharacterStream(a: Long, b: Long) extends ClobOp[Reader] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getCharacterStream(a, b))
}
case object GetCharacterStream1 extends ClobOp[Reader] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getCharacterStream())
}
case class GetSubString(a: Long, b: Int) extends ClobOp[String] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSubString(a, b))
}
Expand All @@ -147,12 +147,12 @@ object clob {
case class SetCharacterStream(a: Long) extends ClobOp[Writer] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setCharacterStream(a))
}
case class SetString(a: Long, b: String, c: Int, d: Int) extends ClobOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setString(a, b, c, d))
}
case class SetString1(a: Long, b: String) extends ClobOp[Int] {
case class SetString(a: Long, b: String) extends ClobOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setString(a, b))
}
case class SetString1(a: Long, b: String, c: Int, d: Int) extends ClobOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setString(a, b, c, d))
}
case class Truncate(a: Long) extends ClobOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.truncate(a))
}
Expand Down Expand Up @@ -236,14 +236,14 @@ object clob {
/**
* @group Constructors (Primitives)
*/
val getCharacterStream: ClobIO[Reader] =
F.liftFC(GetCharacterStream)
def getCharacterStream(a: Long, b: Long): ClobIO[Reader] =
F.liftFC(GetCharacterStream(a, b))

/**
* @group Constructors (Primitives)
*/
def getCharacterStream(a: Long, b: Long): ClobIO[Reader] =
F.liftFC(GetCharacterStream1(a, b))
val getCharacterStream: ClobIO[Reader] =
F.liftFC(GetCharacterStream1)

/**
* @group Constructors (Primitives)
Expand Down Expand Up @@ -284,14 +284,14 @@ object clob {
/**
* @group Constructors (Primitives)
*/
def setString(a: Long, b: String, c: Int, d: Int): ClobIO[Int] =
F.liftFC(SetString(a, b, c, d))
def setString(a: Long, b: String): ClobIO[Int] =
F.liftFC(SetString(a, b))

/**
* @group Constructors (Primitives)
*/
def setString(a: Long, b: String): ClobIO[Int] =
F.liftFC(SetString1(a, b))
def setString(a: Long, b: String, c: Int, d: Int): ClobIO[Int] =
F.liftFC(SetString1(a, b, c, d))

/**
* @group Constructors (Primitives)
Expand Down
48 changes: 24 additions & 24 deletions core/src/main/scala/doobie/free/connection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -219,33 +219,33 @@ object connection {
case class PrepareCall2(a: String) extends ConnectionOp[CallableStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareCall(a))
}
case class PrepareStatement(a: String, b: Int, c: Int) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b, c))
case class PrepareStatement(a: String, b: Array[String]) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b))
}
case class PrepareStatement1(a: String, b: Int, c: Int, d: Int) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b, c, d))
}
case class PrepareStatement2(a: String) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a))
case class PrepareStatement2(a: String, b: Int, c: Int) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b, c))
}
case class PrepareStatement3(a: String, b: Array[String]) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b))
case class PrepareStatement3(a: String) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a))
}
case class PrepareStatement4(a: String, b: Int) extends ConnectionOp[PreparedStatement] {
case class PrepareStatement4(a: String, b: Array[Int]) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b))
}
case class PrepareStatement5(a: String, b: Array[Int]) extends ConnectionOp[PreparedStatement] {
case class PrepareStatement5(a: String, b: Int) extends ConnectionOp[PreparedStatement] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.prepareStatement(a, b))
}
case class ReleaseSavepoint(a: Savepoint) extends ConnectionOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.releaseSavepoint(a))
}
case object Rollback extends ConnectionOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.rollback())
}
case class Rollback1(a: Savepoint) extends ConnectionOp[Unit] {
case class Rollback(a: Savepoint) extends ConnectionOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.rollback(a))
}
case object Rollback1 extends ConnectionOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.rollback())
}
case class SetAutoCommit(a: Boolean) extends ConnectionOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setAutoCommit(a))
}
Expand Down Expand Up @@ -545,8 +545,8 @@ object connection {
/**
* @group Constructors (Primitives)
*/
def prepareStatement(a: String, b: Int, c: Int): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement(a, b, c))
def prepareStatement(a: String, b: Array[String]): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement(a, b))

/**
* @group Constructors (Primitives)
Expand All @@ -557,25 +557,25 @@ object connection {
/**
* @group Constructors (Primitives)
*/
def prepareStatement(a: String): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement2(a))
def prepareStatement(a: String, b: Int, c: Int): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement2(a, b, c))

/**
* @group Constructors (Primitives)
*/
def prepareStatement(a: String, b: Array[String]): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement3(a, b))
def prepareStatement(a: String): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement3(a))

/**
* @group Constructors (Primitives)
*/
def prepareStatement(a: String, b: Int): ConnectionIO[PreparedStatement] =
def prepareStatement(a: String, b: Array[Int]): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement4(a, b))

/**
* @group Constructors (Primitives)
*/
def prepareStatement(a: String, b: Array[Int]): ConnectionIO[PreparedStatement] =
def prepareStatement(a: String, b: Int): ConnectionIO[PreparedStatement] =
F.liftFC(PrepareStatement5(a, b))

/**
Expand All @@ -587,14 +587,14 @@ object connection {
/**
* @group Constructors (Primitives)
*/
val rollback: ConnectionIO[Unit] =
F.liftFC(Rollback)
def rollback(a: Savepoint): ConnectionIO[Unit] =
F.liftFC(Rollback(a))

/**
* @group Constructors (Primitives)
*/
def rollback(a: Savepoint): ConnectionIO[Unit] =
F.liftFC(Rollback1(a))
val rollback: ConnectionIO[Unit] =
F.liftFC(Rollback1)

/**
* @group Constructors (Primitives)
Expand Down
50 changes: 16 additions & 34 deletions core/src/main/scala/doobie/free/databasemetadata.scala
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,6 @@ object databasemetadata {
case object GetMaxIndexLength extends DatabaseMetaDataOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getMaxIndexLength())
}
case object GetMaxLogicalLobSize extends DatabaseMetaDataOp[Long] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getMaxLogicalLobSize())
}
case object GetMaxProcedureNameLength extends DatabaseMetaDataOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getMaxProcedureNameLength())
}
Expand Down Expand Up @@ -320,12 +317,12 @@ object databasemetadata {
case object GetSchemaTerm extends DatabaseMetaDataOp[String] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSchemaTerm())
}
case class GetSchemas(a: String, b: String) extends DatabaseMetaDataOp[ResultSet] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSchemas(a, b))
}
case object GetSchemas1 extends DatabaseMetaDataOp[ResultSet] {
case object GetSchemas extends DatabaseMetaDataOp[ResultSet] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSchemas())
}
case class GetSchemas1(a: String, b: String) extends DatabaseMetaDataOp[ResultSet] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSchemas(a, b))
}
case object GetSearchStringEscape extends DatabaseMetaDataOp[String] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSearchStringEscape())
}
Expand Down Expand Up @@ -470,12 +467,12 @@ object databasemetadata {
case object SupportsColumnAliasing extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsColumnAliasing())
}
case class SupportsConvert(a: Int, b: Int) extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsConvert(a, b))
}
case object SupportsConvert1 extends DatabaseMetaDataOp[Boolean] {
case object SupportsConvert extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsConvert())
}
case class SupportsConvert1(a: Int, b: Int) extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsConvert(a, b))
}
case object SupportsCoreSQLGrammar extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsCoreSQLGrammar())
}
Expand Down Expand Up @@ -569,9 +566,6 @@ object databasemetadata {
case object SupportsPositionedUpdate extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsPositionedUpdate())
}
case object SupportsRefCursors extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsRefCursors())
}
case class SupportsResultSetConcurrency(a: Int, b: Int) extends DatabaseMetaDataOp[Boolean] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.supportsResultSetConcurrency(a, b))
}
Expand Down Expand Up @@ -1003,12 +997,6 @@ object databasemetadata {
val getMaxIndexLength: DatabaseMetaDataIO[Int] =
F.liftFC(GetMaxIndexLength)

/**
* @group Constructors (Primitives)
*/
val getMaxLogicalLobSize: DatabaseMetaDataIO[Long] =
F.liftFC(GetMaxLogicalLobSize)

/**
* @group Constructors (Primitives)
*/
Expand Down Expand Up @@ -1126,14 +1114,14 @@ object databasemetadata {
/**
* @group Constructors (Primitives)
*/
def getSchemas(a: String, b: String): DatabaseMetaDataIO[ResultSet] =
F.liftFC(GetSchemas(a, b))
val getSchemas: DatabaseMetaDataIO[ResultSet] =
F.liftFC(GetSchemas)

/**
* @group Constructors (Primitives)
*/
val getSchemas: DatabaseMetaDataIO[ResultSet] =
F.liftFC(GetSchemas1)
def getSchemas(a: String, b: String): DatabaseMetaDataIO[ResultSet] =
F.liftFC(GetSchemas1(a, b))

/**
* @group Constructors (Primitives)
Expand Down Expand Up @@ -1426,14 +1414,14 @@ object databasemetadata {
/**
* @group Constructors (Primitives)
*/
def supportsConvert(a: Int, b: Int): DatabaseMetaDataIO[Boolean] =
F.liftFC(SupportsConvert(a, b))
val supportsConvert: DatabaseMetaDataIO[Boolean] =
F.liftFC(SupportsConvert)

/**
* @group Constructors (Primitives)
*/
val supportsConvert: DatabaseMetaDataIO[Boolean] =
F.liftFC(SupportsConvert1)
def supportsConvert(a: Int, b: Int): DatabaseMetaDataIO[Boolean] =
F.liftFC(SupportsConvert1(a, b))

/**
* @group Constructors (Primitives)
Expand Down Expand Up @@ -1621,12 +1609,6 @@ object databasemetadata {
val supportsPositionedUpdate: DatabaseMetaDataIO[Boolean] =
F.liftFC(SupportsPositionedUpdate)

/**
* @group Constructors (Primitives)
*/
val supportsRefCursors: DatabaseMetaDataIO[Boolean] =
F.liftFC(SupportsRefCursors)

/**
* @group Constructors (Primitives)
*/
Expand Down
32 changes: 16 additions & 16 deletions core/src/main/scala/doobie/free/nclob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ object nclob {
case object GetAsciiStream extends NClobOp[InputStream] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getAsciiStream())
}
case object GetCharacterStream extends NClobOp[Reader] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getCharacterStream())
}
case class GetCharacterStream1(a: Long, b: Long) extends NClobOp[Reader] {
case class GetCharacterStream(a: Long, b: Long) extends NClobOp[Reader] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getCharacterStream(a, b))
}
case object GetCharacterStream1 extends NClobOp[Reader] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getCharacterStream())
}
case class GetSubString(a: Long, b: Int) extends NClobOp[String] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.getSubString(a, b))
}
Expand All @@ -147,12 +147,12 @@ object nclob {
case class SetCharacterStream(a: Long) extends NClobOp[Writer] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setCharacterStream(a))
}
case class SetString(a: Long, b: String, c: Int, d: Int) extends NClobOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setString(a, b, c, d))
}
case class SetString1(a: Long, b: String) extends NClobOp[Int] {
case class SetString(a: Long, b: String) extends NClobOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setString(a, b))
}
case class SetString1(a: Long, b: String, c: Int, d: Int) extends NClobOp[Int] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.setString(a, b, c, d))
}
case class Truncate(a: Long) extends NClobOp[Unit] {
def defaultTransK[M[_]: Monad: Catchable: Capture] = primitive(_.truncate(a))
}
Expand Down Expand Up @@ -236,14 +236,14 @@ object nclob {
/**
* @group Constructors (Primitives)
*/
val getCharacterStream: NClobIO[Reader] =
F.liftFC(GetCharacterStream)
def getCharacterStream(a: Long, b: Long): NClobIO[Reader] =
F.liftFC(GetCharacterStream(a, b))

/**
* @group Constructors (Primitives)
*/
def getCharacterStream(a: Long, b: Long): NClobIO[Reader] =
F.liftFC(GetCharacterStream1(a, b))
val getCharacterStream: NClobIO[Reader] =
F.liftFC(GetCharacterStream1)

/**
* @group Constructors (Primitives)
Expand Down Expand Up @@ -284,14 +284,14 @@ object nclob {
/**
* @group Constructors (Primitives)
*/
def setString(a: Long, b: String, c: Int, d: Int): NClobIO[Int] =
F.liftFC(SetString(a, b, c, d))
def setString(a: Long, b: String): NClobIO[Int] =
F.liftFC(SetString(a, b))

/**
* @group Constructors (Primitives)
*/
def setString(a: Long, b: String): NClobIO[Int] =
F.liftFC(SetString1(a, b))
def setString(a: Long, b: String, c: Int, d: Int): NClobIO[Int] =
F.liftFC(SetString1(a, b, c, d))

/**
* @group Constructors (Primitives)
Expand Down
Loading

0 comments on commit cb9b86c

Please sign in to comment.