1 19 20 package org.apache.avalon.excalibur.datasource.ids; 21 22 import java.math.BigDecimal ; 23 24 import org.apache.avalon.framework.component.Component; 25 26 32 public interface IdGenerator 33 extends Component 34 { 35 38 String ROLE = IdGenerator.class.getName(); 39 40 45 BigDecimal getNextBigDecimalId() 46 throws IdException; 47 48 55 long getNextLongId() 56 throws IdException; 57 58 65 int getNextIntegerId() 66 throws IdException; 67 68 75 short getNextShortId() 76 throws IdException; 77 78 85 byte getNextByteId() 86 throws IdException; 87 } 88 89 | Popular Tags |