Package com.aoindustries.aoserv.client
Class CachedTableLongKey<V extends CachedObjectLongKey<V>>
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServTable<K,V>
-
- com.aoindustries.aoserv.client.CachedTable<Long,V>
-
- com.aoindustries.aoserv.client.CachedTableLongKey<V>
-
- Direct Known Subclasses:
HostTable,NetworkTable
public abstract class CachedTableLongKey<V extends CachedObjectLongKey<V>> extends CachedTable<Long,V>
- Author:
- AO Industries, Inc.
- See Also:
CachedObjectLongKey
-
-
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 protectedCachedTableLongKey(AOServConnector connector, Class<V> clazz)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract Vget(long 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
-
CachedTableLongKey
protected CachedTableLongKey(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 a Long or a String. If a String, will be parsed to a long.- Specified by:
getin classAOServTable<Long,V extends CachedObjectLongKey<V>>- Parameters:
pkey- whennull, will always returnnull- Throws:
IllegalArgumentException- if pkey is neither a Long nor a String.NumberFormatException- if String cannot be parsed to a LongIOExceptionSQLException
-
get
public abstract V get(long pkey) throws IOException, SQLException
- Throws:
IOExceptionSQLException- See Also:
get(java.lang.Object)
-
-