This commit is contained in:
@@ -402,12 +402,27 @@ public abstract class ConvertFactory<R extends Reader, W extends Writer> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final void registerIgnoreAll(final Class type, Collection<String> excludeColumns) {
|
||||||
|
Set<String> set = ignoreAlls.get(type);
|
||||||
|
if (set == null) {
|
||||||
|
ignoreAlls.put(type, new HashSet<>(excludeColumns));
|
||||||
|
} else {
|
||||||
|
set.addAll(new ArrayList(excludeColumns));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public final void register(final Class type, boolean ignore, String... columns) {
|
public final void register(final Class type, boolean ignore, String... columns) {
|
||||||
for (String column : columns) {
|
for (String column : columns) {
|
||||||
register(type, column, new ConvertColumnEntry(column, ignore));
|
register(type, column, new ConvertColumnEntry(column, ignore));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final void register(final Class type, boolean ignore, Collection<String> columns) {
|
||||||
|
for (String column : columns) {
|
||||||
|
register(type, column, new ConvertColumnEntry(column, ignore));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public final boolean register(final Class type, String column, String alias) {
|
public final boolean register(final Class type, String column, String alias) {
|
||||||
return register(type, column, new ConvertColumnEntry(alias));
|
return register(type, column, new ConvertColumnEntry(alias));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user