001 package com.sptci.rwt;
002
003 /**
004 * A value object that represents metadata for sequences.
005 *
006 * <p>© Copyright 2007 <a href='http://sptci.com/' target='_new'>Sans Pareil Technologies, Inc.</a></p>
007 * @author Rakesh Vidyadharan 2007-09-28
008 * @version $Id: SequenceMetaData.java 4123 2008-05-25 21:49:01Z rakesh $
009 */
010 public class SequenceMetaData extends ObjectMetaData
011 {
012 /** The data type for the sequence. */
013 private String dataType;
014
015 /** The minimum value of the sequence. */
016 private String minimum;
017
018 /** The maximum value of the sequence. */
019 private String maximum;
020
021 /** The value by which the sequence is incremented. */
022 private int increment = 1;
023
024 /** The cycle policy for the sequence after hitting maximum value */
025 private String cyclePolicy;
026
027 /**
028 * Returns {@link #dataType}.
029 *
030 * @return The value/reference of/to dataType.
031 */
032 public String getDataType()
033 {
034 return dataType;
035 }
036
037 /**
038 * Set {@link #dataType}.
039 *
040 * @param dataType The value to set.
041 */
042 protected void setDataType( final String dataType )
043 {
044 this.dataType = dataType;
045 }
046
047 /**
048 * Returns {@link #minimum}.
049 *
050 * @return The value/reference of/to minimum.
051 */
052 public String getMinimum()
053 {
054 return minimum;
055 }
056
057 /**
058 * Set {@link #minimum}.
059 *
060 * @param minimum The value to set.
061 */
062 protected void setMinimum( final String minimum )
063 {
064 this.minimum = minimum;
065 }
066
067 /**
068 * Returns {@link #maximum}.
069 *
070 * @return The value/reference of/to maximum.
071 */
072 public String getMaximum()
073 {
074 return maximum;
075 }
076
077 /**
078 * Set {@link #maximum}.
079 *
080 * @param maximum The value to set.
081 */
082 protected void setMaximum( final String maximum )
083 {
084 this.maximum = maximum;
085 }
086
087 /**
088 * Returns {@link #increment}.
089 *
090 * @return The value/reference of/to increment.
091 */
092 public int getIncrement()
093 {
094 return increment;
095 }
096
097 /**
098 * Set {@link #increment}.
099 *
100 * @param increment The value to set.
101 */
102 protected void setIncrement( final int increment )
103 {
104 this.increment = increment;
105 }
106
107 /**
108 * Returns {@link #cyclePolicy}.
109 *
110 * @return The value/reference of/to cyclePolicy.
111 */
112 public String getCyclePolicy()
113 {
114 return cyclePolicy;
115 }
116
117 /**
118 * Set {@link #cyclePolicy}.
119 *
120 * @param cyclePolicy The value to set.
121 */
122 protected void setCyclePolicy( final String cyclePolicy )
123 {
124 this.cyclePolicy = cyclePolicy;
125 }
126 }