public void endConfiguration() { if (!isPartitioned()) conf.getConfigurationLog().warn(_loc.get("partition-cache-no-config")); }
public void endConfiguration() { if (!isPartitioned()) conf.getConfigurationLog().warn(_loc.get("partition-cache-no-config")); }
public void endConfiguration() { if (!isPartitioned()) conf.getConfigurationLog().warn(_loc.get("partition-cache-no-config")); }
public void endConfiguration() { if (!isPartitioned()) conf.getConfigurationLog().warn(_loc.get("partition-cache-no-config")); }
/** * Parse id-class. */ protected boolean startIdClass(Attributes attrs) throws SAXException { if (!isMetaDataMode()) return false; ClassMetaData meta = (ClassMetaData) currentElement(); String cls = attrs.getValue("class"); Class<?> idCls = null; try { idCls = classForName(cls); } catch (Throwable t) { throw getException(_loc.get("invalid-id-class", meta, cls), t); } if (!Serializable.class.isAssignableFrom(idCls)) { _conf.getConfigurationLog().warn(_loc.get("id-class-not-serializable", idCls, _cls)); } meta.setObjectIdType(idCls, true); return true; }
/** * Parse id-class. */ protected boolean startIdClass(Attributes attrs) throws SAXException { if (!isMetaDataMode()) return false; ClassMetaData meta = (ClassMetaData) currentElement(); String cls = attrs.getValue("class"); Class<?> idCls = null; try { idCls = classForName(cls); } catch (Throwable t) { throw getException(_loc.get("invalid-id-class", meta, cls), t); } if (!Serializable.class.isAssignableFrom(idCls)) { _conf.getConfigurationLog().warn(_loc.get("id-class-not-serializable", idCls, _cls)); } meta.setObjectIdType(idCls, true); return true; }
/** * Parse id-class. */ protected boolean startIdClass(Attributes attrs) throws SAXException { if (!isMetaDataMode()) return false; ClassMetaData meta = (ClassMetaData) currentElement(); String cls = attrs.getValue("class"); Class<?> idCls = null; try { idCls = classForName(cls); } catch (Throwable t) { throw getException(_loc.get("invalid-id-class", meta, cls), t); } if (!Serializable.class.isAssignableFrom(idCls)) { _conf.getConfigurationLog().warn(_loc.get("id-class-not-serializable", idCls, _cls)); } meta.setObjectIdType(idCls, true); return true; }
/** * Parse id-class. */ protected boolean startIdClass(Attributes attrs) throws SAXException { if (!isMetaDataMode()) return false; ClassMetaData meta = (ClassMetaData) currentElement(); String cls = attrs.getValue("class"); Class<?> idCls = null; try { idCls = classForName(cls); } catch (Throwable t) { throw getException(_loc.get("invalid-id-class", meta, cls), t); } if (!Serializable.class.isAssignableFrom(idCls)) { _conf.getConfigurationLog().warn(_loc.get("id-class-not-serializable", idCls, _cls)); } meta.setObjectIdType(idCls, true); return true; }
/** * Either throw a user exception or add the configuration to the given list, * based on <code>isLenient</code>. */ private void handleBadConnection(boolean isLenient, Slice slice, Throwable ex) { OpenJPAConfiguration conf = slice.getConfiguration(); String url = conf.getConnectionURL(); Log log = conf.getConfigurationLog(); if (isLenient) { if (ex != null) { log.warn(_loc.get("slice-connect-known-warn", slice, url, ex.getCause())); } else { log.warn(_loc.get("slice-connect-warn", slice, url)); } } else if (ex != null) { throw new UserException(_loc.get("slice-connect-known-error", slice, url, ex), ex.getCause()); } else { throw new UserException(_loc.get("slice-connect-error", slice, url)); } }
/** * Either throw a user exception or add the configuration to the given list, * based on <code>isLenient</code>. */ private void handleBadConnection(boolean isLenient, Slice slice, Throwable ex) { OpenJPAConfiguration conf = slice.getConfiguration(); String url = conf.getConnectionURL(); Log log = conf.getConfigurationLog(); if (isLenient) { if (ex != null) { log.warn(_loc.get("slice-connect-known-warn", slice, url, ex.getCause())); } else { log.warn(_loc.get("slice-connect-warn", slice, url)); } } else if (ex != null) { throw new UserException(_loc.get("slice-connect-known-error", slice, url, ex), ex.getCause()); } else { throw new UserException(_loc.get("slice-connect-error", slice, url)); } }
/** * Either throw a user exception or add the configuration to the given list, * based on <code>isLenient</code>. */ private void handleBadConnection(boolean isLenient, Slice slice, Throwable ex) { OpenJPAConfiguration conf = slice.getConfiguration(); String url = conf.getConnectionURL(); Log log = conf.getConfigurationLog(); if (isLenient) { if (ex != null) { log.warn(_loc.get("slice-connect-known-warn", slice, url, ex.getCause())); } else { log.warn(_loc.get("slice-connect-warn", slice, url)); } } else if (ex != null) { throw new UserException(_loc.get("slice-connect-known-error", slice, url, ex), ex.getCause()); } else { throw new UserException(_loc.get("slice-connect-error", slice, url)); } }
Log log = conf.getConfigurationLog(); boolean brc = false;
Log log = conf.getConfigurationLog(); boolean brc = false;
Log log = conf.getConfigurationLog(); boolean brc = false;
Log log = conf.getConfigurationLog(); boolean brc = false;