Class SoftwareVersionTable
java.lang.Object
com.aoindustries.aoserv.client.AoservTable<K,V>
com.aoindustries.aoserv.client.GlobalTable<Integer,V>
com.aoindustries.aoserv.client.GlobalTableIntegerKey<SoftwareVersion>
com.aoindustries.aoserv.client.distribution.SoftwareVersionTable
- All Implemented Interfaces:
Table<SoftwareVersion>
,Iterable<SoftwareVersion>
- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aoindustries.aoserv.client.AoservTable
AoservTable.OrderBy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Fields used in anorder by
search.static final int
Fields used in anorder by
search.static final int
static final int
Fields used in anorder by
search.static final int
Fields used in anorder by
search.Fields inherited from class com.aoindustries.aoserv.client.AoservTable
ASCENDING, connector, DESCENDING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache, freeing up memory.get
(int pkey) protected AoservTable.OrderBy[]
Gets the default sorting for this table.static String
getOrderLabel
(int index) Gets the unique identifier for this table.getTechnologyVersions
(OperatingSystemVersion osv, String name, List<SoftwareCategory> classes, String version, int orderBy) Searches the list of all technologies (names, versions, and classes) in the database.Methods inherited from class com.aoindustries.aoserv.client.GlobalTableIntegerKey
get
Methods inherited from class com.aoindustries.aoserv.client.GlobalTable
getGlobalRowCount, getIndexedRows, getRows, getRowsCopy, getUniqueRowImpl, isLoaded
Methods inherited from class com.aoindustries.aoserv.client.AoservTable
addProgressListener, addTableListener, addTableListener, addTableLoadListener, getCachedRowCount, getConnector, getDefaultOrderBySqlExpressions, getIndexedRows, getMap, getNewObject, getObject, getObjects, getObjects, getObjects, getObjectsNoProgress, getObjectsNoProgress, getSize, getSortAlgorithm, 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
-
Field Details
-
NONE
public static final int NONEFields used in anorder by
search.- See Also:
-
NAME
public static final int NAMEFields used in anorder by
search.- See Also:
-
VERSION
public static final int VERSIONFields used in anorder by
search.- See Also:
-
UPDATED
public static final int UPDATEDFields used in anorder by
search.- See Also:
-
NUM_ORDER_LABELS
public static final int NUM_ORDER_LABELS- See Also:
-
-
Method Details
-
getDefaultOrderBy
Description copied from class:AoservTable
Gets the default sorting for this table.- Specified by:
getDefaultOrderBy
in classAoservTable<Integer,
SoftwareVersion> - Returns:
null
if the sorting is performed by the server or the array of column names
-
clearCache
public void clearCache()Description copied from class:AoservTable
Clears the cache, freeing up memory. The data will be reloaded upon next use.- Overrides:
clearCache
in classGlobalTable<Integer,
SoftwareVersion>
-
get
- Specified by:
get
in classGlobalTableIntegerKey<SoftwareVersion>
- Throws:
IOException
SQLException
- See Also:
-
getMaximumUpdatedTime
- Throws:
IOException
SQLException
-
getOrderLabel
-
getTableId
Description copied from class:AoservTable
Gets the unique identifier for this table. Each table has a unique identifier, as defined inSchemaTable.TableId
.- Specified by:
getTableId
in classAoservTable<Integer,
SoftwareVersion> - Returns:
- the identifier for this table
- See Also:
-
getTechnologyVersions
public List<SoftwareVersion> getTechnologyVersions(OperatingSystemVersion osv, String name, List<SoftwareCategory> classes, String version, int orderBy) throws IOException, SQLException Searches the list of all technologies (names, versions, and classes) in the database.- Parameters:
name
- if notnull
only the technologies that have every word in their name are selectedclasses
- aArrayList
ofTechnologyClass
es. Only the technologies that have any class are selected. If empty, all are selected.version
- if notnull
only the technologies that have every word in their version are selectedorderBy
- the column that the results will be ordered by- Returns:
- a
TechnologyVersion[]
of all the matches - Throws:
IOException
SQLException
-