public class DBbox extends DBobject implements DBBinaryObject, Serializable, Cloneable
| 构造器和说明 |
|---|
DBbox()
Required constructor.
|
DBbox(DBpoint p1,
DBpoint p2) |
DBbox(double x1,
double y1,
double x2,
double y2) |
DBbox(String s) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
@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.
|
int |
lengthInBytes()
This method is called to return the number of bytes needed to store this object in the binary
form required by com.xugu.
|
void |
setByteValue(byte[] b,
int offset)
This method is called to set the value of this object.
|
void |
setValue(@Nullable String value)
This method sets the value of this object.
|
void |
toBytes(byte[] bytes,
int offset)
This method is called the to store the value of the object, in the binary form required by
com.xugu.
|
public DBpoint[] point
public DBbox(double x1,
double y1,
double x2,
double y2)
x1 - first x coordinatey1 - first y coordinatex2 - second x coordinatey2 - second y coordinatepublic DBbox(String s) throws SQLException
s - Box definition in Xugu syntaxSQLException - if definition is invalidpublic DBbox()
public void setValue(@Nullable String value) throws SQLException
setValue 在类中 DBobjectvalue - a string representation of the value of the objectSQLException - thrown if value is invalid for this typepublic void setByteValue(byte[] b,
int offset)
DBBinaryObjectsetByteValue 在接口中 DBBinaryObjectb - Definition of this point in Xugu's binary syntaxoffset - the offset in the byte array where object data startspublic boolean equals(@Nullable Object obj)
DBobjectpublic int hashCode()
DBobjecthashCode 在类中 DBobjectObjects.hashCode(Object)public Object clone() throws CloneNotSupportedException
DBobjectclone 在类中 DBobjectCloneNotSupportedExceptionpublic @Nullable String getValue()
DBobjectpublic int lengthInBytes()
DBBinaryObjectlengthInBytes 在接口中 DBBinaryObjectpublic void toBytes(byte[] bytes,
int offset)
DBBinaryObjecttoBytes 在接口中 DBBinaryObjectbytes - the array to store the value, it is guaranteed to be at lest
DBBinaryObject.lengthInBytes() in size.offset - the offset in the byte array where object must be storedCopyright © 2025. All rights reserved.