1 package de.webman.acl.db; 2 3 import java.sql.ResultSet ; 4 import java.sql.SQLException ; 5 import com.teamkonzept.db.TKQuery; 6 import de.webman.acl.Action; 7 8 17 public class ActionDBData 18 extends ObjectDBData 19 { 20 21 23 26 private String name = null; 27 28 29 31 37 public ActionDBData (Integer id, 38 String name) 39 { 40 super(id); 41 42 this.name = name; 43 } 44 45 50 public ActionDBData (Action action) 51 { 52 super(action); 53 54 this.name = action.getName(); 55 } 56 57 58 60 65 public final ObjectDBInterface getDBInterface () 66 { 67 return ActionDBInterface.getInstance(); 68 } 69 70 78 public void insertInitialIntoQuery (TKQuery query) 79 throws SQLException 80 { 81 super.insertInitialIntoQuery(query); 82 83 query.setQueryParams("NAME", this.name); 84 } 85 86 95 public void fill (ResultSet result) 96 throws SQLException 97 { 98 this.name = result.getString("NAME"); 99 100 super.fill(result); 101 } 102 103 108 public final String getName () 109 { 110 return this.name; 111 } 112 113 } 114 | Popular Tags |