Class CDOClob
CDOClobs are immutable. Once created, their ID and size do not change.
The ID is a digest of the content of the clob, SHA-1 by default (see CDOLobStoreImpl.DEFAULT_DIGEST_ALGORITHM).
CDOClobs can be created from a Reader, or a String.
On the client side, CDOClobs are created with a reference to a CDOLobStore, which is used to store and retrieve
the clob's content. On the server side, CDOClobs are created without a store reference and are always retrieved from
the repository's IStore.
The default CDOLobStore implementation is CDOLobStoreImpl.INSTANCE, which stores clobs in the local file system.
But on the client side, it's often more efficient to use a dedicated CDOLobStore instance that stores clobs in
a CDOSession-specific cache location. See CDOSession.Options.setLobCache(CDOLobStore) for details.
See also CDOSession.newClob(Reader) and CDOSession.newClob(String) for convenient ways to create CDOClobs.
- Since:
- 4.0
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.emf.cdo.common.lob.CDOLob
DEFAULT_STORE -
Constructor Summary
ConstructorsConstructorDescriptionCDOClob(Reader contents, CDOLobStore store) CDOClob(String contents, CDOLobStore store) -
Method Summary
Methods inherited from class org.eclipse.emf.cdo.common.lob.CDOLob
getByteCount, getStoreMethods inherited from class org.eclipse.emf.cdo.common.lob.CDOLobInfo
equals, getID, getIDString, getSize, hashCode, toString
-
Constructor Details
-
CDOClob
- Throws:
IOException
-
CDOClob
- Throws:
IOException
-
CDOClob
- Throws:
IOException- Since:
- 4.27
-
CDOClob
- Throws:
IOException- Since:
- 4.13
-
-
Method Details
-
getStoreFile
- Specified by:
getStoreFilein classCDOLob<Reader>
-
getContents
- Specified by:
getContentsin classCDOLob<Reader>- Throws:
IOException
-
getString
- Specified by:
getStringin classCDOLob<Reader>- Throws:
IOException- Since:
- 4.13
-
copyTo
- Throws:
IOException- Since:
- 4.27
-
put
- Specified by:
putin classCDOLob<Reader>- Throws:
IOException
-