Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fachkonzept;
- import java.io.IOException;
- import java.sql.SQLException;
- import datenhaltung.IDatenhaltung;
- public class FachkonzeptFactory {
- public IFachkonzept getFachkonzept(String fkType, IDatenhaltung db) throws SQLException, IOException{
- if(fkType == null){
- return null;
- }
- if(fkType.equalsIgnoreCase("ASCENDING")){
- return new Fachkonzept1(db);
- } else if(fkType.equalsIgnoreCase("DESCENDING")){
- return new Fachkonzept2(db);
- }
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement