Package org.g4studio.core.id.fomater

Examples of org.g4studio.core.id.fomater.DefaultSequenceFormater


  public DefaultIDGenerator getDefaultIDGenerator(){
    Dto dto = new BaseDto();
    dto.put("fieldname", getFieldname());
    dto = (BaseDto)g4Dao.queryForObject("IdGenerator.getEaSequenceByFieldName", dto);
    DefaultIDGenerator idGenerator = new DefaultIDGenerator();
    DefaultSequenceFormater sequenceFormater = new DefaultSequenceFormater();
    sequenceFormater.setPattern(dto.getAsString("pattern"));
    DefaultSequenceGenerator sequenceGenerator = new DefaultSequenceGenerator(getFieldname());
    SequenceStorer sequenceStorer = new DBSequenceStorer();
    sequenceGenerator.setSequenceStorer(sequenceStorer);
    sequenceGenerator.setCache(catche);
    idGenerator.setSequenceFormater(sequenceFormater);
View Full Code Here

TOP

Related Classes of org.g4studio.core.id.fomater.DefaultSequenceFormater

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.