Package com.nt.udc.db

Interface SqlRepository


public interface SqlRepository
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    This method is used to persist a single SqlPersistable object to the repository.
    int[]
    This method is used to do a bulk persist of an array of SqlPersistable objects into the repository.
  • Method Details

    • persist

      int[] persist(SqlPersistable sp) throws com.nt.common.exceptions.APIException, Exception
      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

      int[] persist(SqlPersistable[] sps) throws com.nt.common.exceptions.APIException, Exception
      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