@Override public int getColumnCount() throws SQLException { try { return results.getColumnNames().length; } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public String getColumnLabel( int column ) throws SQLException { try { return results.getColumnNames()[column - 1]; // column value is 1-based } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public String getTableName( int column ) throws SQLException { try { return results.getSelectorNames()[column - 1]; // column value is 1-based } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public String getColumnLabel( int column ) throws SQLException { try { return results.getColumnNames()[column - 1]; // column value is 1-based } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public int getColumnCount() throws SQLException { try { return results.getColumnNames().length; } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public String getTableName( int column ) throws SQLException { try { return results.getSelectorNames()[column - 1]; // column value is 1-based } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
protected NodeType nodeType( String name ) throws SQLException { try { return getRepositoryDelegate().nodeType(name); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
protected NodeType nodeType( String name ) throws SQLException { try { return getRepositoryDelegate().nodeType(name); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
public boolean isStorageFilled() { try { List<NodeData> storageContent = dataManager.getChildNodesData(nsRoot); return storageContent.size() > 0; } catch (RepositoryException e) { log.error(e.getLocalizedMessage(), e); } return false; }
@Override public boolean isValid( int timeout ) throws SQLException { if (closed) return false; if (timeout < 0) throw new SQLException(JdbcLocalI18n.timeoutMayNotBeNegative.text()); try { return this.getRepositoryDelegate().isValid(timeout); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
@Override public boolean isValid( int timeout ) throws SQLException { if (closed) return false; if (timeout < 0) throw new SQLException(JdbcLocalI18n.timeoutMayNotBeNegative.text()); try { return this.getRepositoryDelegate().isValid(timeout); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
public Object translateValue( Value value ) throws SQLException { if (value == null) return null; try { return this.getTransform().transform(value); } catch (ValueFormatException ve) { throw new SQLException(ve.getLocalizedMessage(), ve); } catch (IllegalStateException ie) { throw new SQLException(ie.getLocalizedMessage(), ie); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
public Object translateValue( Value value ) throws SQLException { if (value == null) return null; try { return this.getTransform().transform(value); } catch (ValueFormatException ve) { throw new SQLException(ve.getLocalizedMessage(), ve); } catch (IllegalStateException ie) { throw new SQLException(ie.getLocalizedMessage(), ie); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public void commit() throws SQLException { notClosed(); try { this.getRepositoryDelegate().commit(); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
@Override public void commit() throws SQLException { notClosed(); try { this.getRepositoryDelegate().commit(); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
@Override public void rollback() throws SQLException { notClosed(); try { this.getRepositoryDelegate().rollback(); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
public Value getValue( String columnLabel ) throws SQLException { notClosed(); isRowSet(); try { return row.getValue(columnLabel); } catch (PathNotFoundException pnfe) { return null; } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
@Override public void rollback() throws SQLException { notClosed(); try { this.getRepositoryDelegate().rollback(); } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage()); } }
public Value getValue( String columnLabel ) throws SQLException { notClosed(); isRowSet(); try { return row.getValue(columnLabel); } catch (PathNotFoundException pnfe) { return null; } catch (RepositoryException e) { throw new SQLException(e.getLocalizedMessage(), e); } }
public Node getNode() { try { return (Node)session.getTransientNodesManager().getItemByIdentifier(lockData.getNodeIdentifier(), true); } catch (RepositoryException e) { LOG.error(e.getLocalizedMessage(), e); } return null; }