Package io.vertx.tp.modular.metadata
Class AbstractReflector
- java.lang.Object
-
- io.vertx.tp.modular.metadata.AbstractReflector
-
- All Implemented Interfaces:
AoReflector
public abstract class AbstractReflector extends Object implements AoReflector
-
-
Field Summary
Fields Modifier and Type Field Description protected AoConnectionconnection
-
Constructor Summary
Constructors Constructor Description AbstractReflector(AoConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentMap<String,Object>getColumnDetails(String column, List<ConcurrentMap<String,Object>> columnDetailList)StringgetDataTypeWord()StringgetFieldType(ConcurrentMap<String,Object> columnDetail)StringgetLengthWord()longgetNullRows(String tableName, String column)读取当前表中 column 为空的总列数longgetTotalRows(String tableName)获取当前表中总列数-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertx.tp.modular.metadata.AoReflector
getColumnDetail, getColumns, getConstraints
-
-
-
-
Field Detail
-
connection
protected final transient AoConnection connection
-
-
Constructor Detail
-
AbstractReflector
public AbstractReflector(AoConnection connection)
-
-
Method Detail
-
getTotalRows
public long getTotalRows(String tableName)
Description copied from interface:AoReflector获取当前表中总列数- Specified by:
getTotalRowsin interfaceAoReflector
-
getNullRows
public long getNullRows(String tableName, String column)
Description copied from interface:AoReflector读取当前表中 column 为空的总列数- Specified by:
getNullRowsin interfaceAoReflector
-
getFieldType
public String getFieldType(ConcurrentMap<String,Object> columnDetail)
- Specified by:
getFieldTypein interfaceAoReflector
-
getColumnDetails
public ConcurrentMap<String,Object> getColumnDetails(String column, List<ConcurrentMap<String,Object>> columnDetailList)
- Specified by:
getColumnDetailsin interfaceAoReflector
-
getDataTypeWord
public String getDataTypeWord()
- Specified by:
getDataTypeWordin interfaceAoReflector
-
getLengthWord
public String getLengthWord()
- Specified by:
getLengthWordin interfaceAoReflector
-
-