public Sequence(Schema schema,int id,String name,Long startValue,Long increment,Long cacheSize,Long minValue,Long maxValue,boolean cycle,boolean belongsToTable){
  initSchemaObjectBase(schema,id,name,Trace.SEQUENCE);
  this.increment=increment != null ? increment : 1;
  this.minValue=minValue != null ? minValue : getDefaultMinValue(startValue,this.increment);
  this.maxValue=maxValue != null ? maxValue : getDefaultMaxValue(startValue,this.increment);
  this.value=startValue != null ? startValue : getDefaultStartValue(this.increment);
  this.valueWithMargin=value;
  this.cacheSize=cacheSize != null ? Math.max(1,cacheSize) : DEFAULT_CACHE_SIZE;
  this.cycle=cycle;
  this.belongsToTable=belongsToTable;
  if (!isValid(this.value,this.minValue,this.maxValue,this.increment)) {
    throw DbException.get(ErrorCode.SEQUENCE_ATTRIBUTES_INVALID,name,String.valueOf(this.value),String.valueOf(this.minValue),String.valueOf(this.maxValue),String.valueOf(this.increment));
  }
}

public Sequence ( Schema schema , int id , String name , Long startValue , Long increment , Long cacheSize , Long minValue , Long maxValue , boolean cycle , boolean belongsToTable ) { initSchemaObjectBase ( schema , id , name , Trace . SEQUENCE ) ; this . increment = increment != null ? increment : 1 ; this . minValue = minValue != null ? minValue : getDefaultMinValue ( startValue , this . increment ) ; this . maxValue = maxValue != null ? maxValue : getDefaultMaxValue ( startValue , this . increment ) ; this . value = startValue != null ? startValue : getDefaultStartValue ( this . increment ) ; this . valueWithMargin = value ; this . cacheSize = cacheSize != null ? Math . max ( 1 , cacheSize ) : DEFAULT_CACHE_SIZE ; this . cycle = cycle ; this . belongsToTable = belongsToTable ; if ( ! isValid ( this . value , this . minValue , this . maxValue , this . increment ) ) { throw DbException . get ( ErrorCode . SEQUENCE_ATTRIBUTES_INVALID , name , String . valueOf ( this . value ) , String . valueOf ( this . minValue ) , String . valueOf ( this . maxValue ) , String . valueOf ( this . increment ) ) ; } }
creates a new sequence .
