⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datastype.java

📁 CRM源码This file describes some issues that should be implemented in future and how it should be imple
💻 JAVA
字号:
/* * This class was automatically generated with  * <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML * Schema. * $Id$ */package com.queplix.core.jxb.entity.types;  //---------------------------------/ //- Imported classes and packages -///---------------------------------/import java.io.Serializable;import java.util.Enumeration;import java.util.Hashtable;import org.exolab.castor.xml.Marshaller;import org.exolab.castor.xml.Unmarshaller;/** * The possible data types of entity field *  * @version $Revision$ $Date$ */public class DataSType implements java.io.Serializable {      //--------------------------/     //- Class/Member Variables -/    //--------------------------/    /**     * The string type     */    public static final int STRING_TYPE = 0;    /**     * The instance of the string type     */    public static final DataSType STRING = new DataSType(STRING_TYPE, "string");    /**     * The int type     */    public static final int INT_TYPE = 1;    /**     * The instance of the int type     */    public static final DataSType INT = new DataSType(INT_TYPE, "int");    /**     * The long type     */    public static final int LONG_TYPE = 2;    /**     * The instance of the long type     */    public static final DataSType LONG = new DataSType(LONG_TYPE, "long");    /**     * The float type     */    public static final int FLOAT_TYPE = 3;    /**     * The instance of the float type     */    public static final DataSType FLOAT = new DataSType(FLOAT_TYPE, "float");    /**     * The time type     */    public static final int TIME_TYPE = 4;    /**     * The instance of the time type     */    public static final DataSType TIME = new DataSType(TIME_TYPE, "time");    /**     * The date type     */    public static final int DATE_TYPE = 5;    /**     * The instance of the date type     */    public static final DataSType DATE = new DataSType(DATE_TYPE, "date");    /**     * The timestamp type     */    public static final int TIMESTAMP_TYPE = 6;    /**     * The instance of the timestamp type     */    public static final DataSType TIMESTAMP = new DataSType(TIMESTAMP_TYPE, "timestamp");    /**     * The memo type     */    public static final int MEMO_TYPE = 7;    /**     * The instance of the memo type     */    public static final DataSType MEMO = new DataSType(MEMO_TYPE, "memo");    /**     * The binary type     */    public static final int BINARY_TYPE = 8;    /**     * The instance of the binary type     */    public static final DataSType BINARY = new DataSType(BINARY_TYPE, "binary");    /**     * Field _memberTable     */    private static java.util.Hashtable _memberTable = init();    /**     * Field type     */    private int type = -1;    /**     * Field stringValue     */    private java.lang.String stringValue = null;      //----------------/     //- Constructors -/    //----------------/    private DataSType(int type, java.lang.String value)      {        super();        this.type = type;        this.stringValue = value;    } //-- com.queplix.core.jxb.entity.types.DataSType(int, java.lang.String)      //-----------/     //- Methods -/    //-----------/    /**     * Method enumerate     *      * Returns an enumeration of all possible instances of     * DataSType     *      * @return Enumeration     */    public static java.util.Enumeration enumerate()    {        return _memberTable.elements();    } //-- java.util.Enumeration enumerate()     /**     * Method getType     *      * Returns the type of this DataSType     *      * @return int     */    public int getType()    {        return this.type;    } //-- int getType()     /**     * Method init     *      *      *      * @return Hashtable     */    private static java.util.Hashtable init()    {        Hashtable members = new Hashtable();        members.put("string", STRING);        members.put("int", INT);        members.put("long", LONG);        members.put("float", FLOAT);        members.put("time", TIME);        members.put("date", DATE);        members.put("timestamp", TIMESTAMP);        members.put("memo", MEMO);        members.put("binary", BINARY);        return members;    } //-- java.util.Hashtable init()     /**     * Method readResolve     *      *  will be called during deserialization to replace the     * deserialized object with the correct constant instance.     * <br/>     *      * @return Object     */    private java.lang.Object readResolve()    {        return valueOf(this.stringValue);    } //-- java.lang.Object readResolve()     /**     * Method toString     *      * Returns the String representation of this DataSType     *      * @return String     */    public java.lang.String toString()    {        return this.stringValue;    } //-- java.lang.String toString()     /**     * Method valueOf     *      * Returns a new DataSType based on the given String value.     *      * @param string     * @return DataSType     */    public static com.queplix.core.jxb.entity.types.DataSType valueOf(java.lang.String string)    {        java.lang.Object obj = null;        if (string != null) obj = _memberTable.get(string);        if (obj == null) {            String err = "'" + string + "' is not a valid DataSType";            throw new IllegalArgumentException(err);        }        return (DataSType) obj;    } //-- com.queplix.core.jxb.entity.types.DataSType valueOf(java.lang.String) }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -