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.Event; 7 8 17 public class EventDBData 18 extends ObjectDBData 19 { 20 21 23 26 private String name = null; 27 28 29 31 37 public EventDBData (Integer id, 38 String name) 39 { 40 super(id); 41 42 this.name = name; 43 44 super.setIgnore(true); 45 } 46 47 52 public EventDBData (Event event) 53 { 54 super(event); 55 56 this.name = event.getName(); 57 } 58 59 60 62 67 public final ObjectDBInterface getDBInterface () 68 { 69 return EventDBInterface.getInstance(); 70 } 71 72 80 public void insertInitialIntoQuery (TKQuery query) 81 throws SQLException 82 { 83 super.insertInitialIntoQuery(query); 84 85 query.setQueryParams("NAME", this.name); 86 } 87 88 97 public void fill (ResultSet result) 98 throws SQLException 99 { 100 this.name = result.getString("NAME"); 101 102 super.fill(result); 103 } 104 105 110 public final String getName () 111 { 112 return this.name; 113 } 114 115 } 116 | Popular Tags |