接口 AnylineService.DDLService

封闭接口:
AnylineService<E>

public static interface AnylineService.DDLService
  • 方法详细资料

    • parse

      <T extends Metadata> T parse(Class<T> type, String ddl, ConfigStore configs)
      解析DDL生成元数据对象
      类型参数:
      T - T
      参数:
      type - Metadata类型
      ddl - ddl
      configs - 其他配置
      返回:
      T
    • parse

      default <T extends Metadata> T parse(Class<T> type, String ddl)
    • save

      boolean save(Catalog meta) throws Exception
      创建或修改catalog
      参数:
      meta - catalog
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(Catalog meta) throws Exception
      创建catalog
      参数:
      meta - catalog
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(Catalog meta) throws Exception
      修改catalog
      参数:
      meta - catalog
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(Catalog meta) throws Exception
      删除catalog
      参数:
      meta - catalog
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(Catalog origin, String name) throws Exception
      重命名catalog
      参数:
      origin - catalog
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(Schema meta) throws Exception
      创建或修改schema
      参数:
      meta - schema
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(Schema meta) throws Exception
      创建schema
      参数:
      meta - schema
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(Schema meta) throws Exception
      修改schema
      参数:
      meta - schema
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(Schema meta) throws Exception
      删除schema
      参数:
      meta - schema
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(Schema origin, String name) throws Exception
      重命名schema
      参数:
      origin - schema
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(Database meta) throws Exception
      创建或修改数据库
      参数:
      meta - 数据库
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(Database meta) throws Exception
      创建或修改数据库
      参数:
      meta - 数据库
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(Database meta) throws Exception
      创建或修改数据库
      参数:
      meta - 数据库
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(Database meta) throws Exception
      创建或修改数据库
      参数:
      meta - 数据库
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(Database origin, String name) throws Exception
      重命名数据库
      参数:
      origin - 数据库
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(Table meta) throws Exception
      创建或修改表
      参数:
      meta - 表
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(Table meta) throws Exception
      创建表
      参数:
      meta - 表
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(Table meta) throws Exception
      修改表
      参数:
      meta - 表
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(Table meta) throws Exception
      删除表
      参数:
      meta - 表
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(Table origin, String name) throws Exception
      重命名表
      参数:
      origin - 表
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(View meta) throws Exception
      创建或修改视图
      参数:
      meta - 视图
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(View meta) throws Exception
      创建视图
      参数:
      meta - 视图
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(View meta) throws Exception
      修改视图
      参数:
      meta - 视图
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(View meta) throws Exception
      删除视图
      参数:
      meta - 视图
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(View origin, String name) throws Exception
      创建或修改视图
      参数:
      origin - 视图
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(MasterTable meta) throws Exception
      创建或修改主表
      参数:
      meta - 主表
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(MasterTable meta) throws Exception
      创建主表
      参数:
      meta - 主表
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(MasterTable meta) throws Exception
      修改主表
      参数:
      meta - 主表
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(MasterTable meta) throws Exception
      删除主表
      参数:
      meta - 主表
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(MasterTable origin, String name) throws Exception
      重命名主表
      参数:
      origin - 主表
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(PartitionTable meta) throws Exception
      创建或修改分区表
      参数:
      meta - 分区表
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      boolean create(PartitionTable meta) throws Exception
      创建分区表
      参数:
      meta - 分区表
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(PartitionTable meta) throws Exception
      修改分区表
      参数:
      meta - 分区表
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(PartitionTable meta) throws Exception
      删除分区表
      参数:
      meta - 分区表
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(PartitionTable origin, String name) throws Exception
      重命名分区表
      参数:
      origin - 分区表
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(Column meta) throws Exception
      修改列 名称 数据类型 位置 默认值 等属性 执行save前先调用column.update()设置修改后的属性 column.update().setName().setDefaultValue().setAfter()....
      参数:
      meta - 列
      抛出:
      Exception - 异常 SQL异常
    • add

      boolean add(Column meta) throws Exception
      添加列
      参数:
      meta - 列
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(Column meta) throws Exception
      修改列
      参数:
      meta - 列
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(Column meta) throws Exception
      删除列
      参数:
      meta - 列
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(Column origin, String name) throws Exception
      添加列
      参数:
      origin - 列
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • save

      boolean save(Tag meta) throws Exception
      抛出:
      Exception
    • add

      boolean add(Tag meta) throws Exception
      抛出:
      Exception
    • alter

      boolean alter(Tag meta) throws Exception
      抛出:
      Exception
    • drop

      boolean drop(Tag meta) throws Exception
      抛出:
      Exception
    • rename

      boolean rename(Tag origin, String name) throws Exception
      抛出:
      Exception
    • add

      boolean add(PrimaryKey meta) throws Exception
      添加主键
      参数:
      meta - 主键
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      default boolean create(PrimaryKey meta) throws Exception
      创建主键
      参数:
      meta - 主键
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(PrimaryKey meta) throws Exception
      修改主键
      参数:
      meta - 主键
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(PrimaryKey meta) throws Exception
      删除主键
      参数:
      meta - 主键
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(PrimaryKey origin, String name) throws Exception
      重命名主键
      参数:
      origin - 主键
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • add

      boolean add(ForeignKey meta) throws Exception
      添加外键
      参数:
      meta - 外键
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(ForeignKey meta) throws Exception
      修改外键
      参数:
      meta - 外键
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(ForeignKey meta) throws Exception
      删除外键
      参数:
      meta - 外键
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(ForeignKey origin, String name) throws Exception
      重命名外键
      参数:
      origin - 外键
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • add

      boolean add(Index meta) throws Exception
      添加索引
      参数:
      meta - 索引
      返回:
      boolean
      抛出:
      Exception - 异常
    • create

      default boolean create(Index meta) throws Exception
      创建索引
      参数:
      meta - 索引
      返回:
      boolean
      抛出:
      Exception - 异常
    • alter

      boolean alter(Index meta) throws Exception
      修改索引
      参数:
      meta - 索引
      返回:
      boolean
      抛出:
      Exception - 异常
    • drop

      boolean drop(Index meta) throws Exception
      删除索引
      参数:
      meta - 索引
      返回:
      boolean
      抛出:
      Exception - 异常
    • rename

      boolean rename(Index origin, String name) throws Exception
      重命名索引
      参数:
      origin - 索引
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常
    • add

      boolean add(Constraint meta) throws Exception
      添加约束
      参数:
      meta - 约束
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • create

      default boolean create(Constraint meta) throws Exception
      创建约束
      参数:
      meta - 约束
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • alter

      boolean alter(Constraint meta) throws Exception
      修改约束
      参数:
      meta - 约束
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • drop

      boolean drop(Constraint meta) throws Exception
      添加约束
      参数:
      meta - 约束
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • rename

      boolean rename(Constraint origin, String name) throws Exception
      添加约束
      参数:
      origin - 约束
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • create

      boolean create(Trigger meta) throws Exception
      创建触发器
      参数:
      meta - 触发器
      返回:
      trigger
      抛出:
      Exception - 异常 Exception
    • alter

      boolean alter(Trigger meta) throws Exception
      修改触发器
      参数:
      meta - 触发器
      返回:
      trigger
      抛出:
      Exception - 异常 Exception
    • drop

      boolean drop(Trigger meta) throws Exception
      删除触发器
      参数:
      meta - 触发器
      返回:
      trigger
      抛出:
      Exception - 异常 Exception
    • rename

      boolean rename(Trigger origin, String name) throws Exception
      触发器
      参数:
      origin - 触发器
      name - 新名称
      返回:
      trigger
      抛出:
      Exception - 异常 Exception
    • create

      boolean create(Procedure meta) throws Exception
      创建存储过程
      参数:
      meta - 存储过程
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • alter

      boolean alter(Procedure meta) throws Exception
      修改存储过程
      参数:
      meta - 存储过程
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • drop

      boolean drop(Procedure meta) throws Exception
      删除存储过程
      参数:
      meta - 存储过程
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • rename

      boolean rename(Procedure origin, String name) throws Exception
      重命名存储过程
      参数:
      origin - 存储过程
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • create

      boolean create(Function meta) throws Exception
      创建函数
      参数:
      meta - 函数
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • alter

      boolean alter(Function meta) throws Exception
      修改函数
      参数:
      meta - 函数
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • drop

      boolean drop(Function meta) throws Exception
      删除函数
      参数:
      meta - 函数
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • rename

      boolean rename(Function origin, String name) throws Exception
      重命名函数
      参数:
      origin - 函数
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • create

      boolean create(Sequence meta) throws Exception
      创建序列
      参数:
      meta - 序列
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • alter

      boolean alter(Sequence meta) throws Exception
      修改序列
      参数:
      meta - 序列
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • drop

      boolean drop(Sequence meta) throws Exception
      删除序列
      参数:
      meta - 序列
      返回:
      boolean
      抛出:
      Exception - 异常 Exception
    • rename

      boolean rename(Sequence origin, String name) throws Exception
      重命名序列
      参数:
      origin - 序列
      name - 新名称
      返回:
      boolean
      抛出:
      Exception - 异常 Exception