Interface TurbineRolePermissionPeerMapper

All Known Implementing Classes:
TorqueTurbineRolePermission, TurbineRolePermission

public interface TurbineRolePermissionPeerMapper
This extension to the marker interface Peer is to allow for swappable Peer implementations in Turbine Torque Manager Implementations.
Version:
$Id$
Author:
Georg Kallidis
  • Method Summary

    Modifier and Type Method Description
    Permission getTurbinePermission()
    Returns the associated TurbinePermission object.
    TurbinePermission getTurbinePermission​(Connection connection)
    Return the associated TurbinePermission object If it was not retrieved before, the object is retrieved from the database using the passed connection
    Role getTurbineRole()
    Returns the associated TurbineRole object.
    Role getTurbineRole​(Connection connection)
    Return the associated TurbineRole object If it was not retrieved before, the object is retrieved from the database using the passed connection
  • Method Details

    • getTurbineRole

      Role getTurbineRole() throws org.apache.torque.TorqueException
      Returns the associated TurbineRole object. If it was not retrieved before, the object is retrieved from the database
      Returns:
      the associated TurbineRole object
      Throws:
      org.apache.torque.TorqueException - if any database error occurs when reading from the database fails.
    • getTurbineRole

      Role getTurbineRole​(Connection connection) throws org.apache.torque.TorqueException
      Return the associated TurbineRole object If it was not retrieved before, the object is retrieved from the database using the passed connection
      Parameters:
      connection - the connection used to retrieve the associated object from the database, if it was not retrieved before
      Returns:
      the associated TurbineRole object
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • getTurbinePermission

      Permission getTurbinePermission() throws org.apache.torque.TorqueException
      Returns the associated TurbinePermission object. If it was not retrieved before, the object is retrieved from the database
      Returns:
      the associated TurbinePermission object
      Throws:
      org.apache.torque.TorqueException - when reading from the database fails.
    • getTurbinePermission

      TurbinePermission getTurbinePermission​(Connection connection) throws org.apache.torque.TorqueException
      Return the associated TurbinePermission object If it was not retrieved before, the object is retrieved from the database using the passed connection
      Parameters:
      connection - the connection used to retrieve the associated object from the database, if it was not retrieved before
      Returns:
      the associated TurbinePermission object
      Throws:
      org.apache.torque.TorqueException - If a problem occurs with the get[$filedType] method.