rundata.java

来自「A Java web application, based on Struts 」· Java 代码 · 共 43 行

JAVA
43
字号
/* @LICENSE_COPYRIGHT@ */
package net.sf.irunninglog.canonical;

/**
 * Canonical object representing a <em>Run Data</em> entity.  This class
 * provides a number of constants which define a loose contract as to what a
 * <em>Run Data</em> is within the system.  This contract serves as a way to
 * allow different application layers to understand and interact with
 * generic data (e.g. data transfer objects).
 *
 * @author <a href="mailto:allan_e_lewis@yahoo.com">Allan Lewis</a>
 * @version $Revision: 1.1.1.1 $ $Date: 2005/06/23 01:48:56 $
 * @since iRunningLog 1.0
 */
public final class RunData extends HasGeneratedId {

    /** Canonical ID for Run Data objects. */
    public static final String CANONICAL_ID = "RunData";

    /** Does not expose a constructor. */
    private RunData() { };

    /** The value used to identify the Run Data's <em>date</em> field. */
    public static final String FIELD_DATE = "date";
    /** The value used to identify the Run Data's <em>distance</em> field. */
    public static final String FIELD_DISTANCE = "distance";
    /** The value used to identify the Run Data's <em>units</em> field. */
    public static final String FIELD_UNITS = "units";
    /** The value used to identify the Run Data's <em>time</em> field. */
    public static final String FIELD_TIME = "time";
    /** The value used to identify the Run Data's <em>pace</em> field. */
    public static final String FIELD_PACE = "pace";
    /** The value used to identify the Run Data's <em>route</em> field. */
    public static final String FIELD_ROUTE = "route";
    /** The value used to identify the Run Data's <em>run type</em> field. */
    public static final String FIELD_RUN_TYPE = "runType";
    /** The value used to identify the Run Data's <em>shoes</em> field. */
    public static final String FIELD_SHOES = "shoes";
    /** The value used to identify the Run Data's <em>comments</em> field. */
    public static final String FIELD_COMMENTS = "comments";

}

⌨️ 快捷键说明

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