Tag: cws_src680_qiq
User: fs      
Date: 2006/06/29 03:17:10

Modified:
   dba/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java

Log:
 attributes of HsqlColumnDescriptor not public anymore

File Changes:

Directory: /dba/connectivity/qa/connectivity/tools/
===================================================

File [changed]: HsqlTableDescriptor.java
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/qa/connectivity/tools/HsqlTableDescriptor.java?r1=1.2.54.2&r2=1.2.54.3
Delta lines:  +7 -7
-------------------
--- HsqlTableDescriptor.java    27 Jun 2006 20:22:10 -0000      1.2.54.2
+++ HsqlTableDescriptor.java    29 Jun 2006 10:17:07 -0000      1.2.54.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: HsqlTableDescriptor.java,v $
  *
- *  $Revision: 1.2.54.2 $
+ *  $Revision: 1.2.54.3 $
  *
- *  last change: $Author: fs $ $Date: 2006/06/27 20:22:10 $
+ *  last change: $Author: fs $ $Date: 2006/06/29 10:17:07 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -99,12 +99,12 @@
             XPropertySet columnDesc = columnDescFac.createDataDescriptor();
             try
             {
-                columnDesc.setPropertyValue( "Name", myColumns[i].Name );
-                columnDesc.setPropertyValue( "IsNullable", new Integer( 
myColumns[i].NotNull ? ColumnValue.NO_NULLS : ColumnValue.NULLABLE) );
-                columnDesc.setPropertyValue( "TypeName", myColumns[i].TypeName 
);
-                if ( myColumns[i].PrimaryKey )
+                columnDesc.setPropertyValue( "Name", myColumns[i].getName() );
+                columnDesc.setPropertyValue( "IsNullable", new Integer( 
myColumns[i].isRequired() ? ColumnValue.NO_NULLS : ColumnValue.NULLABLE) );
+                columnDesc.setPropertyValue( "TypeName", 
myColumns[i].getTypeName() );
+                if ( myColumns[i].isPrimaryKey() || 
myColumns[i].isForeignKey() )
                     // not yet implemented
-                    throw new 
java.lang.UnsupportedOperationException("creating a primary key via SDBCX not 
yet implemented" );
+                    throw new 
java.lang.UnsupportedOperationException("creating a primary or foreign key via 
SDBCX not yet implemented" );
             }
             catch( com.sun.star.uno.Exception e ) { e.printStackTrace( 
System.err ); }
         }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to