Here you can find the source of createProjectInfo(PreparedStatement ps, long projectId, long projectInfoTypeId, String value, long modUserId)
Parameter | Description |
---|---|
ps | the preparedstatement |
projectInfoTypeId | the info type id |
value | the value |
Parameter | Description |
---|---|
SQLException | if error occurs |
private static void createProjectInfo(PreparedStatement ps, long projectId, long projectInfoTypeId, String value, long modUserId) throws SQLException
//package com.java2s; import java.sql.PreparedStatement; import java.sql.SQLException; public class Main { /**/*from www.j av a 2 s . c o m*/ * Create project info. * * @param ps the preparedstatement * @param projectInfoTypeId the info type id * @param value the value * @throws SQLException if error occurs */ private static void createProjectInfo(PreparedStatement ps, long projectId, long projectInfoTypeId, String value, long modUserId) throws SQLException { int index = 1; ps.setLong(index++, projectId); ps.setLong(index++, projectInfoTypeId); ps.setString(index++, value); ps.setString(index++, String.valueOf(modUserId)); ps.setString(index++, String.valueOf(modUserId)); ps.executeUpdate(); } }