List:Commits« Previous MessageNext Message »
From:mmatthews Date:February 27 2008 2:58pm
Subject:Connector/J commit: r6743 - branches/branch_5_1/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_5_1/src/com/mysql/jdbc/BufferRow.java
Log:
Covnerted setMetadata into a fluent interface method (see http://martinfowler.com/bliki/FluentInterface.html), as it makes it easier to work with higher up, rather than returning void.

Modified: branches/branch_5_1/src/com/mysql/jdbc/BufferRow.java
===================================================================
--- branches/branch_5_1/src/com/mysql/jdbc/BufferRow.java	2008-02-27 14:48:04 UTC (rev 6742)
+++ branches/branch_5_1/src/com/mysql/jdbc/BufferRow.java	2008-02-27 14:58:58 UTC (rev 6743)
@@ -637,12 +637,14 @@
 		throw new OperationNotSupportedException();
 	}
 
-	public void setMetadata(Field[] f) throws SQLException {
+	public ResultSetRow setMetadata(Field[] f) throws SQLException {
 		super.setMetadata(f);
 
 		if (this.isBinaryEncoded) {
 			setupIsNullBitmask();
 		}
+		
+		return this;
 	}
 
 	/**

Thread
Connector/J commit: r6743 - branches/branch_5_1/src/com/mysql/jdbcmmatthews27 Feb