Class SoftwareVersionTable
java.lang.Object
com.aoindustries.aoserv.client.AoservTable<Integer,SoftwareVersion>
com.aoindustries.aoserv.client.GlobalTable<Integer,SoftwareVersion>
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 intFields used in anorder bysearch.static final intFields used in anorder bysearch.static final intstatic final intFields used in anorder bysearch.static final intFields used in anorder bysearch.Fields inherited from class com.aoindustries.aoserv.client.AoservTable
ASCENDING, connector, DESCENDING -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache, freeing up memory.get(int pkey) protected AoservTable.OrderBy[]Gets the default sorting for this table.static StringgetOrderLabel(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
getMethods inherited from class com.aoindustries.aoserv.client.GlobalTable
getGlobalRowCount, getIndexedRows, getRows, getRowsCopy, getUniqueRowImpl, isLoadedMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
public static final int NONEFields used in anorder bysearch.- See Also:
-
NAME
public static final int NAMEFields used in anorder bysearch.- See Also:
-
VERSION
public static final int VERSIONFields used in anorder bysearch.- See Also:
-
UPDATED
public static final int UPDATEDFields used in anorder bysearch.- See Also:
-
NUM_ORDER_LABELS
public static final int NUM_ORDER_LABELS- See Also:
-
-
Method Details
-
getDefaultOrderBy
Description copied from class:AoservTableGets the default sorting for this table.- Specified by:
getDefaultOrderByin classAoservTable<Integer,SoftwareVersion> - Returns:
nullif the sorting is performed by the server or the array of column names
-
clearCache
public void clearCache()Description copied from class:AoservTableClears the cache, freeing up memory. The data will be reloaded upon next use.- Overrides:
clearCachein classGlobalTable<Integer,SoftwareVersion>
-
get
- Specified by:
getin classGlobalTableIntegerKey<SoftwareVersion>- Throws:
IOExceptionSQLException- See Also:
-
getMaximumUpdatedTime
- Throws:
IOExceptionSQLException
-
getOrderLabel
-
getTableId
Description copied from class:AoservTableGets the unique identifier for this table. Each table has a unique identifier, as defined inSchemaTable.TableId.- Specified by:
getTableIdin 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 notnullonly the technologies that have every word in their name are selectedclasses- aArrayListofTechnologyClasses. Only the technologies that have any class are selected. If empty, all are selected.version- if notnullonly 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:
IOExceptionSQLException
-
