Class SoftwareVersion
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<Integer,T>
-
- com.aoindustries.aoserv.client.GlobalObjectIntegerKey<SoftwareVersion>
-
- com.aoindustries.aoserv.client.distribution.SoftwareVersion
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class SoftwareVersion extends GlobalObjectIntegerKey<SoftwareVersion>
EachTechnologyNamemay have multiple versions installed. Each of those versions is aTechnologyVersion.- Author:
- AO Industries, Inc.
- See Also:
Software
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLUMN_VERSION_name-
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description SoftwareVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetColumnImpl(int i)StringgetDisableReason()UnmodifiableTimestampgetDisableTime()VersiongetHttpdTomcatVersion(AOServConnector connector)OperatingSystemVersiongetOperatingSystemVersion(AOServConnector conn)intgetOperatingSystemVersion_id()UsergetOwner(AOServConnector connector)Table.TableIDgetTableID()SoftwaregetTechnologyName(AOServConnector connector)StringgetTechnologyName_name()UnmodifiableTimestampgetUpdated()StringgetVersion()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisEnabled(long time)Checks if enabled at the given time.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
-
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, write
-
-
-
-
Field Detail
-
COLUMN_VERSION_name
public static final String COLUMN_VERSION_name
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,SoftwareVersion>
-
getHttpdTomcatVersion
public Version getHttpdTomcatVersion(AOServConnector connector) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getOwner
public User getOwner(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getOperatingSystemVersion_id
public int getOperatingSystemVersion_id()
-
getOperatingSystemVersion
public OperatingSystemVersion getOperatingSystemVersion(AOServConnector conn) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isEnabled
public boolean isEnabled(long time)
Checks if enabled at the given time.
-
getDisableTime
public UnmodifiableTimestamp getDisableTime()
-
getDisableReason
public String getDisableReason()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,SoftwareVersion>
-
getTechnologyName_name
public String getTechnologyName_name()
-
getTechnologyName
public Software getTechnologyName(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getUpdated
public UnmodifiableTimestamp getUpdated()
-
getVersion
public String getVersion()
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,SoftwareVersion>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,SoftwareVersion>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,SoftwareVersion>- Throws:
IOException
-
-