Class TransactionSearchCriteria
- java.lang.Object
-
- com.aoindustries.aoserv.client.billing.TransactionSearchCriteria
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,AOServReadable,AOServStreamable,AOServWritable
public final class TransactionSearchCriteria extends Object implements AOServStreamable
ATransactionSearchCriteriastores all the parameters for aTransactionsearch.wraps all the different ways in which the transaction table may be searched.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static intANYValue representing any in a search.
-
Constructor Summary
Constructors Constructor Description TransactionSearchCriteria()TransactionSearchCriteria(Administrator administrator)TransactionSearchCriteria(Timestamp after, Timestamp before, int transid, Account.Name account, Account.Name sourceAccount, User.Name administrator, String type, String description, String paymentType, String paymentInfo, byte paymentConfirmed)TransactionSearchCriteria(Timestamp after, Timestamp before, int transid, Account account, Account sourceAccount, Administrator administrator, TransactionType type, String description, PaymentType paymentType, String paymentInfo, byte paymentConfirmed)
-
Method Summary
-
-
-
Field Detail
-
ANY
public static final int ANY
Value representing any in a search.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransactionSearchCriteria
public TransactionSearchCriteria()
-
TransactionSearchCriteria
public TransactionSearchCriteria(Timestamp after, Timestamp before, int transid, Account.Name account, Account.Name sourceAccount, User.Name administrator, String type, String description, String paymentType, String paymentInfo, byte paymentConfirmed)
-
TransactionSearchCriteria
public TransactionSearchCriteria(Timestamp after, Timestamp before, int transid, Account account, Account sourceAccount, Administrator administrator, TransactionType type, String description, PaymentType paymentType, String paymentInfo, byte paymentConfirmed)
-
TransactionSearchCriteria
public TransactionSearchCriteria(Administrator administrator) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
-
Method Detail
-
getDefaultAfter
public static UnmodifiableTimestamp getDefaultAfter(long time)
-
getAfter
public UnmodifiableTimestamp getAfter()
-
getBefore
public UnmodifiableTimestamp getBefore()
-
getAccount
public Account.Name getAccount()
-
getSourceAccount
public Account.Name getSourceAccount()
-
getAdministrator
public User.Name getAdministrator()
-
getDescription
public String getDescription()
-
getPaymentConfirmed
public byte getPaymentConfirmed()
-
getPaymentInfo
public String getPaymentInfo()
-
getPaymentType
public String getPaymentType()
-
getType
public String getType()
-
getTransactions
@Deprecated public List<Transaction> getTransactions(AOServConnector connector) throws IOException, SQLException
Deprecated.- Throws:
IOExceptionSQLException
-
getTransid
public int getTransid()
-
read
@Deprecated public void read(StreamableInput in, String protocolVersion) throws IOException
Deprecated.This is maintained only for compatibility with theStreamableinterface.- Specified by:
readin interfaceAOServStreamable- Specified by:
readin interfaceStreamable- Specified by:
readin interfaceStreamReadable- Throws:
IOException- See Also:
read(com.aoapps.hodgepodge.io.stream.StreamableInput, com.aoindustries.aoserv.client.schema.AoservProtocol.Version)
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Throws:
IOException
-
setAfter
public void setAfter(Timestamp after)
-
setBefore
public void setBefore(Timestamp before)
-
setAccount
public void setAccount(Account.Name account)
-
setSourceAccount
public void setSourceAccount(Account.Name sourceAccount)
-
setAdministrator
public void setAdministrator(User.Name administrator)
-
setDescription
public void setDescription(String description)
-
setPaymentConfirmed
public void setPaymentConfirmed(byte paymentConfirmed)
-
setPaymentInfo
public void setPaymentInfo(String paymentInfo)
-
setPaymentType
public void setPaymentType(String paymentType)
-
setType
public void setType(String type)
-
setTransid
public void setTransid(int transid)
-
write
@Deprecated public void write(StreamableOutput out, String protocolVersion) throws IOException
Deprecated.This is maintained only for compatibility with theStreamableinterface.- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceStreamable- Specified by:
writein interfaceStreamWritable- Throws:
IOException- See Also:
write(com.aoapps.hodgepodge.io.stream.StreamableOutput, com.aoindustries.aoserv.client.schema.AoservProtocol.Version)
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Throws:
IOException
-
-