Class DistroFile
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,DistroFile>
com.aoindustries.aoserv.client.FilesystemCachedObject<Integer,DistroFile>
com.aoindustries.aoserv.client.distribution.management.DistroFile
- All Implemented Interfaces:
FileListObject,Streamable,StreamReadable,StreamWritable,Row,AoservReadable,AoservStreamable,AoservWritable,SingleTableObject<Integer,DistroFile>
For AO Industries use only.
- Author:
- AO Industries, Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final longThe size may not be available for certain file types.Fields inherited from class com.aoindustries.aoserv.client.FilesystemCachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ObjectgetColumnImpl(int i) longlonglonglonggetKey()longgetMode()getPath()intgetPkey()longgetSize()getType()booleaninthashCode()voidInitializes this object from the raw database contents.booleanvoidread(StreamableInput in, AoservProtocol.Version protocolVersion) voidvoidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion) voidMethods inherited from class com.aoindustries.aoserv.client.FilesystemCachedObject
getTable, setTableMethods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, toStringImpl, write
-
Field Details
-
COLUMN_OPERATING_SYSTEM_VERSION
public static final int COLUMN_OPERATING_SYSTEM_VERSION- See Also:
-
COLUMN_PATH
public static final int COLUMN_PATH- See Also:
-
NULL_SIZE
public static final long NULL_SIZEThe size may not be available for certain file types.- See Also:
-
-
Constructor Details
-
DistroFile
Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
equals
Description copied from class:AoservObjectImplementation Note:
This default implementation considers the object equal when it is the same class (viaObject.getClass()and has equal keys (viaAoservObject.getKey()).- Overrides:
equalsin classAoservObject<Integer,DistroFile>
-
getColumnImpl
- Specified by:
getColumnImplin classAoservObject<Integer,DistroFile>
-
getPkey
public int getPkey() -
getOperatingSystemVersion
- Throws:
SQLExceptionIOException
-
getPath
-
isOptional
public boolean isOptional() -
getType
- Throws:
SQLExceptionIOException
-
getMode
public long getMode() -
getLinuxAccount
- Throws:
SQLExceptionIOException
-
getLinuxGroup
- Throws:
SQLExceptionIOException
-
getSize
public long getSize() -
hasFileSha256
public boolean hasFileSha256() -
getFileSha256_0
public long getFileSha256_0() -
getFileSha256_1
public long getFileSha256_1() -
getFileSha256_2
public long getFileSha256_2() -
getFileSha256_3
public long getFileSha256_3() -
getSymlinkTarget
-
getKey
- Specified by:
getKeyin classAoservObject<Integer,DistroFile>
-
getTableId
- Specified by:
getTableIdin classAoservObject<Integer,DistroFile>
-
hashCode
public int hashCode()Description copied from class:AoservObjectImplementation Note:
This default implementation callsAoservObject.hashCode()on the key (fromAoservObject.getKey()).- Overrides:
hashCodein classAoservObject<Integer,DistroFile>
-
init
Description copied from class:AoservObjectInitializes this object from the raw database contents.- Specified by:
initin classAoservObject<Integer,DistroFile> - Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
readin interfaceAoservReadable- Specified by:
readin interfaceAoservStreamable- Specified by:
readin classAoservObject<Integer,DistroFile> - Throws:
IOException
-
readRecord
- Specified by:
readRecordin interfaceFileListObject- Specified by:
readRecordin classFilesystemCachedObject<Integer,DistroFile> - Throws:
IOException
-
write
- Specified by:
writein interfaceAoservStreamable- Specified by:
writein interfaceAoservWritable- Specified by:
writein classAoservObject<Integer,DistroFile> - Throws:
IOException
-
writeRecord
- Specified by:
writeRecordin interfaceFileListObject- Specified by:
writeRecordin classFilesystemCachedObject<Integer,DistroFile> - Throws:
IOException
-
