Class PaymentType
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<String,T>
-
- com.aoindustries.aoserv.client.GlobalObjectStringKey<PaymentType>
-
- com.aoindustries.aoserv.client.payment.PaymentType
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class PaymentType extends GlobalObjectStringKey<PaymentType>
The system can process several differentPaymentTypes. Once processed, the amount paid is subtracted from theaccount'sbalance as a newTransaction.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAMEXThe system supported payment types, not all of which can be processed by AO Industries.static StringCASHThe system supported payment types, not all of which can be processed by AO Industries.static StringCHECKThe system supported payment types, not all of which can be processed by AO Industries.static StringDISCOVERThe system supported payment types, not all of which can be processed by AO Industries.static StringMASTERCARDThe system supported payment types, not all of which can be processed by AO Industries.static StringMONEY_ORDERThe system supported payment types, not all of which can be processed by AO Industries.static StringPAYPALThe system supported payment types, not all of which can be processed by AO Industries.static StringVISAThe system supported payment types, not all of which can be processed by AO Industries.static StringWIREThe system supported payment types, not all of which can be processed by AO Industries.-
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectStringKey
pkey
-
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 PaymentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowWeb()protected ObjectgetColumnImpl(int i)StringgetDescription()StringgetName()Table.TableIDgetTableID()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisActive()voidread(StreamableInput in, AoservProtocol.Version protocolVersion)StringtoStringImpl()AOServObject.toString()implementation that is allowed to throw exceptions.voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectStringKey
equals, getKey, hashCode
-
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
-
-
-
-
Field Detail
-
AMEX
public static final String AMEX
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
CASH
public static final String CASH
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
CHECK
public static final String CHECK
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
DISCOVER
public static final String DISCOVER
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
MASTERCARD
public static final String MASTERCARD
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
MONEY_ORDER
public static final String MONEY_ORDER
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
PAYPAL
public static final String PAYPAL
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
VISA
public static final String VISA
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
WIRE
public static final String WIRE
The system supported payment types, not all of which can be processed by AO Industries.- See Also:
- Constant Field Values
-
-
Method Detail
-
allowWeb
public boolean allowWeb()
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<String,PaymentType>
-
getDescription
public String getDescription()
-
getName
public String getName()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<String,PaymentType>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<String,PaymentType>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isActive
public boolean isActive()
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<String,PaymentType>- Throws:
IOException
-
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 classGlobalObjectStringKey<PaymentType>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<String,PaymentType>- Throws:
IOException
-
-