I hate Java ServerFaces

This commit is contained in:
2023-10-30 13:36:10 -05:00
parent 793435fc23
commit 45656bf9ed
24 changed files with 1015 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
*/
package edu.slcc.asdv.bl;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
@@ -15,4 +16,5 @@ public interface DBase<T>
{
List<T> listAll();
}
int update(T t) throws SQLException;
}

View File

@@ -56,7 +56,7 @@ public class DatabaseManipulationParts implements DBase<Part>
row++;
}
}
catch (Exception ex)
catch (SQLException ex)
{
ex.printStackTrace();
}
@@ -82,4 +82,10 @@ public class DatabaseManipulationParts implements DBase<Part>
DatabaseManipulationParts dms = new DatabaseManipulationParts();
System.out.println( dms.listAll());
}
@Override
public int update(Part t) throws SQLException
{
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
}
}

View File

@@ -57,7 +57,7 @@ public class DatabaseManipulationSupplier implements DBase<Supplier>
row++;
}
}
catch (Exception ex)
catch (SQLException ex)
{
ex.printStackTrace();
}
@@ -83,4 +83,10 @@ public class DatabaseManipulationSupplier implements DBase<Supplier>
DatabaseManipulationSupplier dms = new DatabaseManipulationSupplier();
System.out.println( dms.listAll());
}
@Override
public int update(Supplier t) throws SQLException
{
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
}
}