package com.ctrip.platform.dal.dao.log;

import java.util.HashMap;
import java.util.Map;

public class SQLErrorInfo {
    public static final String ERROR = "fx.dal.client.fail";

    public static final String CLIENT = "Client";
    private String version;

    private static final String TITANKEY = "TitanKey";
    private String titanKey;


    public SQLErrorInfo(String version, String titanKey) {
        this.version = version;
        this.titanKey = titanKey;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getTitanKey() {
        return titanKey;
    }

    public void setTitanKey(String titanKey) {
        this.titanKey = titanKey;
    }

    public Map<String, String> toTag() {
        Map<String, String> tag = new HashMap<String, String>();
        tag.put(CLIENT, version);
        tag.put(TITANKEY, titanKey);
        return tag;
    }
}

@@ -288,28 +288,16 @@
 ing 
-TITANKEY = %22TitanKey
+DB = %22DB
 %22;%0A 
@@ -314,24 +314,24 @@
  String 
-titanKey
+database
 ;%0A%0A%0A    
@@ -426,32 +426,32 @@
        this.
-titanKey
+database
  = titanKey;
@@ -627,24 +627,24 @@
 ring get
-TitanKey
+Database
 () %7B%0A   
@@ -655,24 +655,24 @@
  return 
-titanKey
+database
 ;%0A    %7D%0A
@@ -695,68 +695,68 @@
  set
-TitanKey(String titanKey) %7B%0A        this.titanKey = titanKey
+Database(String database) %7B%0A        this.database = database
 ;%0A  
@@ -920,26 +920,20 @@
 put(
-TITANKEY, titanKey
+DB, database
 );%0A 

modify sql error tag