public abstract class UserProductType extends java.lang.Object implements IntegerType
构造器和说明 |
---|
UserProductType() |
限定符和类型 | 方法和说明 |
---|---|
abstract int |
allowMax()
license允许的最大数量
|
abstract UserProductTypeKey[] |
excludeProductKeys()
与当前产品类型互斥的产品类型:
比如说有A就一定无B
|
static UserProductType |
fromInteger(int value) |
abstract java.lang.String |
getDecUserText(int typeValue) |
static UserProductType[] |
getTypes() |
abstract int |
getTypeValue() |
boolean |
multiLoginSupport() |
static void |
registerUserProductType(UserProductType userProductType)
注册不同类型产品的用户属性
|
static void |
reset()
线程不安全,仅单线程环境调用
|
int |
toInteger()
枚举值转为整数结果
|
abstract UserProductTypeKey |
transProductKey()
转化为数据库属性
|
public abstract int getTypeValue()
public int toInteger()
IntegerType
toInteger
在接口中 IntegerType
public static UserProductType fromInteger(int value)
public boolean multiLoginSupport()
public abstract int allowMax()
public abstract UserProductTypeKey transProductKey()
public abstract UserProductTypeKey[] excludeProductKeys()
public abstract java.lang.String getDecUserText(int typeValue)
public static void registerUserProductType(UserProductType userProductType) throws java.lang.IllegalArgumentException
userProductType
- 用户属性java.lang.IllegalArgumentException
- 异常public static UserProductType[] getTypes()
public static void reset()