View Javadoc
1   package generated.model.de.fhdw.partner;
2   
3   import de.fhdw.wtf.context.model.AnyType;
4   import de.fhdw.wtf.context.model.collections.MutableList;
5   import de.fhdw.wtf.context.model.collections.MutableMap;
6   import de.fhdw.wtf.persistence.meta.UserObject;
7   
8   /**
9    * Represents a local reverse phone number dictionary.
10   */
11  public class TelefonbuchMitPersonAlsKey extends AnyType {
12  	
13  	/**
14  	 * Maps persons to lists of phone numbers.
15  	 */
16  	private MutableMap<NatuerlichePerson, MutableList<Telefon>> eintraege;
17  	
18  	/**
19  	 * Creates an empty TelefonbuchMitPersonAlsKey.
20  	 */
21  	public TelefonbuchMitPersonAlsKey() {
22  		this.eintraege = new MutableMap<>();
23  	}
24  	
25  	/**
26  	 * Loads object from database.
27  	 * 
28  	 * @param userObject
29  	 *            The underlying user object.
30  	 */
31  	public TelefonbuchMitPersonAlsKey(final UserObject userObject) {
32  		super(userObject);
33  	}
34  	
35  	/**
36  	 * Returns the whole map from persons to lists of phone numbers.
37  	 * 
38  	 * @return A map from persons to lists of phone numbers.
39  	 */
40  	public MutableMap<NatuerlichePerson, MutableList<Telefon>> getEintraege() {
41  		return this.eintraege;
42  	}
43  	
44  	/**
45  	 * Sets the whole map from persons to lists of phone numbers.
46  	 * 
47  	 * @param eintraege
48  	 *            A map from persons to lists of phone numbers.
49  	 */
50  	public void setEintraege(final MutableMap<NatuerlichePerson, MutableList<Telefon>> eintraege) {
51  		this.eintraege = eintraege;
52  	}
53  }