Class Reseller
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Account.Name,V>
-
- com.aoindustries.aoserv.client.account.CachedObjectAccountNameKey<Reseller>
-
- com.aoindustries.aoserv.client.reseller.Reseller
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Account.Name,Reseller>
public final class Reseller extends CachedObjectAccountNameKey<Reseller>
A reseller may handle support tickets..
-
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.account.CachedObjectAccountNameKey
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 Reseller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrandgetBrand()Account.NamegetBrand_business_accounting()List<Reseller>getChildResellers()The children of the resller are any resellers that have their closest parent business (that is a reseller) equal to this one.protected ObjectgetColumnImpl(int i)ResellergetParent()Gets the immediate parent of this reseller ornullif none available.Table.TableIDgetTableID()List<Assignment>getTicketAssignments()booleangetTicketAutoEscalate()voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.account.CachedObjectAccountNameKey
equals, getKey, hashCode, toStringImpl
-
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
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Account.Name,Reseller>
-
getBrand_business_accounting
public Account.Name getBrand_business_accounting()
-
getBrand
public Brand getBrand() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getTicketAutoEscalate
public boolean getTicketAutoEscalate()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Account.Name,Reseller>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Account.Name,Reseller>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Account.Name,Reseller>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Account.Name,Reseller>- Throws:
IOException
-
getTicketAssignments
public List<Assignment> getTicketAssignments() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getParent
public Reseller getParent() throws IOException, SQLException
Gets the immediate parent of this reseller ornullif none available.- Throws:
IOExceptionSQLException
-
getChildResellers
public List<Reseller> getChildResellers() throws IOException, SQLException
The children of the resller are any resellers that have their closest parent business (that is a reseller) equal to this one.- Throws:
IOExceptionSQLException
-
-