com.apelon.dts.common.subset
Class SubsetUpdate

java.lang.Object
  extended by com.apelon.dts.common.subset.SubsetUpdate

public class SubsetUpdate
extends Object

Contains the Subset Update items. ID identifies the subset. Name, description and expression can be modified.

To update name to "XYZ" for Subset of ID 1000, using SubsetQuery sq:

 SubsetUpdate su = new SubsetUpdate(1000);
 su.setName("XYZ");
 sq.update(su);
 

Copyright: Copyright (c) 2004

Company: Apelon, Inc.

Since:
3.4.0
Version:
DTS 3.4.0
Author:
Abhay Sinha

Constructor Summary
SubsetUpdate()
          Empty constructor for Java Beans compliance
SubsetUpdate(int id)
          Constructs SubsetUpdate.
 
Method Summary
 String getDescription()
          Get the new description for the subset.
 String getExpression()
          Get the new subset expression for the subset
 int getId()
          Get subset id
 String getName()
          Get the name for the subset.
 void setDescription(String description)
          Set the new description for the subset
 void setExpression(String expression)
          Set new expression.
 void setId(int id)
          Set id of the subset to update
 void setName(String name)
          Set the new name for the subset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsetUpdate

public SubsetUpdate()
Empty constructor for Java Beans compliance


SubsetUpdate

public SubsetUpdate(int id)
Constructs SubsetUpdate. Sets subset id

Parameters:
id -
Method Detail

getId

public int getId()
Get subset id

Returns:
subset id

setId

public void setId(int id)
Set id of the subset to update

Parameters:
id -

getName

public String getName()
Get the name for the subset.

Returns:
subset name

setName

public void setName(String name)
Set the new name for the subset

Parameters:
name -

getDescription

public String getDescription()
Get the new description for the subset.

Returns:
subset description

setDescription

public void setDescription(String description)
Set the new description for the subset

Parameters:
description -

getExpression

public String getExpression()
Get the new subset expression for the subset

Returns:
subset expression XML string

setExpression

public void setExpression(String expression)
Set new expression. The rules for creating a subset expression at described in the description of Subset

Parameters:
expression -


Copyright © 2011. All Rights Reserved.