Class TorqueAbstractSecurityEntity

    • Method Detail

      • getEntityId

        public abstract Integer getEntityId()
        Get a numeric entity id
        Returns:
        numeric id of this entity
      • setEntityId

        public abstract void setEntityId​(Integer id)
                                  throws org.apache.torque.TorqueException
        Set a numeric entity id
        Parameters:
        id - numeric id of this entity
        Throws:
        org.apache.torque.TorqueException - database not found exception
      • getEntityName

        public abstract String getEntityName()
        Get the name of the entity
        Returns:
        name of this entity
      • setEntityName

        public abstract void setEntityName​(String name)
        Set the name of the entity
        Parameters:
        name - the name of the entity
      • retrieveAttachedObjects

        public abstract void retrieveAttachedObjects​(Connection con,
                                                     Boolean lazy)
                                              throws DataBackendException,
                                                     org.apache.torque.TorqueException
        Retrieve attached objects such as users, permissions, ...
        Parameters:
        con - A database connection
        lazy - if true, may load some or all relationships later
        Throws:
        org.apache.torque.TorqueException - database not found exception
        DataBackendException
      • update

        public abstract void update​(Connection con)
                             throws org.apache.torque.TorqueException
        Update this instance to the database with all dependent objects
        Parameters:
        con - A database connection
        Throws:
        org.apache.torque.TorqueException - database not found exception
      • delete

        public abstract void delete()
                             throws org.apache.torque.TorqueException
        Delete this entity
        Throws:
        org.apache.torque.TorqueException - if any database error occurs if any database operation fails