Package com.aoindustries.aoserv.client
Class FilesystemCachedObject<K,T extends FilesystemCachedObject<K,T>>
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.FilesystemCachedObject<K,T>
-
- All Implemented Interfaces:
FileListObject,Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<K,T>
- Direct Known Subclasses:
DistroFile
public abstract class FilesystemCachedObject<K,T extends FilesystemCachedObject<K,T>> extends AOServObject<K,T> implements SingleTableObject<K,T>, FileListObject
AFilesystemCachedObjectis stored in a temporary file on disk for local-speed performance while using minimal heap space.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected AOServTable<K,T>table-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFilesystemCachedObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AOServTable<K,T>getTable()Gets theAOServTablethat contains thisAOServObject.abstract voidreadRecord(DataInputStream in)voidsetTable(AOServTable<K,T> table)abstract voidwriteRecord(DataOutputStream out)-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, equals, getAccountingCode, getColumn, getColumnImpl, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getKey, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableID, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, hashCode, init, read, read, toString, toStringImpl, write, write
-
-
-
-
Field Detail
-
table
protected AOServTable<K,T extends FilesystemCachedObject<K,T>> table
-
-
Method Detail
-
getTable
public final AOServTable<K,T> getTable()
Description copied from interface:SingleTableObjectGets theAOServTablethat contains thisAOServObject.- Specified by:
getTablein interfaceSingleTableObject<K,T extends FilesystemCachedObject<K,T>>- Returns:
- the
AOServTable.
-
setTable
public final void setTable(AOServTable<K,T> table)
- Specified by:
setTablein interfaceSingleTableObject<K,T extends FilesystemCachedObject<K,T>>
-
writeRecord
public abstract void writeRecord(DataOutputStream out) throws IOException
- Specified by:
writeRecordin interfaceFileListObject- Throws:
IOException
-
readRecord
public abstract void readRecord(DataInputStream in) throws IOException
- Specified by:
readRecordin interfaceFileListObject- Throws:
IOException
-
-