public abstract class AbstractDDLMapped
extends cn.weforward.protocol.support.datatype.AbstractDtObject
implements cn.weforward.protocol.datatype.DtMapped
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
AbstractDDLMapped.ColumnHandler |
static class |
AbstractDDLMapped.Field |
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
_Logger
日志
|
protected Map<String,SqlColumnType> |
m_Columns
列
|
protected SqlColumnType |
m_DefaultStringType
默认的字符串长度的列
|
protected boolean |
m_Differ
表是否变化
|
protected Map<String,AbstractDDLMapped.Field> |
m_Fields
put入的字段
|
protected List<cn.weforward.common.KvPair<String,SqlColumnType>> |
m_NeedCoumns
需要创建列的字段
|
protected List<cn.weforward.common.KvPair<String,Class<?>>> |
m_NeedIndexs
需要创建索引的字段
|
| 构造器和说明 |
|---|
AbstractDDLMapped(List<cn.weforward.common.KvPair<String,SqlColumnType>> needCoumns,
List<cn.weforward.common.KvPair<String,Class<?>>> needIndexs,
SqlColumnType defaultStringType) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addColumn(AbstractDDLMapped.ColumnHandler handler,
String name,
SqlColumnType type) |
protected void |
changeColumn(AbstractDDLMapped.ColumnHandler handler,
String name,
SqlColumnType type) |
void |
clear() |
protected boolean |
createIndex(AbstractDDLMapped.ColumnHandler handler,
cn.weforward.common.KvPair<String,Class<?>> index) |
protected abstract Map<String,SqlColumnType> |
createTable() |
protected void |
differ(AbstractDDLMapped.Field field)
字段结构与要更新的不一致
|
protected cn.weforward.protocol.datatype.DtBase |
getAttributeInner(String name) |
Enumeration<String> |
getAttributeNames() |
int |
getAttributeSize() |
SqlColumnType |
getColumn(String key) |
Map<String,SqlColumnType> |
getColumns() |
protected abstract Map<String,SqlColumnType> |
getCurrentColumns() |
protected abstract List<String> |
getCurrentIndexs() |
protected Map<String,SqlColumnType> |
init() |
boolean |
isDiffer() |
Iterator<cn.weforward.common.KvPair<String,cn.weforward.protocol.datatype.DtBase>> |
iterator() |
boolean |
merging(AbstractDDLMapped.ColumnHandler handler) |
void |
put(String name,
cn.weforward.protocol.datatype.DtBase value) |
void |
reinit() |
void |
reset() |
cn.weforward.protocol.datatype.DtObject |
toDtObject() |
protected void |
updateColumn(AbstractDDLMapped.ColumnHandler handler,
Map<String,SqlColumnType> columns,
String name,
SqlColumnType needType) |
getAttribute, getAttribute, getAttributes, getBoolean, getDate, getList, getNumber, getObject, getString, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final org.slf4j.Logger _Logger
protected Map<String,SqlColumnType> m_Columns
protected Map<String,AbstractDDLMapped.Field> m_Fields
protected boolean m_Differ
protected List<cn.weforward.common.KvPair<String,SqlColumnType>> m_NeedCoumns
protected SqlColumnType m_DefaultStringType
public AbstractDDLMapped(List<cn.weforward.common.KvPair<String,SqlColumnType>> needCoumns, List<cn.weforward.common.KvPair<String,Class<?>>> needIndexs, SqlColumnType defaultStringType)
public Map<String,SqlColumnType> getColumns()
public SqlColumnType getColumn(String key)
public Iterator<cn.weforward.common.KvPair<String,cn.weforward.protocol.datatype.DtBase>> iterator()
public void put(String name, cn.weforward.protocol.datatype.DtBase value)
put 在接口中 cn.weforward.protocol.datatype.DtMappedpublic cn.weforward.protocol.datatype.DtObject toDtObject()
toDtObject 在接口中 cn.weforward.protocol.datatype.DtMappedpublic Enumeration<String> getAttributeNames()
getAttributeNames 在接口中 cn.weforward.protocol.datatype.DtObjectpublic int getAttributeSize()
getAttributeSize 在接口中 cn.weforward.protocol.datatype.DtObjectprotected cn.weforward.protocol.datatype.DtBase getAttributeInner(String name)
getAttributeInner 在类中 cn.weforward.protocol.support.datatype.AbstractDtObjectprotected abstract Map<String,SqlColumnType> createTable()
protected abstract Map<String,SqlColumnType> getCurrentColumns()
protected void differ(AbstractDDLMapped.Field field)
public boolean isDiffer()
public void reinit()
protected Map<String,SqlColumnType> init()
public boolean merging(AbstractDDLMapped.ColumnHandler handler)
protected void updateColumn(AbstractDDLMapped.ColumnHandler handler, Map<String,SqlColumnType> columns, String name, SqlColumnType needType)
protected void changeColumn(AbstractDDLMapped.ColumnHandler handler, String name, SqlColumnType type)
protected void addColumn(AbstractDDLMapped.ColumnHandler handler, String name, SqlColumnType type)
protected boolean createIndex(AbstractDDLMapped.ColumnHandler handler, cn.weforward.common.KvPair<String,Class<?>> index)
public void reset()
public void clear()
Copyright © 2022. All rights reserved.