rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (precision < sqlScale) return sqlScale;
public int getDecimalValuePrecision() { if (isNull()) return 0; BigInteger bi = new BigInteger(data2c); if (BigInteger.ZERO.equals(bi)) return 0; int precision = bi.toString().length(); if (this.isNegative()) precision--; return precision; }
scale = -1 * Integer.parseInt(theValue.substring(ePosition + 1));
scale = -1 * Integer.parseInt(exponent);
public void setValue(String theValue) throws StandardException { if (theValue == null) { restoreToNull(); return; } theValue = theValue.trim(); int dot = theValue.indexOf('.'); int ePosition = theValue.indexOf('e'); if (ePosition == -1) ePosition = theValue.indexOf('E'); int scale = 0; try { ...
Connection conn = DriverManager.getConnection("jdbc:derby:"+ newDbName + ";" + "createFrom=" + backupPath + "/" + dbName); conn.close(); }
Connection conn = getConnection(newDbName, "createFrom=" + backupPath + "/" + dbName); conn.close(); }
public void createFromBackup(String newDbName) throws SQLException { Connection conn = DriverManager.getConnection("jdbc:derby:"+ newDbName + ";" + "createFrom=" + backupPath + "/" + dbName); conn.close(); }
public boolean isRunning() {
public synchronized boolean isRunning() {
public boolean isRunning() { return beginBackup; }
Connection conn = DriverManager.getConnection("jdbc:derby:"+ dbName);
Connection conn = getConnection(dbName , "");
void performBackup() throws SQLException { Connection conn = DriverManager.getConnection("jdbc:derby:"+ dbName); CallableStatement backupStmt = conn.prepareCall("CALL SYSCS_UTIL.SYSCS_BACKUP_DATABASE(?)"); backupStmt.setString(1, backupPath); synchronized(this) { beginBackup = true; endBackup = false; ...
Connection conn = DriverManager.getConnection("jdbc:derby:"+ dbName + ";" + "restoreFrom=" + backupPath + "/" + dbName);
Connection conn = getConnection(dbName, "restoreFrom=" + backupPath + "/" + dbName);
public void restoreFromBackup() throws SQLException { Connection conn = DriverManager.getConnection("jdbc:derby:"+ dbName + ";" + "restoreFrom=" + backupPath + "/" + dbName); conn.close(); }
for (Iterator i = SURDataModelSetup.SURDataModel.values().iterator(); i.hasNext();) { SURDataModelSetup.SURDataModel model = (SURDataModelSetup.SURDataModel) i.next(); TestSuite suite = new TestSuite(SURTest.class); TestSetup decorator = new SURDataModelSetup (suite, model); mainSuite.addTest(decorator); } return m...
mainSuite.addTest(baseSuite("SURTest:embedded")); mainSuite.addTest( TestConfiguration.clientServerDecorator(baseSuite("SURTest:client"))); return mainSuite;
public static Test suite() { TestSuite mainSuite = new TestSuite("SURTest"); // DB2 client doesn't support this functionality if (usingDerbyNet()) return mainSuite; // Iterate over all data models and decorate the tests: for (Iterator i = SURData...
XAResource xaResource = getXAResource(); int xaRetVal = xaResource.XA_OK; Xid[] indoubtXids = null; try { indoubtXids = xaResource.recover(XAResource.TMSTARTRSCAN); } catch (XAException xe) { xaRetVal = processXAException(xe); } writeSYNCCRD(CodePoint.SYNCTYPE_INDOUBT, xaRetVal, indoubtXids);
recoverXA(XAResource.TMSTARTRSCAN);
private void recoverXA() throws DRDAProtocolException { XAResource xaResource = getXAResource(); int xaRetVal = xaResource.XA_OK; Xid[] indoubtXids = null; try { indoubtXids = xaResource.recover(XAResource.TMSTARTRSCAN); } catch (XAException xe) { xaRetVal = processXAException(xe); } writeSYNCCRD(CodePoint...
return new BlobClobTestSetup(new TestSuite(ClobTest.class, "ClobTest suite"));
TestSuite suite = new TestSuite("ClobTest suite"); suite.addTest(new BlobClobTestSetup( new TestSuite(ClobTest.class, "ClobTest:embedded"))); suite.addTest(TestConfiguration.clientServerDecorator( new BlobClobTestSetup(new TestSuite(ClobTest.class, "ClobTest:client")))); return suite;
public static Test suite() { return new BlobClobTestSetup(new TestSuite(ClobTest.class, "ClobTest suite")); }
CPFile( CPFile dir, String name)
CPFile( CPStorageFactory storageFactory, String path)
CPFile( CPFile dir, String name) { super( dir,name); this.storageFactory = dir.storageFactory; }
super( dir,name); this.storageFactory = dir.storageFactory;
super( storageFactory, path); this.storageFactory = storageFactory;
CPFile( CPFile dir, String name) { super( dir,name); this.storageFactory = dir.storageFactory; }
ps.execute(act, false, true, true, 0L);
ps.execute(act, true, 0L);
public void deleteRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("deleteRow", -1); // Check that the cursor is not positioned on insertRow checkNotOnInsertRow(); setupContextStack(); //now c...
ps.execute(act, false, true, true, 0L);
ps.execute(act, true, 0L);
public void insertRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeInsert(); setupContextStack(); LanguageConnectionContext lcc = null; StatementContext statementContext = null; try { /* ...
org.apache.derby.iapi.sql.ResultSet rs = ps.execute(act, false, true, true, 0L);
org.apache.derby.iapi.sql.ResultSet rs = ps.execute(act, true, 0L);
public void updateRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("updateRow", -1); // Check that the cursor is not positioned on insertRow checkNotOnInsertRow(); setupContextStack(); LanguageConnectionContex...
jira1533Test_a(conn); jira1533Test_b(conn);
public static void main (String args[]) { try { System.out.println("prepStmt Test Starts"); ij.getPropertyArg(args); conn = ij.startJBMS(); if (conn == null) { System.out.println("conn didn't work"); return; } Statement cleanstmt = conn.createStatement(); TestUtil.cleanUpTest(cleanstmt, testO...
public void addRequiredSchemaPriv(String schema, String aid, boolean privType);
public void addRequiredSchemaPriv(String schema, String aid, int privType);
public void addRequiredSchemaPriv(String schema, String aid, boolean privType);
FormatableBitSet[] columnBitSets)
FormatableBitSet[] columnBitSets, List descriptorList)
public TablePrivilegeInfo( TableDescriptor td, boolean[] actionAllowed, FormatableBitSet[] columnBitSets) { this.actionAllowed = actionAllowed; this.columnBitSets = columnBitSets; this.td = td; }
this.descriptorList = descriptorList;
public TablePrivilegeInfo( TableDescriptor td, boolean[] actionAllowed, FormatableBitSet[] columnBitSets) { this.actionAllowed = actionAllowed; this.columnBitSets = columnBitSets; this.td = td; }
SchemaDescriptor sd = td.getSchemaDescriptor();
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
checkOwnership( currentUser, td, td.getSchemaDescriptor(), dd);
checkOwnership( currentUser, td, sd, dd, lcc, grant);
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
NumberDataValue result, int scale)
NumberDataValue result)
public NumberDataValue divide(NumberDataValue dividend, NumberDataValue divisor, NumberDataValue result, int scale) throws StandardException;
Connection conn = getConnection();
EngineConnection conn = getConnection();
synchronized void makeConnection(Properties p) throws SQLException { if (xaDataSource == null) { xaDataSource = new EmbeddedXADataSource(); } xaDataSource.setDatabaseName(shortDbName); appendAttrString(p); if (attrString != null) xaDataSource.setConnectionAttributes(attrString); Connection conn = getConne...
conn = xaConnection.getConnection();
conn = (EngineConnection) xaConnection.getConnection();
synchronized void makeConnection(Properties p) throws SQLException { if (xaDataSource == null) { xaDataSource = new EmbeddedXADataSource(); } xaDataSource.setDatabaseName(shortDbName); appendAttrString(p); if (attrString != null) xaDataSource.setConnectionAttributes(attrString); Connection conn = getConne...
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) { if (e.getKeyCode() == KeyEvent.VK_META || e.getKeyCode() == KeyEvent.VK_CAPS_LOCK) return false; return super.processKeyBinding(ks, e, condition, pressed); }
protected JTable createComponent() { return new JTable(defaultModel) { public void editingStopped(ChangeEvent ev) { int row = getEditingRow(), col = getEditingColumn(); super.editingStopped(ev); BTable.this.dispatchEvent(new CellValueChangedEvent(BTable.this, row, col)); } }...
ErrorObjectInput inUserCode,
private final boolean readRecordFromArray( Object[] row, int max_colid, int[] vCols, int[] mCols, ArrayInputStream dataIn, StoredRecordHeader recordHeader, ErrorObjectInput inUserCode, RecordHandle recordToL...
ErrorObjectInput inUserCode = null;
private final boolean readRecordFromArray( Object[] row, int max_colid, int[] vCols, int[] mCols, ArrayInputStream dataIn, StoredRecordHeader recordHeader, ErrorObjectInput inUserCode, RecordHandle recordToL...
ErrorObjectInput inUserCode,
private final boolean readRecordFromStream( Object[] row, int max_colid, int[] vCols, int[] mCols, LimitObjectInput dataIn, StoredRecordHeader recordHeader, ErrorObjectInput inUserCode, RecordHandle recordTo...
ErrorObjectInput inUserCode = null;
private final boolean readRecordFromStream( Object[] row, int max_colid, int[] vCols, int[] mCols, LimitObjectInput dataIn, StoredRecordHeader recordHeader, ErrorObjectInput inUserCode, RecordHandle recordTo...
(ErrorObjectInput) null ,
private StoredRecordHeader restoreLongRecordFromSlot( Object[] row, FetchDescriptor fetchDesc, RecordHandle recordToLock, StoredRecordHeader parent_recordHeader) throws StandardException { int slot = findRecordById( parent_recordHea...
(ErrorObjectInput) null ,
protected boolean restoreRecordFromSlot( int slot, Object[] row, FetchDescriptor fetchDesc, RecordHandle recordToLock, StoredRecordHeader recordHeader, boolean isHeadRow) throws StandardException { try { int offs...
(ErrorObjectInput) null , null);
null);
public void restoreRecordFromStream( LimitObjectInput in, Object[] row) throws StandardException, IOException { StoredRecordHeader recordHeader = new StoredRecordHeader(); recordHeader.read(in); readRecordFromStream( row, row.length - 1, (int[]) null, ...
int remainingBytes = reader.clearLimit();
if (charsToTruncate > 0) { reader.setLimit(charsToTruncate); int c = 0; do { c = reader.read(); if (c < 0) { break; } else if (c != SPACE) { throw new IOException( MessageService.getTextMessage( SQLState.LANG_STRING_TRUNCATION, TypeId.CLOB_NAME, "XXXX", String.valueOf(colWidth))); } } while (c == SPACE); } int re...
private void checkSufficientData() throws IOException { int remainingBytes = reader.clearLimit(); if (remainingBytes > 0) throw new IOException(MessageService.getTextMessage(SQLState.SET_STREAM_INEXACT_LENGTH_DATA)); // if we had a limit try reading one more character. // JDBC 3.0 states the stream muct have the...
protected synchronized final InputStream loadModuleDefinitions() {
protected synchronized final InputStream loadModuleDefinitions(URL propertyFileURL) throws IOException {
protected synchronized final InputStream loadModuleDefinitions() { action = 2; try { return (InputStream) java.security.AccessController.doPrivileged(this); } catch (java.security.PrivilegedActionException pae) { throw (RuntimeException) pae.getException(); } }
throw (RuntimeException) pae.getException(); } }
Exception e = pae.getException(); if( e instanceof IOException) throw (IOException) e; throw (RuntimeException) e; } finally { this.propertyFileURL = null; } }
protected synchronized final InputStream loadModuleDefinitions() { action = 2; try { return (InputStream) java.security.AccessController.doPrivileged(this); } catch (java.security.PrivilegedActionException pae) { throw (RuntimeException) pae.getException(); } }
return super.loadModuleDefinitions();
return super.loadModuleDefinitions( propertyFileURL);
public final Object run() throws IOException { switch (action) { case 0: case 1: // SECURITY PERMISSION - OP2, OP2a, OP2b return new Boolean(PBinitialize(action == 0)); case 2: // SECURITY PERMISSION - IP1 return super.loadModuleDefinitions(); case 3: // SECURITY PERMISSION - OP1 return PBgetJVMPrope...
throws SQLException{ throw Util.notImplemented();
throws SQLException { checkStatus(); return isPoolable;
public boolean isPoolable() throws SQLException{ throw Util.notImplemented(); }
throws SQLException{ throw Util.notImplemented();
throws SQLException { checkStatus(); isPoolable = poolable;
public void setPoolable(boolean poolable) throws SQLException{ throw Util.notImplemented(); }
testFloatMAX_VALUE(con);
public static void main(String[] args) throws Throwable { isDerbyNet = TestUtil.isNetFramework(); Connection con; ResultSetMetaData met; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "dc", "bi", "cbd", "vbd", "lvbd", "cl", "bl"}; System.out.println(...
if (xaState == XA_LOCAL) {
if (xaState == XA_T0_NOT_ASSOCIATED) {
public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = NetXAResource.XARETVAL_XAOK; // initialize XARETVAL if (xa...
setXAState(XA_LOCAL);
setXAState(XA_T0_NOT_ASSOCIATED);
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = NetXAResource.XARETVAL_XAOK; // initialize XARETVAL readLocalXARollback_(); if (cal...
if (xaState == XA_LOCAL){
if (xaState == XA_T0_NOT_ASSOCIATED){
public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if (xaState == XA_LOCAL){ xares_.callInfoArray_[xares_.conn_.currXACallInfoOffs...
ParameterValueSet pvs, boolean rollbackParentContext)
ParameterValueSet pvs, boolean rollbackParentContext, long timeoutMillis)
public StatementContext pushStatementContext(boolean isAtomic, String stmtText, ParameterValueSet pvs, boolean rollbackParentContext) { int parentStatementDepth = statementDepth; boolean inTrigger = false; boolean parentIsAtomic = false; // by default, assume we are going to use the outermost statement ...
statementContext.setInUse(inTrigger, isAtomic || parentIsAtomic, stmtText, pvs);
statementContext.setInUse(inTrigger, isAtomic || parentIsAtomic, stmtText, pvs, timeoutMillis);
public StatementContext pushStatementContext(boolean isAtomic, String stmtText, ParameterValueSet pvs, boolean rollbackParentContext) { int parentStatementDepth = statementDepth; boolean inTrigger = false; boolean parentIsAtomic = false; // by default, assume we are going to use the outermost statement ...
public void setInUse(boolean inTrigger, boolean isAtomic, String stmtText, ParameterValueSet pvs);
public void setInUse(boolean inTrigger, boolean isAtomic, String stmtText, ParameterValueSet pvs, long timeoutMillis);
public void setInUse(boolean inTrigger, boolean isAtomic, String stmtText, ParameterValueSet pvs);
(parameterMetaData_ != null ? parameterMetaData_ : ClientDriver.getFactory().newColumnMetaData(agent_.logWriter_, 0));
( getColumnMetaDataX() );
private ParameterMetaData getParameterMetaDataX() throws SqlException { super.checkForClosedStatement(); ParameterMetaData pm = ClientDriver.getFactory().newParameterMetaData (parameterMetaData_ != null ? parameterMetaData_ : ClientDriver.getFactory().newCo...
checkTypeForSetAsciiStream(getParameterMetaData().getParameterType(parameterIndex),
checkTypeForSetAsciiStream(getColumnMetaDataX().getColumnType(parameterIndex),
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.trace...
checkTypeForSetBlob(getParameterMetaData().getParameterType(parameterIndex),
checkTypeForSetBlob(getColumnMetaDataX().getColumnType(parameterIndex),
public void setBlob(int parameterIndex, java.sql.Blob x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBlob", parameterIndex, x); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setBytes(int parameterIndex, byte[] x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBytes", parameterIndex, x); } fin...
checkTypeForSetCharacterStream(getParameterMetaData().getParameterType(parameterIndex),
checkTypeForSetCharacterStream(getColumnMetaDataX().getColumnType(parameterIndex),
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setCharacterStream", parameterIndex, x); } try {...
checkTypeForSetClob(getParameterMetaData().getParameterType(parameterIndex),
checkTypeForSetClob(getColumnMetaDataX().getColumnType(parameterIndex),
public void setClob(int parameterIndex, java.sql.Clob x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setClob", parameterIndex, x); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDate", parameterIndex, x); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setDouble(int parameterIndex, double x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDouble", parameterIndex, x); } f...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setFloat(int parameterIndex, float x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setFloat", parameterIndex, x); } fina...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setInt(int parameterIndex, int x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setInt", parameterIndex, x); } final int ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setLong(int parameterIndex, long x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setLong", parameterIndex, x); } final i...
final int paramType = getParameterMetaData().getParameterType(parameterIndex) ;
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex) ;
public void setNull(int parameterIndex, int jdbcType) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setNull", parameterIndex, jdbcType); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setShort(int parameterIndex, short x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setShort", parameterIndex, x); } fina...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setString(int parameterIndex, String x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setString", parameterIndex, x); } f...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setTime(int parameterIndex, java.sql.Time x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTime", parameterIndex, x); } ...
final int paramType = getParameterMetaData().getParameterType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTimestamp", parameterIndex, x); } ...
checkTypeForSetAsciiStream(getColumnMetaDataX().getColumnType(parameterIndex),
checkTypeForSetAsciiStream(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ),
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.trace...
checkTypeForSetBlob(getColumnMetaDataX().getColumnType(parameterIndex),
checkTypeForSetBlob(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ),
public void setBlob(int parameterIndex, java.sql.Blob x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBlob", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setBytes(int parameterIndex, byte[] x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBytes", parameterIndex, x); } fin...
checkTypeForSetCharacterStream(getColumnMetaDataX().getColumnType(parameterIndex),
checkTypeForSetCharacterStream(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ),
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setCharacterStream", parameterIndex, x); } try {...
checkTypeForSetClob(getColumnMetaDataX().getColumnType(parameterIndex),
checkTypeForSetClob(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ),
public void setClob(int parameterIndex, java.sql.Clob x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setClob", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDate", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setDouble(int parameterIndex, double x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDouble", parameterIndex, x); } f...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setFloat(int parameterIndex, float x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setFloat", parameterIndex, x); } fina...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setInt(int parameterIndex, int x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setInt", parameterIndex, x); } final int ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setLong(int parameterIndex, long x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setLong", parameterIndex, x); } final i...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex) ;
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex) ) ;
public void setNull(int parameterIndex, int jdbcType) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setNull", parameterIndex, jdbcType); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setShort(int parameterIndex, short x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setShort", parameterIndex, x); } fina...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setString(int parameterIndex, String x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setString", parameterIndex, x); } f...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setTime(int parameterIndex, java.sql.Time x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTime", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTimestamp", parameterIndex, x); } ...
return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_,
try { return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_,
private final java.sql.Date getDATE(int column) throws SqlException { return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_); }
recyclableDate_);
recyclableDate_, charsetName_[column - 1]); }catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to DATE"); }
private final java.sql.Date getDATE(int column) throws SqlException { return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_); }
return org.apache.derby.client.am.DateTime.timestampBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_);
try { return org.apache.derby.client.am.DateTime.timestampBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_, charsetName_[column -1]); } catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to DATE"); }
private final java.sql.Date getDateFromTIMESTAMP(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timestampBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_); }
return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_).toString();
return getDATE(column).toString();
private final String getStringFromDATE(int column) throws SqlException { return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_).toString(); }
return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_).toString();
return getTIME(column).toString();
private final String getStringFromTIME(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_).toString(); }
return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_).toString();
return getTIMESTAMP(column).toString();
private final String getStringFromTIMESTAMP(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_).toString(); }
return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_);
try { return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column - 1]); } catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIME"); }
private final java.sql.Time getTIME(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_); }
return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp(dataBuffer_,
try { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp( dataBuffer_,
private final java.sql.Timestamp getTIMESTAMP(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_); }
recyclableTimestamp_);
recyclableTimestamp_, charsetName_[column - 1]); } catch (java.io.UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIMESTAMP");
private final java.sql.Timestamp getTIMESTAMP(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_); }
}
private final java.sql.Timestamp getTIMESTAMP(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_); }
return org.apache.derby.client.am.DateTime.timestampBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_);
try { return org.apache.derby.client.am.DateTime.timestampBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column -1]); } catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIME"); }
private final java.sql.Time getTimeFromTIMESTAMP(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timestampBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_); }
return org.apache.derby.client.am.DateTime.dateBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_);
try { return org.apache.derby.client.am.DateTime.dateBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[column -1]); } catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIMESTAMP"); }
private final java.sql.Timestamp getTimestampFromDATE(int column) throws SqlException { return org.apache.derby.client.am.DateTime.dateBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_); }
return org.apache.derby.client.am.DateTime.timeBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_);
try { return org.apache.derby.client.am.DateTime.timeBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[column -1]); } catch (UnsupportedEncodingException e) { throw new SqlException(agent_.logWriter_, e, "Encoding is unsupported for conversion to TIMESTAMP"); }
private final java.sql.Timestamp getTimestampFromTIME(int column) throws SqlException { return org.apache.derby.client.am.DateTime.timeBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_); }
java.sql.Date recyclableDate) {
java.sql.Date recyclableDate, String encoding) throws UnsupportedEncodingException {
public static final java.sql.Date dateBytesToDate(byte[] buffer, int offset, java.sql.Date recyclableDate) { int year, month, day; String date = new String(buffer, offset, DateTime.dateRepresentat...
String date = new String(buffer, offset, DateTime.dateRepresentationLength);
String date = new String(buffer, offset, DateTime.dateRepresentationLength,encoding);
public static final java.sql.Date dateBytesToDate(byte[] buffer, int offset, java.sql.Date recyclableDate) { int year, month, day; String date = new String(buffer, offset, DateTime.dateRepresentat...
java.sql.Date recyclableDate) {
java.sql.Date recyclableDate, String encoding) throws UnsupportedEncodingException {
public static final java.sql.Date timestampBytesToDate(byte[] buffer, int offset, java.sql.Date recyclableDate) { int year, month, day; String timestamp = new String(buffer, offset, Date...
String timestamp = new String(buffer, offset, DateTime.timestampRepresentationLength);
String timestamp = new String(buffer, offset, DateTime.timestampRepresentationLength, encoding);
public static final java.sql.Date timestampBytesToDate(byte[] buffer, int offset, java.sql.Date recyclableDate) { int year, month, day; String timestamp = new String(buffer, offset, Date...