Package com.nt.udc.db
Interface SqlRepository
public interface SqlRepository
-
Method Summary
Modifier and TypeMethodDescriptionint[]This method is used to persist a single SqlPersistable object to the repository.int[]persist(SqlPersistable[] sps) This method is used to do a bulk persist of an array of SqlPersistable objects into the repository.
-
Method Details
-
persist
This method is used to persist a single SqlPersistable object to the repository.- Parameters:
sp- The single SqlPersistable object.- Returns:
- An array representing the number of rows affected by each persistence action.
- Throws:
com.nt.common.exceptions.APIExceptionException
-
persist
This method is used to do a bulk persist of an array of SqlPersistable objects into the repository.- Parameters:
sps- The array of SqlPersistable objects.- Returns:
- An array representing the number of rows affected by each persistence action.
- Throws:
com.nt.common.exceptions.APIExceptionException
-