Java 8 SQLData - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SQLData class.

This code example shows how to use the following methods:getSQLTypeName, writeSQL
/*     */   { 
/* 419 */     STRUCT localSTRUCT = null;
/*     */  
/* 421 */     if (paramSQLData != null)
/*     */     { 
/* 423 */       StructDescriptor localStructDescriptor = StructDescriptor.createDescriptor(paramSQLData.getSQLTypeName(), this.conn);
/*     */  
/* 426 */       SQLOutput localSQLOutput = localStructDescriptor.toJdbc2SQLOutput();
/*     */  
/* 428 */       paramSQLData.writeSQL(localSQLOutput);
/*     */  
/* 430 */       localSTRUCT = ((OracleSQLOutput)localSQLOutput).getSTRUCT();
/*     */     } 
/*     */  
/* 433 */     writeStruct(localSTRUCT);
/*     */   } 
/*     */  
/*     */   public void writeObject(Object paramObject)
/*     */     throws SQLException 
/*     */   { 
4
CodeRank
This code example shows how to use the following methods:getSQLTypeName, writeSQL
/*      */       } 
/*  513 */       else if ((paramObject instanceof SQLData))
/*      */       { 
/*  515 */         SQLData localSQLData = (SQLData)paramObject;
/*      */  
/*  517 */         StructDescriptor localStructDescriptor = StructDescriptor.createDescriptor(localSQLData.getSQLTypeName(), paramOracleConnection);
/*      */  
/*  520 */         SQLOutput localSQLOutput = localStructDescriptor.toJdbc2SQLOutput();
/*      */  
/*  522 */         localSQLData.writeSQL(localSQLOutput);
/*      */  
/*  524 */         localSTRUCT = ((OracleSQLOutput)localSQLOutput).getSTRUCT();
/*      */       } 
/*      */       else 
/*      */       { 
/*  528 */         DatabaseError.throwSqlException(59, paramObject);
/*      */       } 
/*      */  
/*      */     } 
/*      */  
4
CodeRank
This code example shows how to use the following methods:readSQL
	@Test(expected = NetworkReactiveAuditException.class)
	public void readSQL() 
			throws InterruptedException, ClassNotFoundException, SQLException
	{ 
		TestTools.strict.commit(); 
		data.readSQL(null, null);
	} 
 
	@Test(expected = NetworkReactiveAuditException.class)
	public void writeSQL() 
			throws InterruptedException, ClassNotFoundException, SQLException
	{ 
		TestTools.strict.commit(); 
		data.writeSQL(null);
	} 
} 
3
CodeRank
See Code Examples for Java 8 SQLData Methods: