public class Contact extends DefaultDatabaseEntity implements DatabaseEntity
Contact class represents the Party contact information such as
the person's name or telephone number.| Modifier and Type | Class and Description |
|---|---|
static class |
Contact.COLUMNS |
| Constructor and Description |
|---|
Contact() |
| Modifier and Type | Method and Description |
|---|---|
static List<Contact> |
findByPartyId(long partyId) |
String |
getEmail() |
String |
getName() |
long |
getPartyId() |
String |
getTelefax() |
String |
getTelephone() |
long |
persistToDatabase() |
String |
prepareInsertStatement() |
void |
setEmail(String email) |
void |
setName(String name) |
void |
setPartyId(long partyId) |
void |
setTelefax(String telefax) |
void |
setTelephone(String telephone) |
createInsertSql, getConnection, insertpublic long persistToDatabase()
throws SQLException
persistToDatabase in interface DatabaseEntitySQLExceptionpublic String prepareInsertStatement()
prepareInsertStatement in class DefaultDatabaseEntitypublic static List<Contact> findByPartyId(long partyId) throws SQLException
SQLExceptionpublic String getTelephone()
public String getTelefax()
public String getEmail()
public String getName()
public void setName(String name)
public void setTelephone(String telephone)
public void setTelefax(String telefax)
public void setEmail(String email)
public long getPartyId()
public void setPartyId(long partyId)
Copyright © 2011–2019 Plain Source. All rights reserved.