public class PojoUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PojoUtils.FieldNaming |
Constructor and Description |
---|
PojoUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(java.lang.Object dest,
java.lang.Object origin,
PojoUtils.FieldNaming field_naming)
Copy properties "of the same name" from one POJO to the other.
|
static void |
copyProperties(java.lang.Object dest,
java.lang.Object origin,
PojoUtils.FieldNaming field_naming,
java.lang.String[] skip_fields)
Copy properties "of the same name" from one POJO to the other.
|
static void |
copyProperties(java.lang.Object dest,
java.lang.Object origin,
PojoUtils.FieldNaming field_naming,
java.lang.String[] skip_fields,
java.lang.String[] only_fields)
Copy properties "of the same name" from one POJO to the other.
|
static void |
filterFields(java.lang.Object o,
java.lang.String includes,
java.lang.String excludes)
Null out fields in this schema and its children as specified by parameters __exclude_fields and __include_fields.
|
public static void copyProperties(java.lang.Object dest, java.lang.Object origin, PojoUtils.FieldNaming field_naming)
dest
- Destination POJOorigin
- Origin POJOfield_naming
- Are the fields named consistently, or does one side have underscores?public static void copyProperties(java.lang.Object dest, java.lang.Object origin, PojoUtils.FieldNaming field_naming, java.lang.String[] skip_fields)
dest
- Destination POJOorigin
- Origin POJOfield_naming
- Are the fields named consistently, or does one side have underscores?skip_fields
- Array of origin or destination field names to skippublic static void copyProperties(java.lang.Object dest, java.lang.Object origin, PojoUtils.FieldNaming field_naming, java.lang.String[] skip_fields, java.lang.String[] only_fields)
dest
- Destination POJOorigin
- Origin POJOfield_naming
- Are the fields named consistently, or does one side have underscores?skip_fields
- Array of origin or destination field names to skiponly_fields
- Array of origin or destination field names to include; ones not in this list will be skippedpublic static void filterFields(java.lang.Object o, java.lang.String includes, java.lang.String excludes)