public class BufferCopy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
exclusive
true if fields should be excluded; false for them to be included |
private java.lang.String[] |
fields
Optional field names to include or exclude from copy
|
private boolean |
noLobs
true to skip any LOBs when performing copy; false to include them |
private DataModelObject |
source
Source DMO to be copied
|
private DataModelObject |
target
Target DMO into which to copy
|
Constructor and Description |
---|
BufferCopy(DataModelObject source,
DataModelObject target)
Constructor which accepts a source and target DMO on which to perform the copy.
|
Modifier and Type | Method and Description |
---|---|
BufferCopy |
except(java.lang.Object... fields)
Exclude the given fields from the copy.
|
BufferCopy |
except(java.lang.String... fields)
Exclude the given fields from the copy.
|
BufferCopy |
noLobs()
Exclude any LOB fields from the copy.
|
void |
run(boolean validate)
Perform the copy.
|
BufferCopy |
using(java.lang.String... fields)
Include only the given fields for the copy.
|
private final DataModelObject source
private final DataModelObject target
private boolean exclusive
true
if fields
should be excluded; false
for them to be includedprivate java.lang.String[] fields
private boolean noLobs
true
to skip any LOBs when performing copy; false
to include thempublic BufferCopy(DataModelObject source, DataModelObject target)
source
- Source DMO to be copied.target
- Target DMO into which to copy.public BufferCopy except(java.lang.String... fields)
#noLobs()
was invoked).fields
- List of legacy field names to exclude.public BufferCopy except(java.lang.Object... fields)
#noLobs()
was invoked).fields
- List of legacy field names to exclude.public BufferCopy using(java.lang.String... fields)
fields
- List of legacy field names to include.public BufferCopy noLobs()
public void run(boolean validate)
new BufferCopy(source, target)
.validate
- If true
, buffer validation is performed after the copy, else it is not.
This should be set to false
if the original BUFFER-COPY statement
contained an ASSIGN clause. In that case, validation is performed at the end of
the assignment batch operation, and validating the copied record before this
batch operation completes may lead to incorrect behavior.