Class ClientInfo
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
-
-
Method Details
-
user
- Returns:
- the application user, not the database user
-
clientType
- Returns:
- the client type
-
host
-
equals
-
hashCode
-
toString
-