- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<Profile>
-
- com.aoindustries.aoserv.client.account.Profile
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,Profile>
public final class Profile extends CachedObjectIntegerKey<Profile>
Contact information associated with anAccount.- Author:
- AO Industries, Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProfile.EmailFormatThe set of possible units
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Method Detail
-
getAddress1
public String getAddress1()
-
getAddress2
public String getAddress2()
-
getBillingContact
public String getBillingContact()
-
getBillingEmailFormat
public Profile.EmailFormat getBillingEmailFormat()
-
getAccount_name
public Account.Name getAccount_name()
-
getAccount
public Account getAccount() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getCity
public String getCity()
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,Profile>
-
getCountry_code
public String getCountry_code()
-
getCountry
public CountryCode getCountry() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getCreated
public UnmodifiableTimestamp getCreated()
-
getFax
public String getFax()
-
getName
public String getName()
-
getPhone
public String getPhone()
-
getPriority
public int getPriority()
-
getState
public String getState()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,Profile>
-
getTechnicalContact
public String getTechnicalContact()
-
getTechnicalEmailFormat
public Profile.EmailFormat getTechnicalEmailFormat()
-
getZIP
public String getZIP()
-
splitEmails
public static Set<Email> splitEmails(String value) throws ValidationException
Splits emails into an unmodifiable set.- Throws:
ValidationException
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,Profile>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isPrivate
public boolean isPrivate()
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,Profile>- Throws:
IOException
-
sendInvoice
public boolean sendInvoice()
-
toStringImpl
public String toStringImpl()
Description copied from class:AOServObjectAOServObject.toString()implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAOServObject.toString()on the key (fromAOServObject.getKey()). When the key isnull, uses the default implementation fromObject.toString().- Overrides:
toStringImplin classCachedObjectIntegerKey<Profile>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,Profile>- Throws:
IOException
-
-