ConvertPopulator

class ConvertPopulator(conversion: Conversion) extends Populator with Logging
Companion:
object
trait Logging
trait Populator
class Object
trait Matchable
class Any

Value members

Concrete methods

override def init(target: Entity[_], et: EntityType, attr: String): (Any, Property)

Initialize target's attribuate path Return the last property value and type.

Initialize target's attribuate path Return the last property value and type.

Definition Classes
override def populate(target: Entity[_], entityType: EntityType, attr: String, value: Any): Boolean

安静的拷贝属性,如果属性非法或其他错误则记录日志

安静的拷贝属性,如果属性非法或其他错误则记录日志

Definition Classes
override def populate(entity: Entity[_], entityType: EntityType, params: Map[String, Any]): CopyResult

将params中的属性([attr(string)->value(object)],放入到实体类中。

将params中的属性([attr(string)->value(object)],放入到实体类中。

如果引用到了别的实体,那么
如果params中的id为null,则将该实体的置为null.
否则新生成一个实体,将其id设为params中指定的值。 空字符串按照null处理

Definition Classes

Concrete fields

val properties: Properties

Inherited fields

protected val logger: Logger
Inherited from:
Logging