java.lang.Object
is.codion.common.db.database.ClientInfo
Identifies the client on whose behalf a database connection is being used, for
Database.clientInfo(java.sql.Connection, ClientInfo).
Note that user() is the application's user, not the database user. The two coincide
only when clients log in to the database directly; the whole point of carrying this is the case where
they do not, and the database would otherwise see nothing but the shared user every client shares.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClientInfo
- Parameters:
user- the application user the connection is being used on behalf ofclientType- the client typehost- the host the client is running on, null if unknown
-
-
Method Details
-
user
- Returns:
- the application user, not the database user
-
clientType
- Returns:
- the client type
-
host
- Returns:
- the client host, an empty
Optionalif unknown
-
equals
-
hashCode
public int hashCode() -
toString
-