Class Hierarchy    Previous  Next  Index

Interface COM.cloudscape.synchronization.TargetDescription


public interface TargetDescription
Copyright © 2000, Informix Software, Inc. All rights reserved.

A TargetDescription object describes a target to the source during refresh.

A TargetDescription object is passed into the methods of MessageAuthenticationScheme to provide information about the target to the authentication scheme.

Within a source work-unit execution a TargetDescription is obtained by the static SyncFactory.getRefresher() method. Apart from providing access to the publication parameters, a TargetDescription can be used to maintain state, such as prepared statements, across work unit executions for a single refresh.

A TargetDesription is private to a single refresh request and becomes invalid at the end of the refresh.

See Also:
SyncFactory, MessageAuthenticationScheme

Method Index

 o getConnectionAttributes()
Return the attributes that will be used (or were used) to obtain a JDBC Connection.
 o getDatabaseId()
Return the unique identifier of the target database.
 o getPublicationId()
Return the publication identifier of the target database.
 o getPublicationParameters()
Return a one-row JDBC 1.2 result set that contains the publication parameters.
 o getSavedObject()
Retrieve the object saved by saveObject().
 o saveObject(Object)
Save an object for the duration of this refresh.

Method Detail

 o getDatabaseId
public UUID getDatabaseId()
          Return the unique identifier of the target database.
 o getPublicationId
public UUID getPublicationId()
          Return the publication identifier of the target database.
 o getPublicationParameters
public java.sql.ResultSet getPublicationParameters()
          Return a one-row JDBC 1.2 result set that contains the publication parameters. The ResultSet is pre-positioned on the single row.
 o getConnectionAttributes
public java.util.Properties getConnectionAttributes()
          Return the attributes that will be used (or were used) to obtain a JDBC Connection.
 o saveObject
public void saveObject(java.lang.Object value)
          Save an object for the duration of this refresh. This allows state to be maintained over the lifetime of a single refresh, e.g. to allow PreparedStatements kept open across work-unit executions.
 o getSavedObject
public java.lang.Object getSavedObject()
          Retrieve the object saved by saveObject().

  Class Hierarchy    Previous  Next  Index