sql parser schema stat

This commit is contained in:
温少
2012-05-24 14:07:48 +08:00
6 changed files with 189 additions and 14 deletions
@@ -16,7 +16,9 @@
package com.alibaba.druid.stat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class TableStat {
@@ -341,8 +343,10 @@ public class TableStat {
public static class Column {
private String table;
private String name;
private String table;
private String name;
private Map<String, Object> attributes = new HashMap<String, Object>();
public Column(){
@@ -369,6 +373,14 @@ public class TableStat {
this.name = name;
}
public Map<String, Object> getAttributes() {
return attributes;
}
public void setAttributes(Map<String, Object> attributes) {
this.attributes = attributes;
}
public int hashCode() {
int tableHashCode = table != null ? table.toLowerCase().hashCode() : 0;
int nameHashCode = name != null ? name.toLowerCase().hashCode() : 0;