Created
October 16, 2014 13:16
-
-
Save gabanox/99e102bdc747da4b4d58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company.app.annotation.procedure; | |
import java.sql.Types; | |
import javax.sql.DataSource; | |
import org.springframework.jdbc.core.SqlParameter; | |
import org.springframework.jdbc.object.SqlFunction; | |
public class SfFirstNameById extends SqlFunction<String> { | |
private static final String SQL = "select getfirstnamebyid(?)"; | |
public SfFirstNameById(DataSource dataSource) { | |
super(dataSource, SQL); | |
declareParameter(new SqlParameter(Types.INTEGER)); | |
compile(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment