psdi.security

Class ConnectionKeyLight

  • java.lang.Object
    • java.lang.ref.Reference
      • java.lang.ref.PhantomReference
        • psdi.security.ConnectionKeyLight


  • public class ConnectionKeyLight
    extends java.lang.ref.PhantomReference
    The object that would be used by dbmananger to hold the reference to ConRef instead of the ConnectionKey, so that the connectionKey can be garbage collected and upon its GC, the system can know how to clean up the connections if not closed properly.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      long secondID 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean commitOnConnectionFree()
      Whether to commit or rollback the db connection when the connection is freed (i.e.
      boolean equals(java.lang.Object obj)
      Compares this object against the specified object.
      java.lang.String getLoginUserName() 
      int getTenantID() 
      java.rmi.server.UID getUID() 
      int hashCode()
      Returns a hashcode for this ConnectionKey.
      boolean isPreview() 
      • Methods inherited from class java.lang.ref.PhantomReference

        get
      • Methods inherited from class java.lang.ref.Reference

        clear, enqueue, isEnqueued
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • secondID

        public long secondID
    • Method Detail

      • hashCode

        public int hashCode()
        Returns a hashcode for this ConnectionKey. uid hashcode + inetaddress hashcode.
        Overrides:
        hashCode in class java.lang.Object
      • getUID

        public java.rmi.server.UID getUID()
      • isPreview

        public boolean isPreview()
      • getLoginUserName

        public java.lang.String getLoginUserName()
      • commitOnConnectionFree

        public boolean commitOnConnectionFree()
        Whether to commit or rollback the db connection when the connection is freed (i.e. returned to the pool). If true, then the db connection is committed before it is returned to the pool. If false, then the db connection is rolled back before it is returned to the pool. The system default is to commit on free.
      • getTenantID

        public int getTenantID()
      • equals

        public boolean equals(java.lang.Object obj)
        Compares this object against the specified object. The result is true if and only if the argument is not null and it represents the same Connection key as this object.
        Overrides:
        equals in class java.lang.Object