| Package | Description |
|---|---|
| org.pinus4j.cluster |
数据库集群实现.
|
| org.pinus4j.cluster.impl |
数据库集群的实现.
|
| org.pinus4j.generator |
数据库生成工具接口
|
| org.pinus4j.generator.beans | |
| org.pinus4j.generator.impl |
数据库生成工具实现
|
| Modifier and Type | Method and Description |
|---|---|
List<DBTable> |
IDBCluster.getDBTableFromJvm()
从Jvm中获取分片信息.
|
List<DBTable> |
IDBCluster.getDBTableFromZk()
从Zookeeper中获取分片信息.
|
| Modifier and Type | Field and Description |
|---|---|
private List<DBTable> |
NumberIndexTableClusterBuilder.tables |
| Modifier and Type | Method and Description |
|---|---|
List<DBTable> |
AbstractDBCluster.getDBTableFromJvm() |
List<DBTable> |
AbstractDBCluster.getDBTableFromZk() |
| Modifier and Type | Method and Description |
|---|---|
private void |
AbstractDBCluster._createTable(List<DBTable> tables)
创建数据库表.
|
private Map<String,Integer> |
AbstractDBCluster._loadTableInfo(String clusterName,
List<DBTable> tables)
build table info by table meta.
|
private void |
AbstractDBCluster._syncToZookeeper(List<DBTable> tables)
将表分片信息同步到zookeeper.
|
void |
NumberIndexTableClusterBuilder.setTables(List<DBTable> tables) |
static ITableClusterBuilder |
NumberIndexTableClusterBuilder.valueOf(List<DBTable> tables) |
| Modifier and Type | Method and Description |
|---|---|
protected DBTable |
AbstractDBGenerator.converTo(Class<?> defClass)
通过翻身将class转换为DBTable对象
|
| Modifier and Type | Method and Description |
|---|---|
List<DBTable> |
IDBGenerator.scanEntity(String scanPackage)
扫描@Table类
|
List<DBTable> |
AbstractDBGenerator.scanEntity(String scanPackage)
扫描包并发现使用Table注解的对象.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
AbstractDBGenerator._parseDBIndex(DBTable table,
Class<?> clazz)
解析@Indexes注解.
|
void |
IDBGenerator.syncTable(Connection conn,
DBTable table)
同步数据库表
|
void |
IDBGenerator.syncTable(Connection conn,
DBTable table,
int num)
批量同步数据库表.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
AbstractDBGenerator.addClassesByFile(List<DBTable> tables,
String packageName,
String packagePath) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
DBTable.getAlterSQL(DBTable existTable,
boolean isDelete)
获取修改的sql语句.
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,Map<String,DBTable>> |
DBMySqlGeneratorImpl.existsTable |
| Modifier and Type | Method and Description |
|---|---|
private Map<String,DBTable> |
DBMySqlGeneratorImpl._getTable(Connection conn)
获取数据库中已有的表结构.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
DBMySqlGeneratorImpl._initTableColumn(DBTable table,
Connection dbconn)
初始化数据库中已有的表的列.
|
private void |
DBMySqlGeneratorImpl._initTableIndex(DBTable table,
Connection dbconn)
初始化数据库中已有的表的索引.
|
void |
DBMySqlGeneratorImpl.syncTable(Connection conn,
DBTable table) |
void |
DBMySqlGeneratorImpl.syncTable(Connection conn,
DBTable table,
int num) |
Copyright © 2015. All rights reserved.