Package com.aoindustries.aoserv.client
Class CachedObjectIntegerKey<V extends CachedObjectIntegerKey<V>>
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,V>
com.aoindustries.aoserv.client.CachedObject<Integer,V>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<V>
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AoservReadable,AoservStreamable,AoservWritable,SingleTableObject<Integer,V>
- Direct Known Subclasses:
AccountHost,Action,Address,AdministratorPermission,Assignment,AttachmentBlock,BackupPartition,Bind,BindFirewallZone,BlackholeAddress,BrandCategory,Category,Certificate,CertificateName,CertificateOtherUse,Context,ContextDataSource,ContextParameter,CreditCard,CvsRepository,CyrusImapdBind,CyrusImapdServer,DaemonAcl,Database,Database,DatabaseUser,Device,DisableLog,DkimKey,Domain,EncryptionKey,FileReplication,FileReplicationSchedule,FileReplicationSetting,FirewallZone,Forwarding,GroupServer,GroupUser,Header,Host,HttpdBind,HttpdServer,InboxAddress,IpAddress,IpAddressMonitoring,JkMount,Limiter,LimiterClass,LimiterSet,List,ListAddress,Location,MajordomoList,MajordomoServer,MonthlyCharge,MysqlReplication,NoticeLog,NoticeLogBalance,Option,Package,PackageDefinition,PackageDefinitionLimit,Payment,PhysicalServer,Pipe,PipeAddress,PrivateServer,PrivateTomcatSite,Profile,Rack,Record,Request,RewriteRule,SendmailBind,SendmailServer,Server,Server,Server,Set,SharedTomcat,SharedTomcatSite,Site,Site,Site,SmtpRelay,SmtpSmartHost,SmtpSmartHostDomain,StaticSite,SystemAlias,TcpRedirect,Ticket,Transaction,UserAcl,UserHost,UserServer,UserServer,UserServer,VirtualDisk,VirtualHost,VirtualHostName,VirtualServer,WhoisHistory,WhoisHistoryAccount,Worker
public abstract class CachedObjectIntegerKey<V extends CachedObjectIntegerKey<V>>
extends CachedObject<Integer,V>
An object that is cached and uses an int as its primary key.
- Author:
- AO Industries, Inc.
-
Field Summary
FieldsFields inherited from class com.aoindustries.aoserv.client.CachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()intgetPkey()inthashCode()AoservObject.toString()implementation that is allowed to throw exceptions.Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTableMethods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumnImpl, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, init, read, read, toString, write, write
-
Field Details
-
pkey
protected int pkey
-
-
Constructor Details
-
CachedObjectIntegerKey
Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
equals
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,V extends CachedObjectIntegerKey<V>>
-
getPkey
public int getPkey() -
getKey
- Specified by:
getKeyin classAoservObject<Integer,V extends CachedObjectIntegerKey<V>>
-
hashCode
public int hashCode()Description copied from class:AoservObjectImplementation Note:
This default implementation callsAoservObject.hashCode()on the key (fromAoservObject.getKey()).- Overrides:
hashCodein classAoservObject<Integer,V extends CachedObjectIntegerKey<V>>
-
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,V extends CachedObjectIntegerKey<V>> - Throws:
IOExceptionSQLException
-
