Example #1
0
func (this *Association) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		this.hash = result
	}

	return this.hash
}
Example #2
0
func (this *ColumnHolder) HashCode() int {
	if this.hash == 0 {
		result := tk.HashType(tk.HASH_SEED, this)
		this.hash = result
	}

	return this.hash
}
Example #3
0
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
}
Example #4
0
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
}
Example #5
0
func (this *Board) HashCode() int {
	result := toolkit.HashType(toolkit.HASH_SEED, this)
	result = toolkit.HashLong(result, ext.DefInt64(this.Id, 0))
	return result
}
Example #6
0
func (this *Publisher) HashCode() int {
	result := tk.HashType(tk.HASH_SEED, this)
	result = tk.HashLong(result, DefInt64(this.Id, 0))
	return result
}