AbstractImporter

org.beangle.data.transfer.importer.AbstractImporter
abstract class AbstractImporter extends Importer, Logging

导入的抽象和缺省实现

Attributes

Graph
Supertypes
trait Logging
trait Importer
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

override def addListener(listener: ImportListener): Importer

添加转换监听器

添加转换监听器

Attributes

Definition Classes
protected def beforeImportItem(): Unit
def changeCurValue(attr: String, value: Any): Unit

改变现有某个属性的值

改变现有某个属性的值

Attributes

override def dataLocation: String

Attributes

Definition Classes
override def format: Format

转换数据的类型

转换数据的类型

Attributes

Definition Classes
override def ignoreNull: Boolean

是否忽略空值

是否忽略空值

Attributes

Definition Classes
override def isDataValid: Boolean

当前读入的数据是否有效

当前读入的数据是否有效

Attributes

Definition Classes
override def locale: Locale

转换使用的locale

转换使用的locale

Attributes

Definition Classes
final override def read(): Boolean

读取数据,设置内部步进状态等

读取数据,设置内部步进状态等

Attributes

Definition Classes
def setAttrs(attrs: List[Attribute]): Unit
def transfer(tr: ImportResult): Unit

进行转换

进行转换

Attributes

override def transferIndex: Int

查询正在转换的对象的次序号,从1开始

查询正在转换的对象的次序号,从1开始

Attributes

Definition Classes

Inherited methods

def current: AnyRef

返回方前正在转换成的对象

返回方前正在转换成的对象

Attributes

Inherited from:
Importer
def current_=(obj: AnyRef): Unit

设置当前正在转换的对象

设置当前正在转换的对象

Attributes

Inherited from:
Importer
def dataName: String

转换数据的名称

转换数据的名称

Attributes

Inherited from:
Importer
def description(attr: String): String

Attributes

Inherited from:
Importer
def transferItem(): Unit

转换一个对象

转换一个对象

Attributes

Inherited from:
Importer

Concrete fields

var fail: Int

得到转换过程中失败的个数

得到转换过程中失败的个数

Attributes

protected var index: Int
protected val listeners: ListBuffer[ImportListener]
var success: Int

得到转换过程中成功的个数

得到转换过程中成功的个数

Attributes

protected var transferResult: ImportResult

Inherited fields

var attrs: Array[Attribute]

Attributes

Inherited from:
Importer
var curData: Map[String, Any]

Attributes

Inherited from:
Importer
protected val logger: Logger

Attributes

Inherited from:
Logging

Attributes

Inherited from:
Importer
var reader: Reader

Attributes

Inherited from:
Importer
var stopOnError: Boolean

Attributes

Inherited from:
Importer