Refine search
/** * Unimplemented, WAS does not provide this level of control. Log a * trace instead of throwing an exception. Rollback may be used in * some error paths, throwing another exception may result in the * original exception being lost. */ public void rollback() throws IllegalStateException, SecurityException, SystemException { if (_log.isTraceEnabled()) { _log.trace(_loc.get("was-unsupported-op", "rollback")); } }
public void destroyObject(Object obj) { // silentClose (). try { Socket s = (Socket) obj; if (log.isTraceEnabled()) log.trace(s_loc.get("tcp-close-sending-socket", _address + ":" + _port, "" + s.getLocalPort())); s.close(); } catch (Exception e) { log.warn(s_loc.get("tcp-close-socket-error", _address.getHostAddress() + ":" + _port), e); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); } }
private void setIdentifierCase(DatabaseMetaData meta) { try { // lower case identifiers is the default for the JCC and newer // Informix JDBC drivers if (meta.storesLowerCaseIdentifiers()) { schemaCase = SCHEMA_CASE_LOWER; } else if (meta.storesMixedCaseIdentifiers()) { schemaCase = SCHEMA_CASE_PRESERVE; } // otherwise, use the default (upper) } catch (SQLException e) { getLog().warn("cannot-determine-identifier-base-case"); if (getLog().isTraceEnabled()) { getLog().trace(e.toString(), e); } } }
private void loadQuery(Broker broker, QueryMetaData qmd) { try { Query q = broker.newQuery(qmd.getLanguage(), null); qmd.setInto(q); q.compile(); } catch (Exception e) { if (log.isTraceEnabled()) { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage(), e); } else { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage()); } } }
/** * Unimplemented, WAS does not provide this level of control. Log a * trace instead of throwing an exception. SetRollbackOnly may be used * in some error paths, throwing another exception may result in the * original exception being lost. */ public void setRollbackOnly() throws IllegalStateException, SystemException { if (_log.isTraceEnabled()) { _log.trace(_loc.get("was-unsupported-op", "setRollbackOnly")); } }
public void destroyObject(Object obj) { // silentClose (). try { Socket s = (Socket) obj; if (log.isTraceEnabled()) log.trace(s_loc.get("tcp-close-sending-socket", _address + ":" + _port, "" + s.getLocalPort())); s.close(); } catch (Exception e) { log.warn(s_loc.get("tcp-close-socket-error", _address.getHostAddress() + ":" + _port), e); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
protected void setDelimitedCase(DatabaseMetaData metaData) { try { if (metaData.storesMixedCaseQuotedIdentifiers()) { delimitedCase = SCHEMA_CASE_PRESERVE; } else if (metaData.storesUpperCaseQuotedIdentifiers()) { delimitedCase = SCHEMA_CASE_UPPER; } else if (metaData.storesLowerCaseQuotedIdentifiers()) { delimitedCase = SCHEMA_CASE_LOWER; } } catch (SQLException e) { getLog().warn("cannot-determine-identifier-case"); if (getLog().isTraceEnabled()) { getLog().trace(e.toString(), e); } } }
private void loadQuery(Broker broker, QueryMetaData qmd) { try { Query q = broker.newQuery(qmd.getLanguage(), null); qmd.setInto(q); q.compile(); } catch (Exception e) { if (log.isTraceEnabled()) { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage(), e); } else { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage()); } } }
/** * Unimplemented, WAS does not provide this level of control. Log a * trace instead of throwing an exception. Rollback may be used in * some error paths, throwing another exception may result in the * original exception being lost. */ public void rollback() throws IllegalStateException, SecurityException, SystemException { if (_log.isTraceEnabled()) { _log.trace(_loc.get("was-unsupported-op", "rollback")); } }
public void destroyObject(Object obj) { // silentClose (). try { Socket s = (Socket) obj; if (log.isTraceEnabled()) log.trace(s_loc.get("tcp-close-sending-socket", _address + ":" + _port, "" + s.getLocalPort())); s.close(); } catch (Exception e) { log.warn(s_loc.get("tcp-close-socket-error", _address.getHostAddress() + ":" + _port), e); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
protected void setDelimitedCase(DatabaseMetaData metaData) { try { if (metaData.storesMixedCaseQuotedIdentifiers()) { delimitedCase = SCHEMA_CASE_PRESERVE; } else if (metaData.storesUpperCaseQuotedIdentifiers()) { delimitedCase = SCHEMA_CASE_UPPER; } else if (metaData.storesLowerCaseQuotedIdentifiers()) { delimitedCase = SCHEMA_CASE_LOWER; } } catch (SQLException e) { getLog().warn("cannot-determine-identifier-case"); if (getLog().isTraceEnabled()) { getLog().trace(e.toString(), e); } } }
private void loadQuery(Broker broker, QueryMetaData qmd) { try { Query q = broker.newQuery(qmd.getLanguage(), null); qmd.setInto(q); q.compile(); } catch (Exception e) { if (log.isTraceEnabled()) { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage(), e); } else { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage()); } } }
/** * Unimplemented, WAS does not provide this level of control. Log a * trace instead of throwing an exception. SetRollbackOnly may be used * in some error paths, throwing another exception may result in the * original exception being lost. */ public void setRollbackOnly() throws IllegalStateException, SystemException { if (_log.isTraceEnabled()) { _log.trace(_loc.get("was-unsupported-op", "setRollbackOnly")); } }
public void destroyObject(Object obj) { // silentClose (). try { Socket s = (Socket) obj; if (log.isTraceEnabled()) log.trace(s_loc.get("tcp-close-sending-socket", _address + ":" + _port, "" + s.getLocalPort())); s.close(); } catch (Exception e) { log.warn(s_loc.get("tcp-close-socket-error", _address.getHostAddress() + ":" + _port), e); } }
private void logNoSetter(ClassMetaData meta, String name, Exception e) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_METADATA); if (log.isWarnEnabled()) log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName())); else if (log.isTraceEnabled()) // log the exception, if any, if we're in trace-level debugging log.warn(_loc.get("no-setter-for-getter", name, meta.getDescribedType().getName()), e); }
private void loadQuery(Broker broker, QueryMetaData qmd) { try { Query q = broker.newQuery(qmd.getLanguage(), null); qmd.setInto(q); q.compile(); } catch (Exception e) { if (log.isTraceEnabled()) { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage(), e); } else { log.warn("Skipping named query " + qmd.getName() + ": " + e.getMessage()); } } }
/** * Unimplemented, WAS does not provide this level of control. Log a * trace instead of throwing an exception. SetRollbackOnly may be used * in some error paths, throwing another exception may result in the * original exception being lost. */ public void setRollbackOnly() throws IllegalStateException, SystemException { if (_log.isTraceEnabled()) { _log.trace(_loc.get("was-unsupported-op", "setRollbackOnly")); } }