|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aliyun.openservices.ots.model.PrimaryKeyValue
public class PrimaryKeyValue
表示主键(PrimaryKey)列的值。
| 字段摘要 | |
|---|---|
static PrimaryKeyValue |
INF_MAX
表示主键值范围的最大值。 |
static PrimaryKeyValue |
INF_MIN
表示主键值范围的最小值。 |
| 方法摘要 | |
|---|---|
long |
asLong()
转换为长整型。 |
String |
asString()
|
boolean |
equals(Object o)
|
static PrimaryKeyValue |
fromLong(long value)
使用 int值构造值的数据类型为PrimaryKeyType.INTEGER的
PrimaryKeyValue对象。 |
static PrimaryKeyValue |
fromString(String value)
使用 String对象构造值的数据类型为PrimaryKeyType.STRING的
PrimaryKeyValue对象。 |
PrimaryKeyType |
getType()
获取值的数据类型。 |
int |
hashCode()
|
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final PrimaryKeyValue INF_MAX
public static final PrimaryKeyValue INF_MIN
| 方法详细信息 |
|---|
public PrimaryKeyType getType()
public static PrimaryKeyValue fromString(String value)
String对象构造值的数据类型为PrimaryKeyType.STRING的
PrimaryKeyValue对象。
主键的值不能为空引用或长度为0的字符串。
value - String对象。public static PrimaryKeyValue fromLong(long value)
int值构造值的数据类型为PrimaryKeyType.INTEGER的
PrimaryKeyValue对象。
value - int值。public String asString()
public long asLong()
PrimaryKeyType.INTEGER时转换能够成功。
long值。public boolean equals(Object o)
Object 中的 equalspublic int hashCode()
Object 中的 hashCodepublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||