Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.data.ejb.disguiserecord
Class DisguiseRecordData  view DisguiseRecordData download DisguiseRecordData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData
All Implemented Interfaces:
java.io.Serializable

public class DisguiseRecordData
extends com.flexstor.common.data.ejb.Data

DisguiseRecordData is a class that Holds the data for a disguise record.

Since:
FLEXSTOR.db 3.0 Revision History Description of Change ---------------- --------------------------------------------------- WT 05/11/99 Creation
Version:
1.0, 05/11/99

Field Summary
protected  boolean bAllocRollbackSgmnt
           
protected  boolean bToClassify
           
protected  int nDisguiseId
           
protected  java.util.Vector vBucketRecordData
           
protected  java.util.Vector vErrors
           
 
Fields inherited from class com.flexstor.common.data.ejb.Data
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE
 
Constructor Summary
DisguiseRecordData()
           
 
Method Summary
 void addBucket(DisguiseBucketRecordData bucket)
           
 boolean allocateRollBackSegment()
           
 java.lang.Object cloneData()
           
 int deleteAsset(DisguiseAssetRecordData assetToDelete)
          Delete all assets (primary, parents, children) that are represented by the argument asset
 void deleteAssets(java.lang.String sAssetRole, java.lang.String sAssetType, java.lang.String sAssetFlag)
          Delete all assets that matches the role, type and temp/parent flag specified
 int deleteBucket(GenericBucketRecordData bucketToDelete)
          Delete all buckets that are represented by the argument bucket.
 int deleteElement(DisguiseElementRecordData elementToDelete)
          Delete all elements that are represented by the argument element.
 java.util.Vector getAssets(java.lang.String sAssetRole, java.lang.String sAssetType, java.lang.String sAssetFlag)
          Get a list of all assets that matches the role, type and temp/parent flag specified This method also set the traversal path information for each asset, only if the record ids are already set, otherwise, callin the getTraversalInfo() in the asset will return null.
 DisguiseBucketRecordData[] getBuckets()
           
 java.util.Vector getBucketsAsVector()
           
 int getDisguiseId()
           
 java.util.Vector getErrors()
          Retrieve any error messages generated by a call to DisguiseRecordPersistBean
 java.util.Vector getPrimaryAssets()
          Get a list of all primary assets This method also returns the traversal path information for each asset, only if the record ids have been set already, otherwise, calling the getTraversalInfo() in the asset will return null.
 void setAllocateRollBackSegment(boolean bAllocate)
           
 boolean setBucket(DisguiseBucketRecordData[] buckets)
           
 boolean setDisguiseId(int disguiseId)
           
 void setErrors(java.util.Vector vErrors)
          Add error messages generated by a call to DisguiseRecordPersistBean The elements of the Vector are Strings of the following format: 1000,%%1,%%2,%%3 where the first item is the resource id and the next, if any, are arguments to be included in the resource
 void setToClassify(boolean bToClassify)
           
 boolean toClassify()
           
 
Methods inherited from class com.flexstor.common.data.ejb.Data
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vBucketRecordData

protected java.util.Vector vBucketRecordData

nDisguiseId

protected int nDisguiseId

bToClassify

protected boolean bToClassify

bAllocRollbackSgmnt

protected boolean bAllocRollbackSgmnt

vErrors

protected java.util.Vector vErrors
Constructor Detail

DisguiseRecordData

public DisguiseRecordData()
Method Detail

setBucket

public boolean setBucket(DisguiseBucketRecordData[] buckets)

addBucket

public void addBucket(DisguiseBucketRecordData bucket)

getBuckets

public DisguiseBucketRecordData[] getBuckets()

getBucketsAsVector

public java.util.Vector getBucketsAsVector()

getDisguiseId

public int getDisguiseId()

setDisguiseId

public boolean setDisguiseId(int disguiseId)

toClassify

public boolean toClassify()

setToClassify

public void setToClassify(boolean bToClassify)

setAllocateRollBackSegment

public void setAllocateRollBackSegment(boolean bAllocate)

allocateRollBackSegment

public boolean allocateRollBackSegment()

getAssets

public java.util.Vector getAssets(java.lang.String sAssetRole,
                                  java.lang.String sAssetType,
                                  java.lang.String sAssetFlag)
Get a list of all assets that matches the role, type and temp/parent flag specified This method also set the traversal path information for each asset, only if the record ids are already set, otherwise, callin the getTraversalInfo() in the asset will return null.


getPrimaryAssets

public java.util.Vector getPrimaryAssets()
Get a list of all primary assets This method also returns the traversal path information for each asset, only if the record ids have been set already, otherwise, calling the getTraversalInfo() in the asset will return null.


deleteAssets

public void deleteAssets(java.lang.String sAssetRole,
                         java.lang.String sAssetType,
                         java.lang.String sAssetFlag)
Delete all assets that matches the role, type and temp/parent flag specified


deleteAsset

public int deleteAsset(DisguiseAssetRecordData assetToDelete)
Delete all assets (primary, parents, children) that are represented by the argument asset


deleteElement

public int deleteElement(DisguiseElementRecordData elementToDelete)
Delete all elements that are represented by the argument element. This call is recursive; it will parse all the tree structure until the desired element is found; if multiple instances of this element are found, all of them will be removed.


deleteBucket

public int deleteBucket(GenericBucketRecordData bucketToDelete)
Delete all buckets that are represented by the argument bucket. This call is recursive; it will parse all the tree structure until the desired bucket is found; if multiple instances of this bucket are found, all of them will be removed.


setErrors

public void setErrors(java.util.Vector vErrors)
Add error messages generated by a call to DisguiseRecordPersistBean The elements of the Vector are Strings of the following format: 1000,%%1,%%2,%%3 where the first item is the resource id and the next, if any, are arguments to be included in the resource


getErrors

public java.util.Vector getErrors()
Retrieve any error messages generated by a call to DisguiseRecordPersistBean


cloneData

public java.lang.Object cloneData()