From 35b195ae1bffddb129af83e7d5bd0f4469efedbc Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 19 Sep 2003 02:12:55 +0000 Subject: [PATCH] Initial checkin of class representing a row in the sites table. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1223 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/servlet/Site.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 projects/samskivert/src/java/com/samskivert/servlet/Site.java diff --git a/projects/samskivert/src/java/com/samskivert/servlet/Site.java b/projects/samskivert/src/java/com/samskivert/servlet/Site.java new file mode 100644 index 00000000..c14187df --- /dev/null +++ b/projects/samskivert/src/java/com/samskivert/servlet/Site.java @@ -0,0 +1,42 @@ +// +// $Id: Site.java,v 1.1 2003/09/19 02:12:55 eric Exp $ + +package com.samskivert.servlet.user; + +import com.samskivert.util.StringUtil; + +/** + * A representation of a row in the sites table. + */ +public class Site +{ + /** The sites unqiue identifier. */ + public int siteId; + + /** The sites human readable identifier (I.e., "Shockwave") */ + public String stringId; + + /** Construct a Site record with the specified siteId. */ + public Site (int siteId) + { + this.siteId = siteId; + } + + /** Construct a Site record with the specified stringId. */ + public Site (String stringId) + { + this.stringId = stringId; + } + + /** + * Constructs a blank Site record for unserialization + * from the repository. + */ + public Site () + { + } + + public String toString () { + return StringUtil.fieldsToString(this); + } +}