congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SrvDatabase.getLogger
Code IndexAdd Tabnine to your IDE (free)

How to use
getLogger
method
in
org.beigesoft.jdbc.service.SrvDatabase

Best Java code snippets using org.beigesoft.jdbc.service.SrvDatabase.getLogger (Showing top 12 results out of 315)

origin: org.beigesoft/beige-jdbc

/**
 * <p>Rollback transaction to savepoint.</p>
 * @param pSavepointName savepoint name
 * @throws Exception - an exception
 **/
@Override
public final void
 rollBackTransaction(final String pSavepointName) throws Exception {
 getLogger().debug(SrvDatabase.class, "try to rollback to savepoint: "
  + pSavepointName);
 this.threadConnection.get().
  rollback(savepointsMap.get(pSavepointName));
 savepointsMap.remove(pSavepointName);
}
origin: org.beigesoft/beigesoft-jdbc

/**
 * <p>Rollback transaction to savepoint.</p>
 * @param pSavepointName savepoint name
 * @throws Exception - an exception
 **/
@Override
public final void
 rollBackTransaction(final String pSavepointName) throws Exception {
 if (getLogger().getIsShowDebugMessagesFor(getClass())) {
  getLogger().debug(null, SrvDatabase.class,
   "try to rollback to savepoint: " + pSavepointName);
 }
 this.threadConnection.get().
  rollback(savepointsMap.get(pSavepointName));
 savepointsMap.remove(pSavepointName);
}
origin: org.beigesoft/beigesoft-jdbc

/**
 * <p>Execute any SQL query that returns no data.
 * E.g. PRAGMA, etc.</p>
 * @param pQuery query
 * @throws Exception - an exception
 **/
@Override
public final void executeQuery(final String pQuery) throws Exception {
 Statement stmt = null;
 try {
  if (getLogger().getIsShowDebugMessagesFor(getClass())
   && getLogger().getDetailLevel() > 30000) {
   getLogger().debug(null, SrvDatabase.class, "Thread ID="
    + Thread.currentThread().getId() + ", try to execute query: "
     + pQuery);
  }
  stmt = getOrEstablishConnection().createStatement();
  stmt.executeUpdate(pQuery);
 } catch (SQLException sqle) {
  String msg = sqle.getMessage() + ", RDBMS error code "
   + sqle.getErrorCode() + ", query:\n" + pQuery;
  throw new ExceptionWithCode(ASrvDatabase.SQL_EXEC_ERROR, msg);
 } finally {
  if (stmt != null) {
   stmt.close();
  }
 }
}
origin: org.beigesoft/beigesoft-jdbc

if (getLogger().getIsShowDebugMessagesFor(getClass())
 && getLogger().getDetailLevel() > 30000) {
 getLogger().debug(null, SrvDatabase.class, "Thread ID="
  + Thread.currentThread().getId() + ", try to execute delete: "
   + query);
origin: org.beigesoft/beige-jdbc

/**
 * <p>Execute any SQL query that returns no data.
 * E.g. PRAGMA, etc.</p>
 * @param pQuery query
 * @throws Exception - an exception
 **/
@Override
public final void executeQuery(final String pQuery) throws Exception {
 Statement stmt = null;
 try {
  getLogger().debug(SrvDatabase.class, "Thread ID=" + Thread.currentThread()
   .getId() + ", try to execute query: "
   + pQuery);
  stmt = getOrEstablishConnection().createStatement();
  stmt.executeUpdate(pQuery);
 } catch (SQLException sqle) {
  String msg = sqle.getMessage() + ", RDBMS error code "
   + sqle.getErrorCode() + ", query:\n" + pQuery;
  throw new ExceptionWithCode(ASrvDatabase.SQL_EXEC_ERROR, msg);
 } finally {
  if (stmt != null) {
   stmt.close();
  }
 }
}
origin: org.beigesoft/beigesoft-jdbc

/**
 * <p>Retrieve records from DB.</p>
 * @param pSelect query SELECT
 * @return IRecordSet record set
 * @throws Exception - an exception
 **/
@Override
public final IRecordSet<ResultSet>
 retrieveRecords(final String pSelect) throws Exception {
 try {
  if (getLogger().getIsShowDebugMessagesFor(getClass())
   && getLogger().getDetailLevel() > 30000) {
   getLogger().debug(null, SrvDatabase.class, "Thread ID="
    + Thread.currentThread().getId() + ", try to retrieve records: "
     + pSelect);
  }
  final Statement stmt = getOrEstablishConnection().createStatement();
  final ResultSet rs = stmt.executeQuery(pSelect);
  return new RecordSetJdbc(rs, stmt);
 } catch (SQLException sqle) {
  String msg = sqle.getMessage() + ", RDBMS error code "
   + sqle.getErrorCode() + ", query:\n" + pSelect;
  throw new ExceptionWithCode(ASrvDatabase.SQL_EXEC_ERROR, msg);
 }
}
origin: org.beigesoft/beige-jdbc

/**
 * <p>Retrieve records from DB.</p>
 * @param pSelect query SELECT
 * @return IRecordSet record set
 * @throws Exception - an exception
 **/
@Override
public final IRecordSet<ResultSet>
 retrieveRecords(final String pSelect) throws Exception {
 try {
  getLogger().debug(SrvDatabase.class, "Thread ID=" + Thread.currentThread()
   .getId() + ", try to retrieve records: "
   + pSelect);
  final Statement stmt = getOrEstablishConnection().createStatement();
  final ResultSet rs = stmt.executeQuery(pSelect);
  return new RecordSetJdbc(rs, stmt);
 } catch (SQLException sqle) {
  String msg = sqle.getMessage() + ", RDBMS error code "
   + sqle.getErrorCode() + ", query:\n" + pSelect;
  throw new ExceptionWithCode(ASrvDatabase.SQL_EXEC_ERROR, msg);
 }
}
origin: org.beigesoft/beige-jdbc

getLogger().debug(SrvDatabase.class, "Thread ID=" + Thread.currentThread()
 .getId() + ", try to execute delete: "
 + query);
origin: org.beigesoft/beigesoft-jdbc

String query = getHlpInsertUpdate().evalSqlInsert(pTable, pColumnsVals);
try {
 if (getLogger().getIsShowDebugMessagesFor(getClass())
  && getLogger().getDetailLevel() > 30000) {
  getLogger().debug(null, SrvDatabase.class, "Thread ID="
   + Thread.currentThread()
   .getId() + ", try to execute insert: "
origin: org.beigesoft/beigesoft-jdbc

 pColumnsVals, pWhere);
try {
 if (getLogger().getIsShowDebugMessagesFor(getClass())
  && getLogger().getDetailLevel() > 30000) {
  getLogger().debug(null, SrvDatabase.class, "Thread ID="
   + Thread.currentThread().getId() + ", try to execute update: "
    + query);
origin: org.beigesoft/beige-jdbc

 pColumnsVals, pWhere);
try {
 getLogger().debug(SrvDatabase.class, "Thread ID=" + Thread.currentThread()
  .getId() + ", try to execute update: "
  + query);
origin: org.beigesoft/beige-jdbc

/**
 * <p>Execute SQL INSERT that returns affected rows.
 * It is to adapt Android insert/update/delete interface.
 * </p>
 * @param pTable table name
 * @param pColumnsVals type-safe map column name - column value
 * @return row count affected
 * @throws Exception - an exception
 **/
@Override
public final long executeInsert(final String pTable,
 final ColumnsValues pColumnsVals) throws Exception {
 Statement stmt = null;
 String query = getHlpInsertUpdate().evalSqlInsert(pTable, pColumnsVals);
 try {
  getLogger().debug(SrvDatabase.class, "Thread ID=" + Thread.currentThread()
   .getId() + ", try to execute insert: "
   + query);
  stmt = getOrEstablishConnection().createStatement();
  return stmt.executeUpdate(query);
 } catch (SQLException sqle) {
  String msg = sqle.getMessage() + ", RDBMS error code "
   + sqle.getErrorCode() + ", query:\n" + query;
  throw new ExceptionWithCode(ASrvDatabase.SQL_EXEC_ERROR, msg);
 } finally {
  if (stmt != null) {
   stmt.close();
  }
 }
}
org.beigesoft.jdbc.serviceSrvDatabasegetLogger

Popular methods of SrvDatabase

  • <init>
  • getHlpInsertUpdate
    Geter for hlpInsertUpdate.
  • getOrEstablishConnection
    Getor establish connection per thread.
  • setDataSource
    Setter for dataSource.
  • setHlpInsertUpdate
    Setter for hlpInsertUpdate.
  • setLogger
  • setSrvRecordRetriever

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Runner (org.openjdk.jmh.runner)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now