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.APIException
Exception
-
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.APIException
Exception
-