public class DatabaseDictionary extends FormulaDisplayDictionary
Dictionary.MV
限定符和类型 | 字段和说明 |
---|---|
protected Connection |
databaseConnection |
protected java.lang.String |
schema |
protected java.lang.String |
tableName |
condition, formula, keyColumnIndex, keyColumnName, valueColumnIndex, valueColumnName
EMPTY_DICT, XML_TAG
构造器和说明 |
---|
DatabaseDictionary()
Constructor.
|
DatabaseDictionary(Connection databaseConnection,
java.lang.String tableName,
int keyColumnIndex,
int valueColumnIndex)
|
限定符和类型 | 方法和说明 |
---|---|
protected TableData |
asTableData(Calculator c) |
java.lang.Object |
clone()
Clone.
|
JSONObject |
createJSON()
构建json格式信息g
|
boolean |
equals(java.lang.Object obj) |
Connection |
getDatabaseConnection() |
java.lang.Class |
getKeyEditorClass() |
java.lang.String |
getSchema() |
java.lang.String |
getTableName() |
java.lang.Class |
getValueEditorClass() |
void |
parseJSON(JSONObject jo)
通过JSON数据设置对象
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setDatabaseConnection(Connection databaseConnection)
Sets the database connection.
|
void |
setKeyEditorClass(java.lang.Class editorClass) |
void |
setSchema(java.lang.String s) |
void |
setTableName(java.lang.String tableName)
Sets the table name, which will be used to made up SQL.
|
void |
setValueEditorClass(java.lang.Class editorClass) |
java.lang.String |
toString()
转成String
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
analyzeCorrelative, createCacheKey, createMV, dependence, entrys, entrys, get, getCondition, getDataModelColumnIndex, getFormula, getKeyColumnIndex, getKeyColumnIndex, getKeyColumnName, getValueColumnIndex, getValueColumnIndex, getValueColumnName, reset, setCondition, setFormula, setKeyColumnIndex, setKeyColumnName, setValueColumnIndex, setValueColumnName
protected Connection databaseConnection
protected java.lang.String tableName
protected java.lang.String schema
public DatabaseDictionary()
public DatabaseDictionary(Connection databaseConnection, java.lang.String tableName, int keyColumnIndex, int valueColumnIndex)
databaseConnection
- database .tableName
- the name of table.keyColumnIndex
- the column index of key. the first column is 1, the second is 2, ...valueColumnIndex
- the column index of value. the first column is 1, the second is 2, ...public Connection getDatabaseConnection()
public void setDatabaseConnection(Connection databaseConnection)
databaseConnection
- the new database connection.public java.lang.String getSchema()
public void setSchema(java.lang.String s)
public java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
tableName
- the new table name.public void setKeyEditorClass(java.lang.Class editorClass)
public java.lang.Class getKeyEditorClass()
public void setValueEditorClass(java.lang.Class editorClass)
public java.lang.Class getValueEditorClass()
protected TableData asTableData(Calculator c)
asTableData
在类中 FormulaDisplayDictionary
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
readXML
在类中 FormulaDisplayDictionary
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
writeXML
在接口中 XMLWriter
writeXML
在类中 FormulaDisplayDictionary
writer
- the PrintWriter.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 FormulaDisplayDictionary
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object obj)
equals
在类中 FormulaDisplayDictionary
public java.lang.String toString()
toString
在类中 FormulaDisplayDictionary
public JSONObject createJSON() throws java.lang.Exception
java.lang.Exception
public void parseJSON(JSONObject jo) throws java.lang.Exception
jo
- JSON数据java.lang.Exception