Kaydet (Commit) ea322617 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS sdksample (1.3.124); FILE MERGED

2004/10/28 15:31:58 jsc 1.3.124.2: #i29308# use new bootstrap mechanism
2004/10/07 09:20:57 jsc 1.3.124.1: #i29208# updated
üst 3821462f
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: KeyGenerator.java,v $ * $RCSfile: KeyGenerator.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: hr $ $Date: 2003-06-30 15:28:33 $ * last change: $Author: rt $ $Date: 2005-01-31 16:30:50 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* the BSD license. * the BSD license.
...@@ -70,7 +70,8 @@ class UniqueColumnValue ...@@ -70,7 +70,8 @@ class UniqueColumnValue
if ( CommandType.COMMAND == aCommandType.intValue() ) if ( CommandType.COMMAND == aCommandType.intValue() )
{ {
// get the connection from the form // get the connection from the form
XConnection xFormConn = (XConnection)xForm.getPropertyValue( "ActiveConnection" ); XConnection xFormConn = (XConnection)UnoRuntime.queryInterface( XConnection.class,
xForm.getPropertyValue( "ActiveConnection" ) );
// and let it create a composer for us // and let it create a composer for us
XSQLQueryComposerFactory xComposerFac = XSQLQueryComposerFactory xComposerFac =
(XSQLQueryComposerFactory)UnoRuntime.queryInterface( (XSQLQueryComposerFactory)UnoRuntime.queryInterface(
...@@ -374,11 +375,12 @@ public class KeyGenerator ...@@ -374,11 +375,12 @@ public class KeyGenerator
@param sFieldName @param sFieldName
specifies the field which's value should be manipulated specifies the field which's value should be manipulated
*/ */
public KeyGenerator( XPropertySet xForm, String sFieldName, XMultiServiceFactory xMSF ) public KeyGenerator( XPropertySet xForm, String sFieldName,
XComponentContext xCtx )
{ {
m_xForm = xForm; m_xForm = xForm;
DocumentHelper aDocument = DocumentHelper.getDocumentForComponent( xForm, xMSF ); DocumentHelper aDocument = DocumentHelper.getDocumentForComponent( xForm, xCtx );
m_aResetKeyGenerator = new KeyGeneratorForReset( sFieldName, aDocument.getCurrentView() ); m_aResetKeyGenerator = new KeyGeneratorForReset( sFieldName, aDocument.getCurrentView() );
m_aUpdateKeyGenerator = new KeyGeneratorForUpdate( sFieldName ); m_aUpdateKeyGenerator = new KeyGeneratorForUpdate( sFieldName );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment