コード例 #1
0
ファイル: Association.go プロジェクト: quintans/goSQL
func (this *Association) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		this.hash = result
	}

	return this.hash
}
コード例 #2
0
ファイル: ColumnHolder.go プロジェクト: quintans/goSQL
func (this *ColumnHolder) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		this.hash = result
	}

	return this.hash
}
コード例 #3
0
ファイル: Column.go プロジェクト: quintans/goSQL
func (this *Column) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		result = tk.HashString(result, this.table.String()+"."+this.name)
		this.hash = result
	}

	return this.hash
}
コード例 #4
0
ファイル: Token.go プロジェクト: quintans/goSQL
func (this *Token) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		result = tk.HashString(result, this.Operator)
		result = tk.HashString(result, this.Alias)
		result = tk.Hash(result, this.Members)
		this.hash = result
	}

	return this.hash
}
コード例 #5
0
ファイル: 0_Board.go プロジェクト: quintans/taskboard
func (this *Board) HashCode() int {
	result := toolkit.HashType(toolkit.HASH_SEED, this)
	result = toolkit.HashLong(result, ext.DefInt64(this.Id, 0))
	return result
}
コード例 #6
0
ファイル: entities.go プロジェクト: quintans/goSQL
func (this *Publisher) HashCode() int {
	result := tk.HashType(tk.HASH_SEED, this)
	result = tk.HashLong(result, DefInt64(this.Id, 0))
	return result
}