Class JDBCDiskCacheAttributes

All Implemented Interfaces:
Serializable, Cloneable, AuxiliaryCacheAttributes, IDiskCacheAttributes
Direct Known Subclasses:
MySQLDiskCacheAttributes

The configurator will set these values based on what is in the cache.ccf file.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setUserName

      public void setUserName(String userName)
      Parameters:
      userName - The userName to set.
    • getUserName

      public String getUserName()
      Returns:
      Returns the userName.
    • setPassword

      public void setPassword(String password)
      Parameters:
      password - The password to set.
    • getPassword

      public String getPassword()
      Returns:
      Returns the password.
    • setUrl

      public void setUrl(String url)
      Parameters:
      url - The url to set.
    • getUrl

      public String getUrl()
      Returns:
      Returns the url.
    • setDatabase

      public void setDatabase(String database)
      This is appended to the url.
      Parameters:
      database - The database to set.
    • getDatabase

      public String getDatabase()
      Returns:
      Returns the database.
    • setDriverClassName

      public void setDriverClassName(String driverClassName)
      Parameters:
      driverClassName - The driverClassName to set.
    • getDriverClassName

      Returns:
      Returns the driverClassName.
    • getJndiPath

      public String getJndiPath()
      Returns:
      the jndiPath
    • setJndiPath

      public void setJndiPath(String jndiPath)
      Parameters:
      jndiPath - the jndiPath to set
    • getJndiTTL

      public long getJndiTTL()
      Returns:
      the jndiTTL
    • setJndiTTL

      public void setJndiTTL(long jndiTTL)
      Parameters:
      jndiTTL - the jndiTTL to set
    • setTableName

      public void setTableName(String tableName)
      Parameters:
      tableName - The tableName to set.
    • getTableName

      public String getTableName()
      Returns:
      Returns the tableName.
    • setTestBeforeInsert

      public void setTestBeforeInsert(boolean testBeforeInsert)
      If this is true then the disk cache will check to see if the item already exists in the database. If it is false, it will try to insert. If the insert fails it will try to update.

      Parameters:
      testBeforeInsert - The testBeforeInsert to set.
    • isTestBeforeInsert

      public boolean isTestBeforeInsert()
      Returns:
      Returns the testBeforeInsert.
    • setMaxTotal

      public void setMaxTotal(int maxActive)
      Parameters:
      maxActive - The maxTotal to set.
    • getMaxTotal

      public int getMaxTotal()
      Returns:
      Returns the maxTotal.
    • setShrinkerIntervalSeconds

      public void setShrinkerIntervalSeconds(int shrinkerIntervalSecondsArg)
      Parameters:
      shrinkerIntervalSecondsArg - The shrinkerIntervalSeconds to set.
    • getShrinkerIntervalSeconds

      Returns:
      Returns the shrinkerIntervalSeconds.
    • setUseDiskShrinker

      public void setUseDiskShrinker(boolean useDiskShrinker)
      Parameters:
      useDiskShrinker - The useDiskShrinker to set.
    • isUseDiskShrinker

      public boolean isUseDiskShrinker()
      Returns:
      Returns the useDiskShrinker.
    • setConnectionPoolName

      public void setConnectionPoolName(String connectionPoolName)
      Parameters:
      connectionPoolName - the connectionPoolName to set
    • getConnectionPoolName

      Returns:
      the connectionPoolName
    • toString

      public String toString()
      For debugging.

      Overrides:
      toString in class AbstractDiskCacheAttributes
      Returns:
      debug string with most of the properties.