public class Owner extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private Collection<Account> |
accounts |
private String |
firstName |
private long |
id |
private String |
lastName |
private static long |
serialVersionUID |
private String |
ssn |
Constructor and Description |
---|
Owner() |
Owner(long id) |
Owner(long id,
String firstName,
String lastName) |
Modifier and Type | Method and Description |
---|---|
Collection<Account> |
getAccounts() |
String |
getFirstName() |
long |
getId() |
String |
getLastName() |
String |
getSsn() |
void |
setAccounts(Collection<Account> accounts) |
void |
setFirstName(String firstName) |
protected void |
setId(long id) |
void |
setLastName(String lastName) |
void |
setSsn(String ssn) |
String |
toString() |
private static final long serialVersionUID
private long id
private String firstName
private String lastName
private String ssn
private Collection<Account> accounts
public long getId()
protected void setId(long id)
public String getFirstName()
public void setFirstName(String firstName)
public String getLastName()
public void setLastName(String lastName)
public String getSsn()
public void setSsn(String ssn)
public Collection<Account> getAccounts()
public void setAccounts(Collection<Account> accounts)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.