Table

org.beangle.data.jdbc.meta.Table
See theTable companion object
class Table(s: Schema, n: Identifier) extends Relation

Attributes

Companion
object
Graph
Supertypes
class Relation
trait Cloneable
trait Comment
trait Ordered[Relation]
trait Comparable[Relation]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add(key: UniqueKey): UniqueKey
def add(index: Index): Index
override def add(column: Column): Column

Attributes

Definition Classes
override def attach(engine: Engine): Table.this.type

Attributes

Definition Classes
override def clone(newschema: Schema): Table

Attributes

Definition Classes
override def clone(): Table

Create a copy of the receiver object.

Create a copy of the receiver object.

The default implementation of the clone method is platform dependent.

Attributes

Returns

a copy of the receiver object.

Note

not specified by SLS as a member of AnyRef

Definition Classes
Object
def createForeignKey(keyName: String, columnName: String, refTable: TableRef, refencedColumn: String): ForeignKey
def createForeignKey(keyName: String, columnName: String, refTable: Table): ForeignKey
def createIndex(indexName: String, unique: Boolean, columnNames: String*): Index
def createPrimaryKey(keyName: String, columnNames: String*): PrimaryKey
def createUniqueKey(keyName: String, columnNames: String*): UniqueKey
def getForeignKey(keyName: String): Option[ForeignKey]
def getIndex(indexName: String): Option[Index]
def getUniqueKey(keyName: String): Option[UniqueKey]
override def hasQuotedIdentifier: Boolean

has quoted identifier

has quoted identifier

Attributes

Definition Classes
def isPrimaryKeyIndex(indexName: String): Boolean
def isSameStruct(o: Table): Boolean

两个表格是否结构相同

两个表格是否结构相同

Attributes

override def remove(column: Column): Unit

Attributes

Definition Classes
def toCase(lower: Boolean): Unit
override def updateSchema(newSchema: Schema): Unit

Attributes

Definition Classes

Inherited methods

def <(that: Relation): Boolean

Attributes

Inherited from:
Ordered
def <=(that: Relation): Boolean

Attributes

Inherited from:
Ordered
def >(that: Relation): Boolean

Attributes

Inherited from:
Ordered
def >=(that: Relation): Boolean

Attributes

Inherited from:
Ordered
def add(cols: Column*): Unit

Attributes

Inherited from:
Relation
def column(columnName: String): Column

Attributes

Inherited from:
Relation
def columnExits(columnName: Identifier): Boolean

Attributes

Inherited from:
Relation
def commentAndModule: Option[String]

Attributes

Inherited from:
Relation
override def compare(o: Relation): Int

Attributes

Definition Classes
Relation -> Ordered
Inherited from:
Relation
def compareTo(that: Relation): Int

Attributes

Inherited from:
Ordered
def createColumn(name: String, typeName: String): Column

Attributes

Inherited from:
Relation
def createColumn(name: String, sqlType: SqlType): Column

Attributes

Inherited from:
Relation
def engine: Engine

Attributes

Inherited from:
Relation
def getColumn(columnName: String): Option[Column]

Attributes

Inherited from:
Relation
def qualifiedName: String

Attributes

Inherited from:
Relation
def quotedColumnNames: List[String]

Attributes

Inherited from:
Relation
def rename(column: Column, newName: Identifier): Unit

Attributes

Inherited from:
Relation
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Relation -> Any
Inherited from:
Relation
def updateCommentAndModule(newComment: String): Unit

Attributes

Inherited from:
Relation

Concrete fields

val foreignKeys: ListBuffer[ForeignKey]
val indexes: ListBuffer[Index]
var phantom: Boolean

虚拟表

虚拟表

Attributes

var primaryKey: Option[PrimaryKey]
val uniqueKeys: ListBuffer[UniqueKey]

Inherited fields

val columns: ListBuffer[Column]

Attributes

Inherited from:
Relation
var comment: Option[String]

Attributes

Inherited from:
Comment
var module: Option[String]

Attributes

Inherited from:
Relation

Attributes

Inherited from:
Relation
var schema: Schema

Attributes

Inherited from:
Relation