mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Refactor ScalarType remove loadIgnore() method to implement in BeanProperty & DynamicPropertyBase
This commit is contained in:
1 parent
cd30c47951
commit
7d1772cb54
10 files changed
+2
-43
No files matched your search
@@ -508,7 +508,7 @@ public class BeanProperty implements ElPropertyValue, Property, STreeProperty {
|
||||
|
||||
@Override
|
||||
public void loadIgnore(DbReadContext ctx) {
|
||||
scalarType.loadIgnore(ctx.dataReader());
|
||||
ctx.dataReader().incrementPos(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -65,7 +65,7 @@ abstract class DynamicPropertyBase implements STreeProperty {
|
||||
|
||||
@Override
|
||||
public void loadIgnore(DbReadContext ctx) {
|
||||
scalarType.loadIgnore(ctx.dataReader());
|
||||
ctx.dataReader().incrementPos(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -57,11 +57,6 @@ public final class ScalarTypeBytesEncrypted implements ScalarType<byte[]> {
|
||||
return baseType.jdbcNative();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadIgnore(DataReader reader) {
|
||||
baseType.loadIgnore(reader);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void jsonWrite(JsonGenerator writer, byte[] value) throws IOException {
|
||||
writer.writeBinary(value);
|
||||
|
||||
@@ -99,11 +99,6 @@ public final class ScalarTypeEncryptedWrapper<T> implements ScalarType<T>, Local
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadIgnore(DataReader dataReader) {
|
||||
wrapped.loadIgnore(dataReader);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public String format(Object v) {
|
||||
|
||||
@@ -43,11 +43,6 @@ class ScalarTypeNotFound implements ScalarType<Void> {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadIgnore(DataReader reader) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bind(DataBinder binder, Void value) throws SQLException {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -134,11 +134,6 @@ public class ScalarTypeWrapper<B, S> implements ScalarType<B> {
|
||||
return converter.wrapValue(sv);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadIgnore(DataReader reader) {
|
||||
reader.incrementPos(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public B read(DataReader reader) throws SQLException {
|
||||
S sv = scalarType.read(reader);
|
||||
|
||||
Reference in new issue
Block a user