/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection (com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, String databaseName,java.util.Properties properties) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,databaseName,properties)); } /**
/** * <code>getClientInfo</code> always returns an empty * <code>Properties</code> object since Derby doesn't support * ClientInfoProperties. * * @return an empty <code>Properties</code> object. * @exception SQLException if the connection is closed. */ public Properties getClientInfo() throws SQLException{ try { checkForClosedConnection(); return new Properties(); } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * <code>setClientInfo</code> will always throw a * <code>SQLClientInfoException</code> since Derby does not support * any properties. * * @param name a property key <code>String</code> * @param value a property value <code>String</code> * @exception SQLException always. */ public void setClientInfo(String name, String value) throws SQLClientInfoException{ Properties p = FailedProperties40.makeProperties(name,value); try { checkForClosedConnection(); } catch (SqlException se) { throw new SQLClientInfoException (se.getMessage(), se.getSQLState(), se.getErrorCode(), new FailedProperties40(p).getProperties()); } if (name == null && value == null) { return; } setClientInfo(p); }
if (isClosed()) { return false; isValidStmt = prepareStatement("VALUES (1)");
/** * <code>getClientInfo</code> always returns an empty * <code>Properties</code> object since Derby doesn't support * ClientInfoProperties. * * @return an empty <code>Properties</code> object. * @exception SQLException if the connection is closed. */ public Properties getClientInfo() throws SQLException{ try { checkForClosedConnection(); return new Properties(); } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * <code>setClientInfo</code> will always throw a * <code>SQLClientInfoException</code> since Derby does not support * any properties. * * @param name a property key <code>String</code> * @param value a property value <code>String</code> * @exception SQLException always. */ public void setClientInfo(String name, String value) throws SQLClientInfoException{ Properties p = FailedProperties40.makeProperties(name,value); try { checkForClosedConnection(); } catch (SqlException se) { throw new SQLClientInfoException (se.getMessage(), se.getSQLState(), se.getErrorCode(), new FailedProperties40(p).getProperties()); } if (name == null && value == null) { return; } setClientInfo(p); }
if (isClosed()) { return false; isValidStmt = prepareStatement("VALUES (1)");
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection (com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource clientDataSource, String user,String password) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,clientDataSource,user,password)); } /**
/** * <code>getClientInfo</code> always returns a * <code>null String</code> since Derby doesn't support * ClientInfoProperties. * * @param name a <code>String</code> value * @return a <code>null String</code> value * @exception SQLException if the connection is closed. */ public String getClientInfo(String name) throws SQLException{ try { checkForClosedConnection(); return null; } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection (com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, String databaseName,java.util.Properties properties) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,databaseName,properties)); } /**
/** * <code>getClientInfo</code> always returns a * <code>null String</code> since Derby doesn't support * ClientInfoProperties. * * @param name a <code>String</code> value * @return a <code>null String</code> value * @exception SQLException if the connection is closed. */ public String getClientInfo(String name) throws SQLException{ try { checkForClosedConnection(); return null; } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection (com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource clientDataSource, String user,String password) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,clientDataSource,user,password)); } /**
/** * Returns false unless <code>interfaces</code> is implemented * * @param interfaces a Class defining an interface. * @return true if this implements the interface or * directly or indirectly wraps an object * that does. * @throws java.sql.SQLException if an error occurs while determining * whether this is a wrapper for an object * with the given interface. */ public boolean isWrapperFor(Class<?> interfaces) throws SQLException { try { checkForClosedConnection(); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } return interfaces.isInstance(this); }
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection(com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, int driverManagerLoginTimeout,String serverName, int portNumber,String databaseName, java.util.Properties properties) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,driverManagerLoginTimeout, serverName,portNumber,databaseName,properties)); } /**
/** * Returns false unless <code>interfaces</code> is implemented * * @param interfaces a Class defining an interface. * @return true if this implements the interface or * directly or indirectly wraps an object * that does. * @throws java.sql.SQLException if an error occurs while determining * whether this is a wrapper for an object * with the given interface. */ public boolean isWrapperFor(Class<?> interfaces) throws SQLException { try { checkForClosedConnection(); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } return interfaces.isInstance(this); }
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection(com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, String ipaddr,int portNumber, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,ipaddr,portNumber,dataSource, isXAConn)); } /**
/** * Returns <code>this</code> if this class implements the interface * * @param interfaces a Class defining an interface * @return an object that implements the interface * @throws java.sql.SQLException if no object if found that implements the * interface */ public <T> T unwrap(java.lang.Class<T> interfaces) throws SQLException { try { checkForClosedConnection(); return interfaces.cast(this); } catch (ClassCastException cce) { throw new SqlException(null, new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), interfaces).getSQLException(agent_ /* GemStoneAddition */); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } }
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection(com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, String ipaddr,int portNumber, com.pivotal.gemfirexd.internal.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,ipaddr,portNumber,dataSource, isXAConn)); } /**
/** * Returns <code>this</code> if this class implements the interface * * @param interfaces a Class defining an interface * @return an object that implements the interface * @throws java.sql.SQLException if no object if found that implements the * interface */ public <T> T unwrap(java.lang.Class<T> interfaces) throws SQLException { try { checkForClosedConnection(); return interfaces.cast(this); } catch (ClassCastException cce) { throw new SqlException(null, new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), interfaces).getSQLException(agent_ /* GemStoneAddition */); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } }
/** * returns an instance of com.pivotal.gemfirexd.internal.client.net.NetConnection40 */ public com.pivotal.gemfirexd.internal.client.am.Connection newNetConnection(com.pivotal.gemfirexd.internal.client.am.LogWriter netLogWriter, int driverManagerLoginTimeout,String serverName, int portNumber,String databaseName, java.util.Properties properties) throws SqlException { return (com.pivotal.gemfirexd.internal.client.am.Connection) (new NetConnection40((NetLogWriter)netLogWriter,driverManagerLoginTimeout, serverName,portNumber,databaseName,properties)); } /**