📄 userupdate.java
字号:
package myspring.v3.jdbc.object;
import java.sql.Types;
import javax.sql.DataSource;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.object.SqlUpdate;
public class UserUpdate extends SqlUpdate{
public UserUpdate(DataSource dataSource){
this.setDataSource(dataSource);
this.setSql("update spring_user set username =?, password=? where id=?");
this.declareParameter(new SqlParameter(Types.VARCHAR));
this.declareParameter(new SqlParameter(Types.VARCHAR));
this.declareParameter(new SqlParameter(Types.INTEGER));
this.compile();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -