![JAR search and dependency download from the Maven repository](/logo.png)
com.ibatis.common.logging.jakarta.JakartaCommonsLoggingImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbatis Show documentation
Show all versions of jbatis Show documentation
The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.
The newest version!
package com.ibatis.common.logging.jakarta;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class JakartaCommonsLoggingImpl implements com.ibatis.common.logging.ILog {
private Log log;
public JakartaCommonsLoggingImpl(String clazz) {
log = LogFactory.getLog(clazz);
}
public boolean isDebugEnabled() {
if (log == null)
return false;
return log.isDebugEnabled();
}
public void error(String s, Throwable e) {
if (log != null)
log.error(s, e);
}
public void error(String s) {
if (log != null)
log.error(s);
}
public void trace(String s) {
if (log != null)
log.trace(s);
}
public void debug(String s) {
if (log != null)
log.debug(s);
}
public void info(String s) {
if (log != null)
log.info(s);
}
public void warn(String s) {
if (log != null)
log.warn(s);
}
public boolean isTraceEnabled() {
if (log == null)
return false;
return log.isTraceEnabled();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy