|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aliyun.openservices.ots.model.PrimaryKeyValue
public class PrimaryKeyValue
表示主键(PrimaryKey)列的值。
| 方法摘要 | |
|---|---|
boolean |
equals(Object o)
|
static PrimaryKeyValue |
fromBoolean(boolean value)
使用 boolean值构造值的数据类型为PrimaryKeyType.BOOLEAN的
PrimaryKeyValue对象。 |
static PrimaryKeyValue |
fromLong(long value)
使用 int值构造值的数据类型为PrimaryKeyType.INTEGER的
PrimaryKeyValue对象。 |
static PrimaryKeyValue |
fromString(String value)
使用 String对象构造值的数据类型为PrimaryKeyType.STRING的
PrimaryKeyValue对象。 |
PrimaryKeyType |
getType()
获取值的数据类型。 |
String |
getValue()
获取值的字符串表示。 |
int |
hashCode()
|
boolean |
toBoolean()
转换为布尔型。 |
long |
toLong()
转换为长整型。 |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 方法详细信息 |
|---|
public String getValue()
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 static PrimaryKeyValue fromBoolean(boolean value)
boolean值构造值的数据类型为PrimaryKeyType.BOOLEAN的
PrimaryKeyValue对象。
value - boolean值。public String toString()
Object 中的 toStringpublic long toLong()
PrimaryKeyType.INTEGER时转换能够成功。
long值。public boolean toBoolean()
PrimaryKeyType.BOOLEAN时转换能够成功。
boolean值。public boolean equals(Object o)
Object 中的 equalspublic int hashCode()
Object 中的 hashCode
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||