H2NVCache

org.eso.ias.utils.pcache.impl.H2NVCache
See theH2NVCache companion class
object H2NVCache

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
H2NVCache.type

Members list

Type members

Classlikes

case class H2FileCache(connectionData: H2FileConnectionData) extends H2NVCache

A cache on file in the local file system. It deletes the DB in the file on exit.

A cache on file in the local file system. It deletes the DB in the file on exit.

The file will be created in a temporary folder (IAS_TMP or, if not defined the temporary folder as returned by the java.io.tmpdir property)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class H2NVCache
class Object
trait Matchable
class Any
Show all
case class H2FileConnectionData(folderName: String, fileName: String, h2DbUrl: String)

Connection data for the H2 DB on file

Connection data for the H2 DB on file

Value parameters

fileName

The file name used by H2

folderName

The folder where the files of the DB will be stored

h2DbUrl

the H2 UR

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class H2SharedFileCache(folder: String, fileName: String, userName: String, password: String) extends H2NVCache

A cache on file in the local file system that does not delete the DB on exit

A cache on file in the local file system that does not delete the DB on exit

It connects to the DB on file if it already exists so the same DB on file can be shared by different apps.

Value parameters

fileName

The name of the H@ file

folder

The folder where the DB files are

password

Password (optional)

userName

User name (optional)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class H2NVCache
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def buildH2Url(folder: String, fileName: String): H2FileConnectionData

Build the H2 URL for a file

Build the H2 URL for a file

Value parameters

fileName

The file name used by H2

folder

The folder where the files of the DB will be stored

Attributes

Returns

a tuple composed of the folder name, the file name and the H2 URL

Build a random Url for a H2 file DB in a temporary folder

Build a random Url for a H2 file DB in a temporary folder

Attributes

Returns

a random Url for the H2 database on file

Concrete fields

val buildDbSqlStatement: String

The statement to build a DB for the cache

The statement to build a DB for the cache

Attributes

val defaultPassword: String

The password for default args

The password for default args

Attributes

val defaultUserName: String

The user name for default args

The user name for default args

Attributes

val idColName: String

The name of the column with the ID

The name of the column with the ID

Attributes

val jsonStrColName: String

The name of teh column with the JSPON string

The name of teh column with the JSPON string

Attributes

val logger: Logger

The logger

The logger

Attributes

val tableName: String

The name of the table in the DB

The name of the table in the DB

Attributes

val timeStampColName: String

The name of the column for the timestamp

The name of the column for the timestamp

Attributes