Class CacheObjectKey


  • public class CacheObjectKey
    extends Object
    Author:
    Shalini M
    • Field Detail

      • statementType

        protected String statementType
      • resultSetType

        protected int resultSetType
      • resultSetConcurrency

        protected int resultSetConcurrency
      • resultSetHoldability

        protected int resultSetHoldability
      • autoGeneratedKeys

        protected int autoGeneratedKeys
      • columnIndexes

        protected int[] columnIndexes
      • columnNames

        protected String[] columnNames
    • Constructor Detail

      • CacheObjectKey

        public CacheObjectKey​(String sql,
                              String statementType,
                              int resultSetType,
                              int resultSetConcurrency)
      • CacheObjectKey

        public CacheObjectKey​(String sql,
                              String statementType,
                              int resultSetType,
                              int resultSetConcurrency,
                              int resultSetHoldability)
      • CacheObjectKey

        public CacheObjectKey​(String sql,
                              String statementType,
                              int[] columnIndexes)
      • CacheObjectKey

        public CacheObjectKey​(String sql,
                              String statementType,
                              String[] columnNames)
      • CacheObjectKey

        public CacheObjectKey​(String sql,
                              String statementType,
                              int autoGeneratedKeys)
      • CacheObjectKey

        public CacheObjectKey()
    • Method Detail

      • getColumnNames

        public String[] getColumnNames()
        Get the value of columnNames
        Returns:
        the value of columnNames
      • setColumnNames

        public void setColumnNames​(String[] columnNames)
        Set the value of columnNames
        Parameters:
        columnNames - new value of columnNames
      • getColumnIndexes

        public int[] getColumnIndexes()
        Get the value of columnIndexes
        Returns:
        the value of columnIndexes
      • setColumnIndexes

        public void setColumnIndexes​(int[] columnIndexes)
        Set the value of columnIndexes
        Parameters:
        columnIndexes - new value of columnIndexes
      • getAutoGeneratedKeys

        public int getAutoGeneratedKeys()
      • setAutoGeneratedKeys

        public void setAutoGeneratedKeys​(int autoGeneratedKeys)
      • getResultSetConcurrency

        public int getResultSetConcurrency()
        Get the value of resultSetConcurrency
        Returns:
        the value of resultSetConcurrency
      • setResultSetConcurrency

        public void setResultSetConcurrency​(int resultSetConcurrency)
        Set the value of resultSetConcurrency
        Parameters:
        resultSetConcurrency - new value of resultSetConcurrency
      • getResultSetType

        public int getResultSetType()
        Get the value of resultSetType
        Returns:
        the value of resultSetType
      • setResultSetType

        public void setResultSetType​(int resultSetType)
        Set the value of resultSetType
        Parameters:
        resultSetType - new value of resultSetType
      • getResultSetHoldability

        public int getResultSetHoldability()
        Get the value of resultSetHoldability
        Returns:
        the value of resultSetHoldability
      • setResultSetHoldability

        public void setResultSetHoldability​(int resultSetHoldability)
        Set the value of resultSetHoldability
        Parameters:
        resultSetHoldability - new value of resultSetHoldability
      • equals

        public boolean equals​(Object obj)
        Check for the equality of the CacheObjectKey with the object passed by 1. comparing the sql string values 2. comparing the statement type values 3. comapring the getClass() values
        Overrides:
        equals in class Object
        Parameters:
        obj - obj which is to be checked against this object
        Returns:
        boolean
      • hashCode

        public int hashCode()
        Generate hashCode for this object using the sql and statementType fields
        Overrides:
        hashCode in class Object
        Returns:
        has integer value
      • getStatementType

        public String getStatementType()
        Get the value of statementType
        Returns:
        the value of statementType
      • setStatementType

        public void setStatementType​(String statementType)
        Set the value of statementType
        Parameters:
        statementType - new value of statementType
      • getSql

        public String getSql()
        Get the value of sql
        Returns:
        the value of sql
      • setSql

        public void setSql​(String sql)
        Set the value of sql
        Parameters:
        sql - new value of sql