Package org.intermine.objectstore.query
Class Clob
- java.lang.Object
-
- org.intermine.objectstore.query.Clob
-
- All Implemented Interfaces:
QuerySelectable
public class Clob extends java.lang.Object implements QuerySelectable
Object representing a large String that has been stored in the database. This object can be used to retrieve the String in bits or as a stream, and to alter the object.- Author:
- Matthew Wakeling
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLOB_PAGE_SIZE
Page size for clob data
-
Constructor Summary
Constructors Constructor Description Clob(int clobId)
Constructs a new Clob.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Override Object#equals.int
getClobId()
Returns the identifier of the Clob.java.lang.Class<java.lang.String>
getType()
Get Java type represented by this item.int
hashCode()
Override Object#hashCode.
-
-
-
Field Detail
-
CLOB_PAGE_SIZE
public static final int CLOB_PAGE_SIZE
Page size for clob data- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Clob
public Clob(int clobId)
Constructs a new Clob. This method should only be called from an ObjectStore which can provide a suitable valid clobId. Once the Clob has been created, content can be added to it through the ObjectStoreWriter.- Parameters:
clobId
- the identifier of the Clob
-
-
Method Detail
-
getClobId
public int getClobId()
Returns the identifier of the Clob. This number will probably only be of use to the internals of an ObjectStore.- Returns:
- an int
-
getType
public java.lang.Class<java.lang.String> getType()
Get Java type represented by this item.- Specified by:
getType
in interfaceQuerySelectable
- Returns:
- class describing the type
-
equals
public boolean equals(java.lang.Object o)
Override Object#equals. Note that this means that Clob objects for different objectstores with the same ID will be counted as equals. Make sure you don't put Clobs from different objectstores in the same collection.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- an Object- Returns:
- true if this equals o
-
hashCode
public int hashCode()
Override Object#hashCode. See note in equals.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- an int representing the contents
-
-