Class DistroFileTable
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServTable<K,V>
-
- com.aoindustries.aoserv.client.FilesystemCachedTable<Integer,DistroFile>
-
- com.aoindustries.aoserv.client.distribution.management.DistroFileTable
-
- All Implemented Interfaces:
FileListObjectFactory<DistroFile>,Table<DistroFile>,Iterable<DistroFile>
public final class DistroFileTable extends FilesystemCachedTable<Integer,DistroFile>
For AO Industries use only.- Author:
- AO Industries, Inc.
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DistroFileget(int pkey)DistroFileget(Object pkey)Deprecated.Always try to lookup by specific keys; the compiler will help you more when types change.intgetCachedRowCount()Gets an approximate number of accessible rows in the database.protected AOServTable.OrderBy[]getDefaultOrderBy()Gets the default sorting for this table.intgetRecordLength()Table.TableIDgetTableID()Gets the unique identifier for this table.booleanhandleCommand(String[] args, Reader in, TerminalWriter out, TerminalWriter err, boolean isInteractive)intsize()voidstartDistro(Server server, boolean includeUser)-
Methods inherited from class com.aoindustries.aoserv.client.FilesystemCachedTable
clearCache, createInstance, getRows, getRowsCopy, getSortAlgorithm, getUniqueRowImpl, isLoaded
-
Methods inherited from class com.aoindustries.aoserv.client.AOServTable
addProgressListener, addTableListener, addTableListener, addTableLoadListener, getConnector, getDefaultOrderBySQLExpressions, getIndexedRows, getIndexedRows, getMap, getNewObject, getObject, getObjects, getObjects, getObjects, getObjectsNoProgress, getObjectsNoProgress, getSize, getTableName, getTableSchema, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, hasAnyTableListener, hasTableListener, isEmpty, iterator, printTable, removeProgressListener, removeTableListener, removeTableLoadListener, 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
-
-
-
-
Method Detail
-
getDefaultOrderBy
protected AOServTable.OrderBy[] getDefaultOrderBy()
Description copied from class:AOServTableGets the default sorting for this table.- Specified by:
getDefaultOrderByin classAOServTable<Integer,DistroFile>- Returns:
nullif the sorting is performed by the server or the array of column names
-
get
@Deprecated public DistroFile get(Object pkey) throws IOException, SQLException
Deprecated.Always try to lookup by specific keys; the compiler will help you more when types change.Description copied from class:AOServTableGets the value for the associated key ornullif the data doesn't exist or is filtered.- Specified by:
getin classAOServTable<Integer,DistroFile>- Parameters:
pkey- whennull, will always returnnull- Throws:
IOExceptionSQLException
-
get
public DistroFile get(int pkey) throws IOException, SQLException
- Throws:
IOExceptionSQLException- See Also:
get(java.lang.Object)
-
getRecordLength
public int getRecordLength()
- Specified by:
getRecordLengthin classFilesystemCachedTable<Integer,DistroFile>
-
getCachedRowCount
public int getCachedRowCount() throws IOException, SQLExceptionDescription copied from class:AOServTableGets an approximate number of accessible rows in the database.- Overrides:
getCachedRowCountin classAOServTable<Integer,DistroFile>- Throws:
IOExceptionSQLException- See Also:
AOServTable.size()
-
size
public int size() throws IOException, SQLException- Overrides:
sizein classAOServTable<Integer,DistroFile>- Throws:
IOExceptionSQLException
-
getTableID
public Table.TableID 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,DistroFile>- Returns:
- the identifier for this table
- See Also:
Table.TableID
-
handleCommand
public boolean handleCommand(String[] args, Reader in, TerminalWriter out, TerminalWriter err, boolean isInteractive) throws IllegalArgumentException, IOException, SQLException
- Overrides:
handleCommandin classAOServTable<Integer,DistroFile>- Throws:
IllegalArgumentExceptionIOExceptionSQLException
-
startDistro
public void startDistro(Server server, boolean includeUser) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
-