Table

org.beangle.data.jdbc.meta.Table
See theTable companion object
class Table(var schema: Schema, var name: Identifier) extends Ordered[Table] with Cloneable with Comment

Attributes

Companion:
object
Graph
Supertypes
trait Comment
trait Cloneable
trait Ordered[Table]
trait Comparable[Table]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def add(column: Column): Column
def add(cols: Column*): Unit
def add(index: Index): Index
def attach(engine: Engine): Table.this.type
def clone(newschema: Schema): Table
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 column(columnName: String): Column
def columnExits(columnName: Identifier): Boolean
def commentAndModule: Option[String]
override def compare(o: Table): Int

Attributes

Definition Classes
Ordered
def createColumn(name: String, sqlType: SqlType): Column
def createColumn(name: String, typeName: String): Column
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 getColumn(columnName: String): Option[Column]
def getForeignKey(keyName: String): Option[ForeignKey]
def getIndex(indexName: String): Option[Index]
def getUniqueKey(keyName: String): Option[UniqueKey]
def hasQuotedIdentifier: Boolean

has quoted identifier

has quoted identifier

Attributes

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

两个表格是否结构相同

两个表格是否结构相同

Attributes

def qualifiedName: String
def quotedColumnNames: List[String]
def toCase(lower: Boolean): Unit
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
Any
def updateCommentAndModule(newComment: String): Unit
def updateSchema(newSchema: Schema): Unit

Inherited methods

def <(that: Table): Boolean

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Ordered
def compareTo(that: Table): Int

Attributes

Inherited from:
Ordered

Concrete fields

val columns: ListBuffer[Column]
val foreignKeys: ListBuffer[ForeignKey]
val indexes: ListBuffer[Index]
var module: Option[String]
var phantom: Boolean

虚拟表

虚拟表

Attributes

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

Inherited fields

var comment: Option[String]

Attributes

Inherited from:
Comment