Package com.aoindustries.aoserv.client
Class GlobalObjectIntegerKey<T extends GlobalObjectIntegerKey<T>>
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,T>
com.aoindustries.aoserv.client.GlobalObject<Integer,T>
com.aoindustries.aoserv.client.GlobalObjectIntegerKey<T>
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
- Direct Known Subclasses:
Column
,Encoding
,ForeignKey
,OperatingSystemVersion
,SoftwareCategorization
,SoftwareVersion
,Table
,Type
,Version
,Version
,Version
public abstract class GlobalObjectIntegerKey<T extends GlobalObjectIntegerKey<T>>
extends GlobalObject<Integer,T>
An object that is cached and uses an int as its primary key.
- 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
ModifierConstructorDescriptionprotected
Deprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
int
getPkey()
int
hashCode()
AoservObject.toString()
implementation that is allowed to throw exceptions.Methods 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
-
GlobalObjectIntegerKey
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,
T extends GlobalObjectIntegerKey<T>>
-
getPkey
public int getPkey() -
getKey
- Specified by:
getKey
in classAoservObject<Integer,
T extends GlobalObjectIntegerKey<T>>
-
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,
T extends GlobalObjectIntegerKey<T>>
-
toStringImpl
Description copied from class:AoservObject
AoservObject.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:
toStringImpl
in classAoservObject<Integer,
T extends GlobalObjectIntegerKey<T>>
-