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 int
static final int
static final long
The size may not be available for certain file types.Fields inherited from class com.aoindustries.aoserv.client.FilesystemCachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Object
getColumnImpl
(int i) long
long
long
long
getKey()
long
getMode()
getPath()
int
getPkey()
long
getSize()
getType()
boolean
int
hashCode()
void
Initializes this object from the raw database contents.boolean
void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) void
Methods inherited from class com.aoindustries.aoserv.client.FilesystemCachedObject
getTable, setTable
Methods 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.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
equals
Description copied from class:AoservObject
Implementation Note:
This default implementation considers the object equal when it is the same class (viaObject.getClass()
and has equal keys (viaAoservObject.getKey()
).- Overrides:
equals
in classAoservObject<Integer,
DistroFile>
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
DistroFile>
-
getPkey
public int getPkey() -
getOperatingSystemVersion
- Throws:
SQLException
IOException
-
getPath
-
isOptional
public boolean isOptional() -
getType
- Throws:
SQLException
IOException
-
getMode
public long getMode() -
getLinuxAccount
- Throws:
SQLException
IOException
-
getLinuxGroup
- Throws:
SQLException
IOException
-
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:
getKey
in classAoservObject<Integer,
DistroFile>
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
DistroFile>
-
hashCode
public int hashCode()Description copied from class:AoservObject
Implementation Note:
This default implementation callsAoservObject.hashCode()
on the key (fromAoservObject.getKey()
).- Overrides:
hashCode
in classAoservObject<Integer,
DistroFile>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
DistroFile> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
DistroFile> - Throws:
IOException
-
readRecord
- Specified by:
readRecord
in interfaceFileListObject
- Specified by:
readRecord
in classFilesystemCachedObject<Integer,
DistroFile> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
DistroFile> - Throws:
IOException
-
writeRecord
- Specified by:
writeRecord
in interfaceFileListObject
- Specified by:
writeRecord
in classFilesystemCachedObject<Integer,
DistroFile> - Throws:
IOException
-