List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:December 27 2007 6:24pm
Subject:Rev 398: Added file left out of vc. Oops. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel

------------------------------------------------------------
revno: 398
revision-id:mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Thu 2007-12-27 12:24:33 -0600
message:
  Added file left out of vc. Oops.
added:
  java/com/mysql/cluster/ndbj/NdbBaseOperationSet.java
ndbbaseoperationset.-20071227182252-rv42f73je3l25vx9-1
modified:
  java/Makefile.am               makefile.am-20070415032352-9dpe6aurqcnuwcrd-1
=== added file 'java/com/mysql/cluster/ndbj/NdbBaseOperationSet.java'
--- a/java/com/mysql/cluster/ndbj/NdbBaseOperationSet.java	1970-01-01 00:00:00 +0000
+++ b/java/com/mysql/cluster/ndbj/NdbBaseOperationSet.java	2007-12-27 18:24:33 +0000
@@ -0,0 +1,180 @@
+package com.mysql.cluster.ndbj;
+
+import java.sql.Timestamp;
+
+public interface NdbBaseOperationSet {
+
+	/**
+	 *
+	 * @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 abstract 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 abstract void setShort(String columnName, short val)
+			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 abstract void setInt(long columnId, int 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 abstract void setInt(String columnName, int val)
+			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 the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setLong(long columnId, long val)
+			throws NdbApiException;
+
+	/**
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @param val the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setLong(String columnName, long val)
+			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 the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setFloat(long columnId, float val)
+			throws NdbApiException;
+
+	/**
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @param val the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setFloat(String columnName, float val)
+			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 the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setDouble(long columnId, double val)
+			throws NdbApiException;
+
+	/**
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @param val the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setDouble(String columnName, double val)
+			throws NdbApiException;
+
+	/**
+	 * Timestamp objects stored in the database lose nanosecond accuracy.
+	 * @param columnId integer position (offset) of column number in schema definition
(columnId starts from  position '1' for the first column in a schema)
+	 * @param t if t is null, then setNull method is called for the column
+	 * @return
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setTimestamp(long columnId, Timestamp t)
+			throws NdbApiException;
+
+	/**
+	 * Timestamp objects stored in the database lose nanosecond accuracy.
+	 * @param columnName name of the Column in the Schema
+	 * @param t
+	 * @return
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column. if columnName is null or empty string
+	 * @throws NdbApiTimeStampOutOfBoundsException if Timestamp value is for year
+	 * after 2037
+	 */
+	public abstract void setTimestamp(String columnName, Timestamp t)
+			throws NdbApiException, NdbApiTimeStampOutOfBoundsException;
+
+	/**
+	 *
+	 * @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 the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setBytes(long columnId, byte[] val)
+			throws NdbApiException;
+
+	/**
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @param val the value to be set for the column
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setBytes(String columnName, byte[] val)
+			throws NdbApiException;
+
+	/**
+	 * This method first queries the cluster about the charset of columnName,
+	 * before setting columnName to val.
+	 * The supported charsets are Latin1 and utf8. If columnName has
+	 * no charset, it is assume to be VARBINARY, and the charset is assumed to
+	 * be latin1.
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @param val the value to be set for the column
+	 * @return
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setString(long columnId, String val)
+			throws NdbApiException;
+
+	/**
+	 * This method first queries the cluster about the charsett of columnName,
+	 * before setting columnName to val.
+	 * The supported charsets are Latin1 and utf8. If columnName has
+	 * no charset, it is assume to be VARBINARY, and the charset is assumed to
+	 * be latin1.
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @param val the value to be set for the column
+	 * @return
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setString(String columnName, String val)
+			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)
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setNull(long columnId) throws NdbApiException;
+
+	/**
+	 *
+	 * @param columnName name of the Column in the Schema
+	 * @throws NdbApiException if there was a problem in the cluster when trying to set a
value for a column.
+	 */
+	public abstract void setNull(String columnName) throws NdbApiException;
+
+}
\ No newline at end of file

=== modified file 'java/Makefile.am'
--- a/java/Makefile.am	2007-12-26 22:53:00 +0000
+++ b/java/Makefile.am	2007-12-27 18:24:33 +0000
@@ -52,6 +52,7 @@
 	${package_builddir}/mgmj/NdbLogEventListener.java \
 	${package_builddir}/mgmj/NdbLogEventTypeListener.java \
 	${package_builddir}/mgmj/BackupStartOption.java \
+	${package_builddir}/mgmj/listeners/ConnectedTypeListener.java \
 	${package_builddir}/mgmj/listeners/DisconnectedTypeListener.java \
 	${package_builddir}/mgmj/listeners/CommunicationOpenedTypeListener.java \
 	${package_builddir}/mgmj/listeners/CommunicationClosedTypeListener.java \
@@ -141,6 +142,7 @@
 	${package_srcdir}/ndbj/NdbApiTemporaryException.java \
 	${package_srcdir}/ndbj/NdbApiTimeStampOutOfBoundsException.java \
 	${package_srcdir}/ndbj/NdbApiUserErrorPermanentException.java \
+	${package_srcdir}/ndbj/NdbBaseOperationSet.java \
 	${package_srcdir}/ndbj/NdbBaseOperationEquals.java \
 	${package_srcdir}/ndbj/NdbBaseOperationEqualsImpl.java \
 	${package_srcdir}/ndbj/NdbBlob.java \
@@ -228,6 +230,7 @@
 	${package_builddir}/ndbj/NdbApiTemporaryException.class \
 	${package_builddir}/ndbj/NdbApiTimeStampOutOfBoundsException.class \
 	${package_builddir}/ndbj/NdbApiUserErrorPermanentException.class \
+	${package_builddir}/ndbj/NdbBaseOperationSet.class \
 	${package_builddir}/ndbj/NdbBaseOperationEquals.class \
 	${package_builddir}/ndbj/NdbBaseOperationEqualsImpl.class \
 	${package_builddir}/ndbj/NdbBlob.class \

Thread
Rev 398: Added file left out of vc. Oops. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/develMonty Taylor28 Dec