Skip to content

Commit

Permalink
fix: Remove deprecated warning with DB.prepareStatement method.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Sep 25, 2023
1 parent 7af7822 commit 96d2e79
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private DataSet getResult( com._3e.ADInterface.ADInfo info, DataSet ds, int coun
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
pstmt = DB.prepareStatement( info.getSQL() );
pstmt = DB.prepareStatement(info.getSQL(), null);
info.setParameters( pstmt, false );
rs = pstmt.executeQuery();
while (rs.next())
Expand Down Expand Up @@ -323,7 +323,7 @@ else if (m_columnName.equals("SalesRep_ID"))
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement(query);
pstmt = DB.prepareStatement(query, null);
pstmt.setInt(1, AD_Reference_ID);
rs = pstmt.executeQuery();
if (rs.next())
Expand Down Expand Up @@ -386,7 +386,7 @@ else if (m_columnName.equals("SalesRep_ID"))
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement(query);
pstmt = DB.prepareStatement(query, null);
pstmt.setString(1, m_keyColumnName);
rs = pstmt.executeQuery();
while (rs.next())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public static void renderDocActionOptions(LookupValues lvs, GridTab tab)
+ " AND l.AD_Reference_ID=135 ORDER BY t.Name";
try
{
PreparedStatement pstmt = DB.prepareStatement(sql);
PreparedStatement pstmt = DB.prepareStatement(sql, null);
ResultSet rs = pstmt.executeQuery();
while (rs.next())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void getReportDefinition(int AD_Process_ID)
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
pstmt = DB.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, null);
pstmt.setInt(1, AD_Process_ID);
rs = pstmt.executeQuery();
String path = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ private int getAD_Workflow_ID(int AD_Menu_ID){
+ "WHERE AD_Menu_ID=? AND Action='F'";
try
{
PreparedStatement pstmt = DB.prepareStatement(sql);
PreparedStatement pstmt = DB.prepareStatement(sql, null);
pstmt.setInt(1, AD_Menu_ID);
ResultSet rs = pstmt.executeQuery();
while (rs.next())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ private int getAD_Workflow_ID(int AD_Menu_ID){
+ "WHERE AD_Menu_ID=? AND Action='F'";
try
{
PreparedStatement pstmt = DB.prepareStatement(sql);
PreparedStatement pstmt = DB.prepareStatement(sql, null);
pstmt.setInt(1, AD_Menu_ID);
ResultSet rs = pstmt.executeQuery();
while (rs.next())
Expand Down

0 comments on commit 96d2e79

Please sign in to comment.