public class SchemaBase extends Object implements ISchema
| 限定符和类型 | 字段和说明 |
|---|---|
AccessBase |
a
The a.
|
static String |
FIELD_STYLE_CAMEL
The Field style camel.
|
static String |
FIELD_STYLE_LOWER_CASE
The Field style lower case.
|
static String |
FIELD_STYLE_UPPER_CASE
The Field style upper case.
|
| 构造器和说明 |
|---|
SchemaBase(IConnectionPool pool,
Configure configure)
Instantiates a new schema base.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
esacpeQuoto(String s)
Esacpe quoto string.
|
void |
exportAccessBase(Configure conf)
Export access base.
|
void |
exportDwrConfigure(Configure conf)
Export dwr configure.
|
void |
exportExecuteResult(Configure conf)
Export execute result.
|
void |
exportGwtModule(Configure conf)
输出GWT模块配置信息.
|
String |
exportJSONTools(Configure conf)
���JSONHelper��.
|
void |
exportPoolInterface(Configure conf)
Export pool interface.
|
void |
exportProcedures(Configure confProcedure)
Export procedures.
|
void |
exportSequence(Configure conf)
Export sequence.
|
void |
exportSimpleBean(Configure conf)
Export simple bean.
|
void |
exportSpringConfigure(Configure conf)
Export spring configure.
|
String |
exportTable(ITable table,
Configure conf)
�����.
|
void |
exportViews(View at,
Configure confTable)
Export views.
|
boolean |
fetchSchema()
����ݿ��л�ȡ��ݿ�Ԫ���.
|
String |
findPrevPath(String path)
Find prev path.
|
void |
genSimple(Configure conf,
ITable table,
StringBuilder sb)
Gen simple.
|
Configure |
getConfigure()
获取当前配置.
|
String |
getCopyright()
�ļ�ͷ�İ�Ȩ˵��.
|
String |
getHeader()
Gets the header.
|
Packages |
getPackages()
Gets the packages.
|
Object[][] |
getPKS()
Gets the pks.
|
Sequences |
getSequences()
Gets the sequences.
|
ISQLClause |
getSQLClause()
获取SCHEMA语句.
|
Tables |
getTables()
Gets the tables.
|
Views |
getViews()
Gets the views.
|
boolean |
isPK(String tn,
String cn)
表 tn中的列cn 是否为主键.
|
static void |
main(String[] args)
The entry point of application.
|
void |
out(StringBuilder sb,
String s)
Out.
|
static byte[] |
ReadFromFile(String fileName)
Read from file.
|
static String |
readTextFile(String fileName,
String encoding)
Read text file.
|
static String |
readUTF8TextFile(InputStream ins)
Read UTF 8 text file.
|
static String |
readUTF8TextFile(String fileName)
Read UTF 8 text file.
|
void |
setSQLClause(ISQLClause c)
设置SQL语句提供器.
|
void |
writeToFile(String path,
String fn,
String s)
Write to file.
|
public static final String FIELD_STYLE_LOWER_CASE
public static final String FIELD_STYLE_UPPER_CASE
public AccessBase a
public SchemaBase(IConnectionPool pool, Configure configure)
pool - the poolconfigure - the configurepublic boolean fetchSchema()
ISchemafetchSchema 在接口中 ISchemapublic String getHeader()
public void setSQLClause(ISQLClause c)
c - the new SQL clausepublic Configure getConfigure()
public boolean isPK(String tn, String cn)
tn - the tncn - the cnpublic ISQLClause getSQLClause()
public Sequences getSequences()
public Packages getPackages()
public Object[][] getPKS()
public void writeToFile(String path, String fn, String s)
path - the pathfn - the fns - the spublic String exportJSONTools(Configure conf)
ISchemaexportJSONTools 在接口中 ISchemaconf - the confpublic void out(StringBuilder sb, String s)
sb - the sbs - the spublic String exportTable(ITable table, Configure conf)
ISchemaexportTable 在接口中 ISchematable - the tableconf - the confpublic void exportPoolInterface(Configure conf)
ISchemaexportPoolInterface 在接口中 ISchemaconf - the confpublic static String readUTF8TextFile(InputStream ins)
ins - the inspublic static String readUTF8TextFile(String fileName)
fileName - the file namepublic static String readTextFile(String fileName, String encoding)
fileName - the file nameencoding - the encodingpublic static byte[] ReadFromFile(String fileName)
fileName - the file namepublic void exportExecuteResult(Configure conf)
ISchemaexportExecuteResult 在接口中 ISchemaconf - the confbasepublic void exportAccessBase(Configure conf)
ISchemaexportAccessBase 在接口中 ISchemaconf - the confpublic String getCopyright()
ISchemagetCopyright 在接口中 ISchemapublic void exportViews(View at, Configure confTable)
ISchemaexportViews 在接口中 ISchemaat - the atconfTable - the conf tablepublic void exportProcedures(Configure confProcedure)
ISchemaexportProcedures 在接口中 ISchemaconfProcedure - the conf procedurepublic String findPrevPath(String path)
path - the pathpublic void exportSequence(Configure conf)
ISchemaexportSequence 在接口中 ISchemaconf - the confpublic void exportSpringConfigure(Configure conf)
ISchemaexportSpringConfigure 在接口中 ISchemaconf - the confpublic void exportDwrConfigure(Configure conf)
ISchemaexportDwrConfigure 在接口中 ISchemaconf - the confpublic void exportGwtModule(Configure conf)
exportGwtModule 在接口中 ISchemaconf - the confpublic void genSimple(Configure conf, ITable table, StringBuilder sb) throws IOException
conf - the conftable - the tablesb - the sbIOException - the io exceptionpublic void exportSimpleBean(Configure conf) throws IOException
ISchemaexportSimpleBean 在接口中 ISchemaconf - the confIOException - the io exceptionpublic static void main(String[] args)
args - the input argumentsCopyright © 2018. All rights reserved.