| 构造器和说明 |
|---|
DBobject()
This is called by com.xugu.cloudjdbc.Connection.getObject() to create the object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
clone()
This must be overridden to allow the object to be cloned.
|
boolean |
equals(@Nullable Object obj)
This must be overridden to allow comparisons of objects.
|
protected static boolean |
equals(@Nullable Object a,
@Nullable Object b) |
String |
getType()
As this cannot change during the life of the object, it's final.
|
@Nullable String |
getValue()
This must be overridden, to return the value of the object, in the form required by
com.xugu.
|
int |
hashCode()
Compute hash.
|
boolean |
isNull()
Returns true if the current object wraps `null` value.
|
void |
setType(String type)
This method sets the type of this object.
|
void |
setValue(@Nullable String value)
This method sets the value of this object.
|
String |
toString()
This is defined here, so user code need not override it.
|
public DBobject()
public final void setType(String type)
This method sets the type of this object.
It should not be extended by subclasses, hence it is final
type - a string describing the type of the objectpublic void setValue(@Nullable String value) throws SQLException
value - a string representation of the value of the objectSQLException - thrown if value is invalid for this typepublic final String getType()
public @Nullable String getValue()
public boolean isNull()
public boolean equals(@Nullable Object obj)
public Object clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionpublic String toString()
public int hashCode()
hashCode 在类中 ObjectObjects.hashCode(Object)Copyright © 2025. All rights reserved.