@Override public void substring(SQLBuffer buf, FilterValue str, FilterValue start, FilterValue end) { throw new StoreException(_loc.get("substring-not-supported", platform)); }
@Override public void substring(SQLBuffer buf, FilterValue str, FilterValue start, FilterValue end) { throw new StoreException(_loc.get("substring-not-supported", platform)); }
@Override public void indexOf(SQLBuffer buf, FilterValue str, FilterValue find, FilterValue start) { throw new StoreException(_loc.get("indexof-not-supported", platform)); }
@Override public void indexOf(SQLBuffer buf, FilterValue str, FilterValue find, FilterValue start) { throw new StoreException(_loc.get("indexof-not-supported", platform)); }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary()); throw new StoreException(e); }
/** * This method is to provide override for non-JDBC or JDBC-like * implementation of getting key from the result set. */ protected Object getKey (ResultSet rs, Column col) throws SQLException { if (!rs.next()) throw new StoreException(_loc.get("no-genkey")); Object key = rs.getObject(1); if (key == null) log.warn(_loc.get("invalid-genkey", col)); return key; }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary()); throw new StoreException(e); } }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary()); throw new StoreException(e); } }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary()); throw new StoreException(e); } }
/** * This method is to provide override for non-JDBC or JDBC-like * implementation of getting key from the result set. */ protected Object getKey (ResultSet rs, Column col) throws SQLException { if (!rs.next()) throw new StoreException(_loc.get("no-genkey")); Object key = rs.getObject(1); if (key == null) log.warn(_loc.get("invalid-genkey", col)); return key; }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary()); throw new StoreException(e); }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary(), _fetch.getReadLockLevel()); throw new StoreException(e); } }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary(), _fetch.getReadLockLevel()); throw new StoreException(e); } }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary(), _fetch.getReadLockLevel()); throw new StoreException(e); } }
public void handleCheckedException(Exception e) { if (e instanceof SQLException) throw SQLExceptions.getStore((SQLException) e, _store.getDBDictionary(), _fetch.getReadLockLevel()); throw new StoreException(e); } }
public void allocate(int additional, StoreContext ctx, ClassMetaData meta) { JDBCStore store = getStore(ctx); try { allocateInternal(additional, store, (ClassMapping) meta); } catch (OpenJPAException ke) { throw ke; } catch (SQLException se) { throw SQLExceptions.getStore(se, store.getDBDictionary()); } catch (Exception e) { throw new StoreException(e); } }
public void allocate(int additional, StoreContext ctx, ClassMetaData meta) { JDBCStore store = getStore(ctx); try { allocateInternal(additional, store, (ClassMapping) meta); } catch (OpenJPAException ke) { throw ke; } catch (SQLException se) { throw SQLExceptions.getStore(se, store.getDBDictionary()); } catch (Exception e) { throw new StoreException(e); } }
/** * Deserialize an object value from the given stream. */ public static Object deserialize(InputStream in, StoreContext ctx) { try { if (ctx == null) return new ClassResolvingObjectInputStream(in).readObject(); return new PersistentObjectInputStream(in, ctx).readObject(); } catch (Exception e) { throw new StoreException(e); } }
public Object current(StoreContext ctx, ClassMetaData meta) { JDBCStore store = getStore(ctx); try { return currentInternal(store, (ClassMapping) meta); } catch (OpenJPAException ke) { throw ke; } catch (SQLException se) { throw SQLExceptions.getStore(se, store.getDBDictionary()); } catch (Exception e) { throw new StoreException(e); } }
public Object current(StoreContext ctx, ClassMetaData meta) { JDBCStore store = getStore(ctx); try { return currentInternal(store, (ClassMapping) meta); } catch (OpenJPAException ke) { throw ke; } catch (SQLException se) { throw SQLExceptions.getStore(se, store.getDBDictionary()); } catch (Exception e) { throw new StoreException(e); } }