// Path: cango-instance/src/main/java/com/bella/cango/instance/oracle/common/utils/YuGongToStringStyle.java
// public class YuGongToStringStyle extends ToStringStyle {
// 
//     private static final long serialVersionUID = -6568177374288222145L;
// 
//     public static final ToStringStyle DEFAULT_STYLE = new DateStyle("yyyy-MM-dd HH:mm:ss");
// 
//     private static class DateStyle extends ToStringStyle {
// 
//         private static final long serialVersionUID = 5208917932254652886L;
// 
//         private String datePattern;
// 
//         public DateStyle(String datePattern) {
//             super();
//             this.setUseIdentityHashCode(false);
//             this.setUseShortClassName(true);
//             this.datePattern = datePattern;
//         }
// 
//         protected void appendDetail(StringBuffer buffer, String fieldName, Object value) {
//             if (value instanceof Date) {
//                 value = new SimpleDateFormat(datePattern).format(value);
//             } else {
//                 buffer.append(value);
//             }
//         }
//     }
// }


import com.bella.cango.instance.oracle.common.utils.YuGongToStringStyle;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.ToStringBuilder;
package com.bella.cango.instance.oracle.common.db.meta;


/**
 * 代表一个字段的信息
 *
 * @author agapple 2013-9-3 下午2:46:32
 * @since 3.0.0
 */
public class ColumnMeta {

    private String name;
    private int type;

    public ColumnMeta(String columnName, int columnType) {
        this.name = StringUtils.upperCase(columnName);// 统一为大写
        this.type = columnType;
    }

    public String getName() {
        return name;
    }

    public int getType() {
        return type;
    }

    public void setName(String name) {
        this.name = StringUtils.upperCase(name);
    }

    public void setType(int type) {
        this.type = type;
    }

    public ColumnMeta clone() {
        return new ColumnMeta(this.name, this.type);
    }

    public String toString() {
// Path: cango-instance/src/main/java/com/bella/cango/instance/oracle/common/utils/YuGongToStringStyle.java
// public class YuGongToStringStyle extends ToStringStyle {
// 
//     private static final long serialVersionUID = -6568177374288222145L;
// 
//     public static final ToStringStyle DEFAULT_STYLE = new DateStyle("yyyy-MM-dd HH:mm:ss");
// 
//     private static class DateStyle extends ToStringStyle {
// 
//         private static final long serialVersionUID = 5208917932254652886L;
// 
//         private String datePattern;
// 
//         public DateStyle(String datePattern) {
//             super();
//             this.setUseIdentityHashCode(false);
//             this.setUseShortClassName(true);
//             this.datePattern = datePattern;
//         }
// 
//         protected void appendDetail(StringBuffer buffer, String fieldName, Object value) {
//             if (value instanceof Date) {
//                 value = new SimpleDateFormat(datePattern).format(value);
//             } else {
//                 buffer.append(value);
//             }
//         }
//     }
// }


// Path: cango-instance/src/main/java/com/bella/cango/instance/oracle/common/db/meta/ColumnMeta.java
import com.bella.cango.instance.oracle.common.utils.YuGongToStringStyle;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.ToStringBuilder;

package com.bella.cango.instance.oracle.common.db.meta;


/**
 * 代表一个字段的信息
 *
 * @author agapple 2013-9-3 下午2:46:32
 * @since 3.0.0
 */
public class ColumnMeta {

    private String name;
    private int type;

    public ColumnMeta(String columnName, int columnType) {
        this.name = StringUtils.upperCase(columnName);// 统一为大写
        this.type = columnType;
    }

    public String getName() {
        return name;
    }

    public int getType() {
        return type;
    }

    public void setName(String name) {
        this.name = StringUtils.upperCase(name);
    }

    public void setType(int type) {
        this.type = type;
    }

    public ColumnMeta clone() {
        return new ColumnMeta(this.name, this.type);
    }

    public String toString() {
        return ToStringBuilder.reflectionToString(this, YuGongToStringStyle.DEFAULT_STYLE);