All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.squeryl.dsl.ast.CastExpressionNode.scala Maven / Gradle / Ivy

package org.squeryl.dsl.ast

import org.squeryl.internals._

class CastExpressionNode(expr: ExpressionNode,
                         typ: String) extends ExpressionNode {
  override def doWrite(sw: StatementWriter) = {
    sw.write("cast(")
    expr.write(sw)
    sw.write(" as " + sw.databaseAdapter.quoteIdentifier(typ) + ")")
  }

  override def children = List(expr)

  override def toString = "'CastExpressionNode:" + expr.toString + "::" + typ
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy