Package com.io7m.cardant.database.api

# Class CADatabaseUserUpdates

java.lang.Object
com.io7m.cardant.database.api.CADatabaseUserUpdates

public final class CADatabaseUserUpdates extends Object
Functions to update users.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CAUser`
  `userMerge(CADatabaseConnectionType connection, CAUser user)`
  Merge the given user with the user in the database.
  `static CAUser`
  `userMerge(CADatabaseTransactionType transaction, CAUser user)`
  Merge the given user with the user in the database.
  `static CAUser`
  `userMerge(CADatabaseType database, CAUser user)`
  Merge the given user with the user in the database.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### userMerge

    public static CAUser userMerge(CADatabaseType database, CAUser user) throws CADatabaseException
    Merge the given user with the user in the database.
    Parameters:
      `database` - The database
      `user` - The user
    Returns:
      The merged user
    Throws:
      `CADatabaseException` - On errors

  - ### userMerge

    public static CAUser userMerge(CADatabaseConnectionType connection, CAUser user) throws CADatabaseException
    Merge the given user with the user in the database.
    Parameters:
      `connection` - The database connection
      `user` - The user
    Returns:
      The merged user
    Throws:
      `CADatabaseException` - On errors

  - ### userMerge

    public static CAUser userMerge(CADatabaseTransactionType transaction, CAUser user) throws CADatabaseException
    Merge the given user with the user in the database.
    Parameters:
      `transaction` - The database transaction
      `user` - The user
    Returns:
      The merged user
    Throws:
      `CADatabaseException` - On errors