Class BankTransaction
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<Integer,BankTransaction>
-
- com.aoindustries.aoserv.client.accounting.BankTransaction
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,BankTransaction>
public final class BankTransaction extends AOServObject<Integer,BankTransaction> implements SingleTableObject<Integer,BankTransaction>
For AO Industries use only.- Author:
- AO Industries, Inc.
-
-
Field Summary
-
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 BankTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object O)UsergetAdministrator()intgetAmount()BankAccountgetBankAccount()BankTransactionTypegetBankTransactionType()StringgetCheckNo()protected ObjectgetColumnImpl(int i)ProcessorgetCreditCardProcessor()StringgetDescription()ExpenseCategorygetExpenseCategory()intgetId()IntegergetKey()AOServTable<Integer,BankTransaction>getTable()Gets theAOServTablethat contains thisAOServObject.Table.TableIDgetTableID()UnmodifiableTimestampgetTime()inthashCode()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisConfirmed()voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidsetTable(AOServTable<Integer,BankTransaction> table)StringtoStringImpl()AOServObject.toString()implementation that is allowed to throw exceptions.voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
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
-
equals
public boolean equals(Object O)
Description copied from class:AOServObjectImplementation Note:
This default implementation considers the object equal when it is the same class (viaObject.getClass()and has equal keys (viaAOServObject.getKey()).- Overrides:
equalsin classAOServObject<Integer,BankTransaction>
-
getAdministrator
public User getAdministrator() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getAmount
public int getAmount()
-
getBankAccount
public BankAccount getBankAccount() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getBankTransactionType
public BankTransactionType getBankTransactionType() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getCheckNo
public String getCheckNo()
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,BankTransaction>
-
getDescription
public String getDescription()
-
getExpenseCategory
public ExpenseCategory getExpenseCategory() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getCreditCardProcessor
public Processor getCreditCardProcessor() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getKey
public Integer getKey()
- Specified by:
getKeyin classAOServObject<Integer,BankTransaction>
-
getTable
public AOServTable<Integer,BankTransaction> getTable()
Description copied from interface:SingleTableObjectGets theAOServTablethat contains thisAOServObject.- Specified by:
getTablein interfaceSingleTableObject<Integer,BankTransaction>- Returns:
- the
AOServTable.
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,BankTransaction>
-
getId
public int getId()
-
getTime
public UnmodifiableTimestamp getTime()
-
hashCode
public int hashCode()
Description copied from class:AOServObjectImplementation Note:
This default implementation callsAOServObject.hashCode()on the key (fromAOServObject.getKey()).- Overrides:
hashCodein classAOServObject<Integer,BankTransaction>
-
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,BankTransaction>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isConfirmed
public boolean isConfirmed()
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,BankTransaction>- Throws:
IOException
-
setTable
public void setTable(AOServTable<Integer,BankTransaction> table)
- Specified by:
setTablein interfaceSingleTableObject<Integer,BankTransaction>
-
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 classAOServObject<Integer,BankTransaction>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,BankTransaction>- Throws:
IOException
-
-