public class DataUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
moveCorr(DataObject doFrom,
DataObject doTo)
Copies matching attributes from one table row to another.
|
static void |
moveCorr(DataObject doFrom,
DataObject doTo,
java.lang.String columnNameToExclude)
Copies matching attributes from one table row to another.
|
static void |
moveCorr(DataTextObjectWithDelimiterAndLabels doFrom,
DataObject doTo) |
static void |
moveCorr(java.lang.String values,
DataObject dataObject)
Move corresponding values from a value concatenation to a data object.
|
static void |
transferValue(java.lang.String columnName,
java.lang.String fromTable,
java.lang.String toTable,
IdentifyTemplate idTempl,
Identifier id,
java.sql.Connection connection)
Transfers a column value from one table to another.
|
public static void moveCorr(DataObject doFrom, DataObject doTo)
doFrom
- the source data objectdoTo
- the target data objecttransferValue(String, String, String, IdentifyTemplate, Identifier, Connection)
,
BinaryTransfer
public static void moveCorr(DataObject doFrom, DataObject doTo, java.lang.String columnNameToExclude)
doFrom
- the source data objectdoTo
- the target data objectcolumnNameToExclude
- the name of the column not be copiedto tranfer BLOB data
public static void moveCorr(DataTextObjectWithDelimiterAndLabels doFrom, DataObject doTo)
public static void moveCorr(java.lang.String values, DataObject dataObject)
values
- the concatenated value string using separatordataObject
- the data object to be filled with valuesDoChangeLog.VALUE_SEPARATOR
public static void transferValue(java.lang.String columnName, java.lang.String fromTable, java.lang.String toTable, IdentifyTemplate idTempl, Identifier id, java.sql.Connection connection)
columnName
- the name of the column to be transferedfromTable
- the table from which the column value is to readtoTable
- the table to which the column value is to writeidTempl
- the identify template to use to specify the rowid
- the identifier of the row which is to changeconnection
- the database connection to useBinaryTransfer
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de