Package com.aoindustries.aoserv.client
Class CachedTableLongKey<V extends CachedObjectLongKey<V>>
java.lang.Object
com.aoindustries.aoserv.client.AoservTable<Long,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:
-
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
ConstructorsModifierConstructorDescriptionprotected
CachedTableLongKey
(AoservConnector connector, Class<V> clazz) -
Method Summary
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 Details
-
CachedTableLongKey
-
-
Method Details
-
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:
get
in 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 LongIOException
SQLException
-
get
- Throws:
IOException
SQLException
- See Also:
-