Class SpamMessage
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,SpamMessage>
com.aoindustries.aoserv.client.email.SpamMessage
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
SpamMessage>
public final class SpamMessage
extends AoservObject<Integer,SpamMessage>
implements SingleTableObject<Integer,SpamMessage>
Every
SpamEmailMessage
that causes an IP address
to be blocked via a EmailSmtpRelay
is logged in this
table.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Object
getColumnImpl
(int i) getKey()
int
getPkey()
getTable()
Gets theAoservTable
that contains thisAoservObject
.getTime()
int
hashCode()
void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
setTable
(AoservTable<Integer, SpamMessage> table) void
write
(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, toStringImpl, write
-
Constructor Details
-
SpamMessage
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
equals
Description copied from class:AoservObject
Implementation Note:
This default implementation considers the object equal when it is the same class (viaObject.getClass()
and has equal keys (viaAoservObject.getKey()
).- Overrides:
equals
in classAoservObject<Integer,
SpamMessage>
-
getPkey
public int getPkey() -
getEmailSmtpRelay
- Throws:
SQLException
IOException
-
getTime
-
getMessage
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
SpamMessage>
-
getKey
- Specified by:
getKey
in classAoservObject<Integer,
SpamMessage>
-
getTable
Description copied from interface:SingleTableObject
Gets theAoservTable
that contains thisAoservObject
.- Specified by:
getTable
in interfaceSingleTableObject<Integer,
SpamMessage> - Returns:
- the
AoservTable
.
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
SpamMessage>
-
hashCode
public int hashCode()Description copied from class:AoservObject
Implementation Note:
This default implementation callsAoservObject.hashCode()
on the key (fromAoservObject.getKey()
).- Overrides:
hashCode
in classAoservObject<Integer,
SpamMessage>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
SpamMessage> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
SpamMessage> - Throws:
IOException
-
setTable
- Specified by:
setTable
in interfaceSingleTableObject<Integer,
SpamMessage>
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
SpamMessage> - Throws:
IOException
-