Class PackageDefinitionLimit
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,PackageDefinitionLimit>
com.aoindustries.aoserv.client.CachedObject<Integer,PackageDefinitionLimit>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<PackageDefinitionLimit>
com.aoindustries.aoserv.client.billing.PackageDefinitionLimit
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
PackageDefinitionLimit>
A
PackageDefinitionLimit
stores one limit that is part of a PackageDefinition
.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates a particular value is unlimited.Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly.PackageDefinitionLimit
(PackageDefinition packageDefinition, Resource resource, int softLimit, int hardLimit, Money additionalRate, TransactionType additionalTransactionType) -
Method Summary
Modifier and TypeMethodDescriptionGets the additional rate ornull
if there is none.Gets the additional rate per unit ornull
if there is none.protected Object
getColumnImpl
(int i) int
Gets the hard limit ornull
of there is none.Gets the hard limit and unit ornull
if there is none.int
int
Gets the soft limit ornull
of there is none.Gets the soft limit and unit ornull
if there is none.void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
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, write
-
Field Details
-
UNLIMITED
public static final int UNLIMITEDIndicates a particular value is unlimited.- See Also:
-
-
Constructor Details
-
PackageDefinitionLimit
Deprecated.Only required for implementation, do not use directly.- See Also:
-
PackageDefinitionLimit
public PackageDefinitionLimit(PackageDefinition packageDefinition, Resource resource, int softLimit, int hardLimit, Money additionalRate, TransactionType additionalTransactionType)
-
-
Method Details
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
PackageDefinitionLimit>
-
getPackageDefinition_id
public int getPackageDefinition_id() -
getPackageDefinition
- Throws:
IOException
SQLException
-
getResource_name
-
getResource
- Throws:
SQLException
IOException
-
getSoftLimit
public int getSoftLimit()Gets the soft limit ornull
of there is none. -
getSoftLimitDisplayUnit
Gets the soft limit and unit ornull
if there is none.- Throws:
IOException
SQLException
-
getHardLimit
public int getHardLimit()Gets the hard limit ornull
of there is none. -
getHardLimitDisplayUnit
Gets the hard limit and unit ornull
if there is none.- Throws:
IOException
SQLException
-
getAdditionalRate
Gets the additional rate ornull
if there is none. -
getAdditionalRatePerUnit
Gets the additional rate per unit ornull
if there is none.- Throws:
IOException
SQLException
-
getAdditionalTransactionType_name
-
getAdditionalTransactionType
- Throws:
SQLException
IOException
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
PackageDefinitionLimit>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
PackageDefinitionLimit> - 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,
PackageDefinitionLimit> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
PackageDefinitionLimit> - Throws:
IOException
-