Package com.aoindustries.aoserv.client
Class CachedTableIntegerKey<V extends CachedObjectIntegerKey<V>>
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServTable<K,V>
-
- com.aoindustries.aoserv.client.CachedTable<Integer,V>
-
- com.aoindustries.aoserv.client.CachedTableIntegerKey<V>
-
- Direct Known Subclasses:
AccountHostTable,ActionTable,AddressTable,AdministratorPermissionTable,AssignmentTable,AttachmentBlockTable,BackupPartitionTable,BindFirewallZoneTable,BindTable,BlackholeAddressTable,BrandCategoryTable,CategoryTable,CertificateNameTable,CertificateOtherUseTable,CertificateTable,ContextDataSourceTable,ContextParameterTable,ContextTable,CreditCardTable,CvsRepositoryTable,CyrusImapdBindTable,CyrusImapdServerTable,DaemonAclTable,DatabaseTable,DatabaseTable,DatabaseUserTable,DeviceTable,DisableLogTable,DomainTable,EncryptionKeyTable,FileReplicationScheduleTable,FileReplicationSettingTable,FileReplicationTable,FirewallZoneTable,ForwardingTable,GroupServerTable,GroupUserTable,HeaderTable,HostTable,HttpdBindTable,HttpdServerTable,InboxAddressTable,IpAddressMonitoringTable,IpAddressTable,JkMountTable,LimiterClassTable,LimiterSetTable,LimiterTable,ListAddressTable,ListTable,LocationTable,MajordomoListTable,MajordomoServerTable,MonthlyChargeTable,MysqlReplicationTable,NoticeLogBalanceTable,NoticeLogTable,OptionTable,PackageDefinitionLimitTable,PackageDefinitionTable,PackageTable,PaymentTable,PhysicalServerTable,PipeAddressTable,PipeTable,PrivateServerTable,PrivateTomcatSiteTable,ProfileTable,RackTable,RecordTable,RequestTable,RewriteRuleTable,SendmailBindTable,SendmailServerTable,ServerTable,ServerTable,ServerTable,SetTable,SharedTomcatSiteTable,SharedTomcatTable,SiteTable,SiteTable,SiteTable,SmtpRelayTable,SmtpSmartHostDomainTable,SmtpSmartHostTable,StaticSiteTable,SystemAliasTable,TcpRedirectTable,TicketTable,TransactionTable,UserAclTable,UserHostTable,UserServerTable,UserServerTable,UserServerTable,VirtualDiskTable,VirtualHostNameTable,VirtualHostTable,VirtualServerTable,WhoisHistoryAccountTable,WhoisHistoryTable,WorkerTable
public abstract class CachedTableIntegerKey<V extends CachedObjectIntegerKey<V>> extends CachedTable<Integer,V>
- Author:
- AO Industries, Inc.
- See Also:
CachedObjectIntegerKey
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.aoindustries.aoserv.client.AOServTable
AOServTable.OrderBy
-
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.AOServTable
ASCENDING, connector, DESCENDING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCachedTableIntegerKey(AOServConnector connector, Class<V> clazz)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract Vget(int pkey)Vget(Object pkey)Deprecated.Always try to lookup by specific keys; the compiler will help you more when types change.-
Methods inherited from class com.aoindustries.aoserv.client.CachedTable
clearCache, getIndexedRows, getRows, getRowsCopy, getUniqueRowImpl, isLoaded
-
Methods inherited from class com.aoindustries.aoserv.client.AOServTable
addProgressListener, addTableListener, addTableListener, addTableLoadListener, getCachedRowCount, getConnector, getDefaultOrderBy, getDefaultOrderBySQLExpressions, getIndexedRows, getMap, getNewObject, getObject, getObjects, getObjects, getObjects, getObjectsNoProgress, getObjectsNoProgress, getSize, getSortAlgorithm, getTableID, getTableName, getTableSchema, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, handleCommand, hasAnyTableListener, hasTableListener, isEmpty, iterator, printTable, removeProgressListener, removeTableListener, removeTableLoadListener, size, sortIfNeeded, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CachedTableIntegerKey
protected CachedTableIntegerKey(AOServConnector connector, Class<V> clazz)
-
-
Method Detail
-
get
@Deprecated public V get(Object pkey) throws IOException, SQLException, IllegalArgumentException, NumberFormatException
Deprecated.Always try to lookup by specific keys; the compiler will help you more when types change.Gets the object with the provided key. The key must be either an Integer or a String. If a String, will be parsed to an integer.- Specified by:
getin classAOServTable<Integer,V extends CachedObjectIntegerKey<V>>- Parameters:
pkey- whennull, will always returnnull- Throws:
IllegalArgumentException- if pkey is neither an Integer nor a String.NumberFormatException- if String cannot be parsed to an IntegerIOExceptionSQLException
-
get
public abstract V get(int pkey) throws IOException, SQLException
- Throws:
IOExceptionSQLException- See Also:
get(java.lang.Object)
-
-