alert_swquence.append(String.format(" increment by %d",et.getNumberIncrement()));
if(et.getNumberNext()!=null)
alert_swquence.append(String.format(" restart with %d",et.getNumberNext()));
this.select(alert_swquence.toString(),null);
returnsuper.alter_sequence(et);
returnsuper.alter_sequence(et);
}
}
/**
/**
* 自定义行为[Create_sequence]用户扩展
* 自定义行为[Create_sequence]用户扩展
*
* @param et
* @param et
* @return
* @return
*/
*/
@Override
@Override
@Transactional
@Transactional
publicIr_sequencecreate_sequence(Ir_sequenceet){
publicIr_sequencecreate_sequence(Ir_sequenceet){
Stringcreate_sequence=String.format("create sequence ir_sequence_%03d increment by %s start with %s",et.getId(),et.getNumberIncrement(),et.getNumberNext());
this.select(create_sequence,null);
returnsuper.create_sequence(et);
returnsuper.create_sequence(et);
}
}
/**
/**
* 自定义行为[Drop_sequence]用户扩展
* 自定义行为[Drop_sequence]用户扩展
*
* @param et
* @param et
* @return
* @return
*/
*/
@Override
@Override
@Transactional
@Transactional
publicIr_sequencedrop_sequence(Ir_sequenceet){
publicIr_sequencedrop_sequence(Ir_sequenceet){
Stringdrop_sequence=String.format("drop sequence if exists ir_sequence_%03d restrict ",et.getId());