001 package com.sptci.rwt;
002
003 import java.io.Serializable;
004
005 /**
006 * A simple value object that represents a column in a result set row.
007 *
008 * <p>© Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
009 * @author Rakesh Vidyadharan 2007-10-02
010 * @version $Id: Column.java 4123 2008-05-25 21:49:01Z rakesh $
011 */
012 public class Column implements Serializable
013 {
014 /** The name of the column. */
015 private String name;
016
017 /** The {@link java.sql.Types} value for the data type of the column. */
018 private int type;
019
020 /** The object that represents the contents of the column. */
021 private Object content;
022
023 /**
024 * Returns {@link #name}.
025 *
026 * @return The value/reference of/to name.
027 */
028 public String getName()
029 {
030 return name;
031 }
032
033 /**
034 * Set {@link #name}.
035 *
036 * @param name The value to set.
037 */
038 protected void setName( final String name )
039 {
040 this.name = name;
041 }
042
043 /**
044 * Returns {@link #type}.
045 *
046 * @return The value/reference of/to type.
047 */
048 public int getType()
049 {
050 return type;
051 }
052
053 /**
054 * Set {@link #type}.
055 *
056 * @param type The value to set.
057 */
058 protected void setType( final int type )
059 {
060 this.type = type;
061 }
062
063 /**
064 * Returns {@link #content}.
065 *
066 * @return The value/reference of/to content.
067 */
068 public Object getContent()
069 {
070 return content;
071 }
072
073 /**
074 * Set {@link #content}.
075 *
076 * @param content The value to set.
077 */
078 protected void setContent( final Object content )
079 {
080 this.content = content;
081 }
082 }