use of com.tvd12.ezyfox.entity.EzyObject in project dahlia by youngmonkeys.
the class SettingObjectToArrayField method newSetting.
@Override
protected FieldArraySetting newSetting(SettingObjectToFields mappers, EzyObject object) {
FieldArraySetting setting = new FieldArraySetting();
setting.setMaxSize(object.get(SettingFields.MAX_SIZE, int.class));
EzyObject itemSetting = object.get(SettingFields.ITEM, EzyObject.class);
FieldSetting item = mappers.toSetting(itemSetting);
setting.setItem(item);
return setting;
}
use of com.tvd12.ezyfox.entity.EzyObject in project dahlia by youngmonkeys.
the class SettingObjectToBigDecimalField method newSetting.
@Override
protected FieldBigDecimalSetting newSetting(SettingObjectToFields mappers, EzyObject object) {
FieldBigDecimalSetting setting = new FieldBigDecimalSetting();
setting.setDefaultValue(object.get(SettingFields.DEFAULT, BigDecimal.class));
return setting;
}
use of com.tvd12.ezyfox.entity.EzyObject in project dahlia by youngmonkeys.
the class SettingObjectToByteField method newSetting.
@Override
protected FieldByteSetting newSetting(SettingObjectToFields mappers, EzyObject object) {
FieldByteSetting setting = new FieldByteSetting();
setting.setDefaultValue(object.get(SettingFields.DEFAULT, byte.class));
return setting;
}
use of com.tvd12.ezyfox.entity.EzyObject in project dahlia by youngmonkeys.
the class SettingRuntimeDeserializer method deserialize.
@Override
public RuntimeSetting deserialize(byte[] bytes) {
EzyObject object = objectDeserializer.deserialize(bytes);
RuntimeSetting setting = new RuntimeSetting();
setting.setMaxDatabaseId(object.get(SettingFields.MAX_DATABASE_ID, int.class));
setting.setMaxCollectionId(object.get(SettingFields.MAX_COLLECTION_ID, int.class));
return setting;
}
use of com.tvd12.ezyfox.entity.EzyObject in project dahlia by youngmonkeys.
the class SettingObjectToDoubleField method newSetting.
@Override
protected FieldDoubleSetting newSetting(SettingObjectToFields mappers, EzyObject object) {
FieldDoubleSetting setting = new FieldDoubleSetting();
setting.setDefaultValue(object.get(SettingFields.DEFAULT, double.class));
return setting;
}
Aggregations