I hate Java ServerFaces
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user