...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
/** * Returns the next sequence number of a bank branch. * * @param dto - the bank branch to return the next sequence number for * @return the next sequence number of the bank branch * @throws Exception */ @Override protected String getSequenceNumber(CRMDO dto) throws Exception { //No sequence number must be returned return null; } |
Use getNextSequenceNumber getNextNumber(String tableName) method which is implemented in super class CRMBO.javain com.crm.businessobject.platform.CRMBONumberSchemeBean, to get the next sequence number of the data object.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
/** * Returns the next sequence number of an account definition. * * @param dto - the account definition to return the next sequence number for * @return the next sequence number of the account definition * @throws Exception */ @Override protected String getSequenceNumber(CRMDO dto) throws Exception { return getNextSequenceNumber(SequenceNumber.ACCDEFINITIONSnumberSchemeBean.getNextNumber("JOBS"); } |
This method returns a list of the data object's mandatory fields (fields that should be always set). This method is called by abstract functionality to validate that all mandatory fields are set.
...