1 message in com.mysql.lists.ndb-connectorsRev 216: Added setShort() method back...| From | Sent On | Attachments |
|---|---|---|
| Monty Taylor | 29 Oct 2007 05:32 |
| Subject: | Rev 216: Added setShort() method back. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge![]() |
|---|---|
| From: | Monty Taylor (mtay...@mysql.com) |
| Date: | 10/29/2007 05:32:11 AM |
| List: | com.mysql.lists.ndb-connectors |
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
------------------------------------------------------------
revno: 216
revision-id: mtay...@mysql.com-20071029123226-oexymkc3ez2hu3vf
parent: mtay...@mysql.com-20071029102603-wp4fb755yxwlj1yu
committer: Monty Taylor <mtay...@mysql.com>
branch nick: ndbjmerge
timestamp: Mon 2007-10-29 12:32:26 +0000
message:
Added setShort() method back.
modified:
java/com/mysql/cluster/ndbj/NdbBaseOperation.java
ndbbaseoperation.jav-20070517181935-98huwjarzuh25b30-5
swig/NdbOperation.i
ndboperation.i-20070228021421-qkr4cbpxymyqdrf3-3
=== modified file 'java/com/mysql/cluster/ndbj/NdbBaseOperation.java'
--- a/java/com/mysql/cluster/ndbj/NdbBaseOperation.java 2007-10-23 01:41:19
+0000
+++ b/java/com/mysql/cluster/ndbj/NdbBaseOperation.java 2007-10-29 12:32:26
+0000
@@ -226,6 +226,23 @@
*/
public abstract void readTuple(LockMode mode) throws NdbApiException;
+ /**
+ *
+ * @param columnId integer position (offset) of column number in schema
definition (columnId starts from position '1' for the first column in a schema)
+ * @param val
+ * @throws NdbApiException if there is a problem in the cluster.
+ */
+ public void setShort(long columnId, short val) throws NdbApiException;
+
+ /**
+ *
+ * @param columnName name of the Column in the Schema
+ * @param val the value to be set for the column the value to be set for the
column
+ * @throws NdbApiException
+ */
+ public void setShort(String columnName, short val)
+ throws NdbApiException;
+
/** *
=== modified file 'swig/NdbOperation.i' --- a/swig/NdbOperation.i 2007-10-23 05:12:33 +0000 +++ b/swig/NdbOperation.i 2007-10-29 12:32:26 +0000 @@ -472,6 +472,12 @@ return retval; }
+ voidint setShort(const char* anAttrName, short intVal) { + return self->setValue(anAttrName,(Int32)intVal); + } + voidint setShort(Uint32 anAttrId, short intVal) { + return self->setValue(anAttrId,(Int32)intVal); + } voidint setInt(const char* anAttrName, Int32 intVal) { return self->setValue(anAttrName,intVal); }




