public class LobCopy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private LobCopyInput |
source
Source DMO to be copied
|
private java.lang.String |
sourceCodePage
Source content's code page;
null for binary data |
private boolean |
sourceCodePageSet
Test whether the CONVERT SOURCE CODEPAGE option was used, even if with unknown value.
|
private LobCopyOutput |
target
Target DMO into which to copy
|
private java.lang.String |
targetCodePage
Target content's code page;
null for binary data |
Constructor and Description |
---|
LobCopy(LobCopyInput source,
LobCopyOutput target)
Constructor which accepts a source and target large object on which to perform the copy.
|
Modifier and Type | Method and Description |
---|---|
(package private) static LargeObject |
assertParameterType(java.lang.Object obj)
Assert that the given parameter is an instance of
LargeObject . |
(package private) static java.lang.String |
getLobDefaultCodePage(LargeObject lob)
Get the default code page of the given LOB.
|
void |
run()
Perform the copy.
|
LobCopy |
sourceCodePage(java.lang.String sourceCodePage)
Set the source's code page.
|
LobCopy |
sourceCodePage(Text sourceCodePage)
Set the source's code page.
|
LobCopy |
targetCodePage(java.lang.String targetCodePage)
Set the target's code page.
|
LobCopy |
targetCodePage(Text targetCodePage)
Set the target's code page.
|
LobCopy |
targetCodePage(unknown unk)
Set the target's code page.
|
private final LobCopyInput source
private final LobCopyOutput target
private java.lang.String sourceCodePage
null
for binary dataprivate boolean sourceCodePageSet
private java.lang.String targetCodePage
null
for binary datapublic LobCopy(LobCopyInput source, LobCopyOutput target)
source
- Source object to be copied.target
- Target object into which to copy.static LargeObject assertParameterType(java.lang.Object obj)
LargeObject
.obj
- An object expected to be of type LargeObject
.obj
cast to LargeObject
.ConditionException
- if lob
is not an instance of LargeObject
and we are not in silent
error mode.static java.lang.String getLobDefaultCodePage(LargeObject lob)
-cpinternal
is returned.lob
- Large object.public LobCopy sourceCodePage(Text sourceCodePage)
sourceCodePage
- Source code page.public LobCopy sourceCodePage(java.lang.String sourceCodePage)
sourceCodePage
- Source code page.public LobCopy targetCodePage(unknown unk)
unk
- Unknown target code page.public LobCopy targetCodePage(Text targetCodePage)
targetCodePage
- Target code page.public LobCopy targetCodePage(java.lang.String targetCodePage)
targetCodePage
- Target code page.public void run()
new LobCopy(source, target)
.