@@ -187,7 +187,7 @@ public Sequence addParameters(Collection<? extends Parameter> parameters) {
187187 * The available parameters to a sequence
188188 */
189189 public enum ParameterType {
190- INCREMENT_BY , INCREMENT , START_WITH , START , RESTART_WITH , MAXVALUE , NOMAXVALUE , MINVALUE , NOMINVALUE , CYCLE , NOCYCLE , CACHE , NOCACHE , ORDER , NOORDER , KEEP , NOKEEP , SESSION , GLOBAL , NO_MINVALUE , NO_MAXVALUE , NO_CYCLE ;
190+ INCREMENT_BY , INCREMENT , START_WITH , START , RESTART_WITH , MAXVALUE , NOMAXVALUE , MINVALUE , NOMINVALUE , CYCLE , NOCYCLE , CACHE , NOCACHE , ORDER , NOORDER , KEEP , NOKEEP , SESSION , GLOBAL , NO_MINVALUE , NO_MAXVALUE , NO_CYCLE , SEQUENCE_NAME ;
191191
192192 public static ParameterType from (String type ) {
193193 return Enum .valueOf (ParameterType .class , type .toUpperCase (Locale .ROOT ));
@@ -201,6 +201,7 @@ public static class Parameter implements java.io.Serializable {
201201
202202 private final ParameterType option ;
203203 private Long value ;
204+ private Sequence sequenceName ;
204205
205206 public Parameter (ParameterType option ) {
206207 this .option = option ;
@@ -214,6 +215,20 @@ public ParameterType getOption() {
214215 return option ;
215216 }
216217
218+ /** The sequence named by an identity declaration's SEQUENCE NAME option. */
219+ public Sequence getSequenceName () {
220+ return sequenceName ;
221+ }
222+
223+ public void setSequenceName (Sequence sequenceName ) {
224+ this .sequenceName = sequenceName ;
225+ }
226+
227+ public Parameter withSequenceName (Sequence sequenceName ) {
228+ setSequenceName (sequenceName );
229+ return this ;
230+ }
231+
217232 @ Override
218233 public String toString () {
219234 return formatParameter ();
@@ -225,6 +240,8 @@ public void setValue(Long value) {
225240
226241 public String formatParameter () {
227242 switch (option ) {
243+ case SEQUENCE_NAME :
244+ return "SEQUENCE NAME " + sequenceName .getFullyQualifiedName ();
228245 case INCREMENT_BY :
229246 return prefix ("INCREMENT BY" );
230247 case INCREMENT :
0 commit comments