Class AoservProtocol
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<String,T>
-
- com.aoindustries.aoserv.client.GlobalObjectStringKey<AoservProtocol>
-
- com.aoindustries.aoserv.client.schema.AoservProtocol
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class AoservProtocol extends GlobalObjectStringKey<AoservProtocol>
Constants used in communication between the client and server.- Author:
- AO Industries, Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAoservProtocol.CommandIDSince the ordinals are used in the protocol (for compatibility with older implementations), values must be added to the end of this enum.static classAoservProtocol.VersionThe current version of the client/server protocol.
-
Field Summary
Fields Modifier and Type Field Description static byteDONEstatic intFALSEstatic StringFILTEREDIndicates that a field was filtered by the server.static byteIO_EXCEPTIONstatic byteNEXTstatic intSERVER_DOWNstatic byteSQL_EXCEPTIONstatic intTRUE-
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectStringKey
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 AoservProtocol()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckResult(int code, StreamableInput in)protected ObjectgetColumnImpl(int i)StringgetComments()DategetCreated()DategetLastUsed()LonggetLastUsed_time()Table.TableIDgetTableID()StringgetVersion()voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectStringKey
equals, getKey, 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
-
NEXT
public static final byte NEXT
- See Also:
- Constant Field Values
-
DONE
public static final byte DONE
- See Also:
- Constant Field Values
-
IO_EXCEPTION
public static final byte IO_EXCEPTION
- See Also:
- Constant Field Values
-
SQL_EXCEPTION
public static final byte SQL_EXCEPTION
- See Also:
- Constant Field Values
-
FALSE
public static final int FALSE
- See Also:
- Constant Field Values
-
TRUE
public static final int TRUE
- See Also:
- Constant Field Values
-
SERVER_DOWN
public static final int SERVER_DOWN
- See Also:
- Constant Field Values
-
FILTERED
public static final String FILTERED
Indicates that a field was filtered by the server.- See Also:
- Constant Field Values
-
-
Method Detail
-
checkResult
public static void checkResult(int code, StreamableInput in) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<String,AoservProtocol>
-
getVersion
public String getVersion()
-
getCreated
public Date getCreated()
-
getComments
public String getComments()
-
getLastUsed_time
public Long getLastUsed_time()
-
getLastUsed
public Date getLastUsed()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<String,AoservProtocol>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<String,AoservProtocol>- 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<String,AoservProtocol>- 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<String,AoservProtocol>- Throws:
IOException
-
-