Package com.jk.data.vendors.h2
Class H2DataAccess
java.lang.Object
com.jk.data.dataaccess.core.JKDataAccessImpl
com.jk.data.vendors.h2.H2DataAccess
- All Implemented Interfaces:
 JKDataAccessService
This class provides H2-specific functionality for data access operations.
 
 It extends the JKDataAccessImpl class.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Field Summary
Fields inherited from class com.jk.data.dataaccess.core.JKDataAccessImpl
acceptedTimeInMillis, bufferSize, logger, maxAcceptedTimeInMillis - 
Constructor Summary
ConstructorsConstructorDescriptionH2DataAccess(JKDataSource dataSource) This method constructs a newH2DataAccesswith the provided data source. - 
Method Summary
Modifier and TypeMethodDescriptiondescribeTable(String name) This method retrieves data about a database table and returns it as a map of column names to their corresponding data types.This method retrieves the current system date and time from the database.voidThis method runs a SQL script from a specified file.Methods inherited from class com.jk.data.dataaccess.core.JKDataAccessImpl
addQueryLog, beginTransaction, call, call, close, close, close, close, close, close, closeTransaction, dropTable, execute, executeQueryAsArray, executeQueryAsCachedRowSet, executeQueryAsIdValue, executeQueryAsList, executeQueryAsString, executeQueryAsString, executeSingleOutputQuery, executeUpdate, executeUpdate, executeUpdate, find, findAndCacheRecord, findRecord, findRecord, getCaller, getConnection, getConnection, getDataSource, getGeneratedKey, getList, getList, getList, getListAndCache, getNextId, getNextId, getNextId, getNextId, getRowsCount, isInTransaction, isTableExists, loadSql, prepareQueryStatement, prepareQueryStatement, prepareStatement, prepareStatement, prepareStatement, printRecordResultSet, printRecordResultSet, resetCache, setParams, setSession, writeLogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jk.data.dataaccess.core.JKDataAccessService
callAsSingleOutput, executeQueryAsDouble, executeQueryAsInteger, executeQueryAsListOfObjects, executeQueryAsListOfObjects, executeQueryAsLong, executeQueryAsMap, executeQueryAsRow, getTenantId 
- 
Constructor Details
- 
H2DataAccess
This method constructs a newH2DataAccesswith the provided data source.- Parameters:
 dataSource- Specifies the data source.
 
 - 
 - 
Method Details
- 
runScript
This method runs a SQL script from a specified file.- Specified by:
 runScriptin interfaceJKDataAccessService- Overrides:
 runScriptin classJKDataAccessImpl- Parameters:
 fileName- Specifies the name of the file containing the SQL script to execute.
 - 
getSystemDate
This method retrieves the current system date and time from the database.- Specified by:
 getSystemDatein interfaceJKDataAccessService- Overrides:
 getSystemDatein classJKDataAccessImpl- Returns:
 - a 
Dateobject representing the current system date and time 
 - 
describeTable
This method retrieves data about a database table and returns it as a map of column names to their corresponding data types.- Specified by:
 describeTablein interfaceJKDataAccessService- Overrides:
 describeTablein classJKDataAccessImpl- Parameters:
 name- Specifies the name of the table to describe.- Returns:
 - the map containing column names as keys and their corresponding data types as values.
 
 
 -