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

com.github.gkutiel.store.Statement.xtend Maven / Gradle / Ivy

There is a newer version: 7-RELEASE
Show newest version
package com.github.gkutiel.store

import java.sql.PreparedStatement

class Statement{
	def static dispatch set(PreparedStatement ps, int i, Boolean v){
		ps.setBoolean(i, v);
	}

	def static dispatch set(PreparedStatement ps, int i, Integer v){
		ps.setInt(i, v);
	}

	def static dispatch set(PreparedStatement ps, int i, Long v){
		ps.setLong(i, v);
	}

	def static dispatch set(PreparedStatement ps, int i, Double v){
		ps.setDouble(i, v);
	}

	def static dispatch set(PreparedStatement ps, int i, String v){
		ps.setString(i, v);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy