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

Quick Search    Search Deep

com.flexstor.ejb.disguise.persist
Class ServerDisguiseExtendData  view ServerDisguiseExtendData download ServerDisguiseExtendData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.ejb.disguise.persist.ServerDisguiseExtendData
All Implemented Interfaces:
java.io.Serializable

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

This is the dataobject used to retrieve information for a particular ServerDisguiseExtend. It is used exclusively by the client. This object is normally created by the Bean after a user request.

Version:
1.0, 04/19/99

Field Summary
protected  java.lang.String appName
           
protected  boolean bAsset
           
protected  boolean bElement
           
protected  boolean bIsLookup
           
protected  boolean bLoad
           
protected  boolean classify
           
protected  java.lang.String container
           
protected  java.util.Vector disguiseBuckets
           
protected  int id
           
static java.lang.String IDENTIFIER
           
protected  java.lang.String label
           
 
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
ServerDisguiseExtendData()
          Constructor : Create an Empty Disguise Data Object
 
Method Summary
 java.lang.String getAppName()
          Retrieve the Application Name for this Disguise
 java.util.Vector getBucketDataObjects()
          Returns a collection of DisguiseBuckets for this disguise.
 java.util.Enumeration getBucketFields(int id)
          This accepts a bucket id and returns a list of ServerFieldExtendData Objects
 java.util.Enumeration getBucketFields(java.lang.String bucketName)
          This accepts a bucket name and returns a list of ServerFieldExtendData Objects.
 int getBucketId(java.lang.String sBucketName)
          This accepts a bucket name and returns a bucket id
 java.lang.String getBucketName(int id)
          This accepts a bucket id and returns a bucket name
 java.lang.String getContainer()
          Returns the container name for this disguise
 int getId()
          Retrieve the Identifier for this Disguise.
 java.lang.String getLabel()
          Retrieve the label for the disguise.
 com.flexstor.ejb.bucket.persist.ServerBucketExtendData getServerBucketExtendDataObject(int id)
          This accepts a bucket id and returns a bucket name
 boolean hasAsset()
          This tells if a disguise has an Asset bucket
 boolean hasElement()
          This tells if a disguise has an element bucket
 boolean isClassify()
          Is this a classified disguise
 boolean isLookup()
          Returns true if this is a lookup disguise
 boolean orderBuckets()
          This is a helper function that will take the display fields and order them by position.
 void setAppName(java.lang.String app)
          Retrieve the Application Name for this Disguise
 void setAsset(boolean b)
          This tells if a disguise has an Asset bucket
 void setBucketDataObjects(java.util.Vector v)
          Returns a collection of DisguiseBuckets for this disguise.
 void setClassify(java.lang.String classify)
          Set Classify
 void setContainer(java.lang.String cont)
          Sets the container name for this disguise
 void setElement(boolean b)
          This tells if a disguise has an element bucket
 void setId(int id)
          Retrieve the Identifier for this Disguise.
 void setIsLookup(boolean bValue)
          Defines if this disguise is a lookup disguise or not.
 void setLabel(java.lang.String label)
          Set the label for the disguise.
 
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

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

label

protected java.lang.String label

appName

protected java.lang.String appName

bLoad

protected boolean bLoad

classify

protected boolean classify

container

protected java.lang.String container

id

protected int id

disguiseBuckets

protected java.util.Vector disguiseBuckets

bElement

protected boolean bElement

bAsset

protected boolean bAsset

bIsLookup

protected boolean bIsLookup
Constructor Detail

ServerDisguiseExtendData

public ServerDisguiseExtendData()
Constructor : Create an Empty Disguise Data Object

Method Detail

getAppName

public java.lang.String getAppName()
Retrieve the Application Name for this Disguise


getBucketDataObjects

public java.util.Vector getBucketDataObjects()
Returns a collection of DisguiseBuckets for this disguise.


getBucketFields

public java.util.Enumeration getBucketFields(int id)
This accepts a bucket id and returns a list of ServerFieldExtendData Objects


getBucketFields

public java.util.Enumeration getBucketFields(java.lang.String bucketName)
This accepts a bucket name and returns a list of ServerFieldExtendData Objects. This bucket name is the application bucket name.


getBucketName

public java.lang.String getBucketName(int id)
This accepts a bucket id and returns a bucket name


getBucketId

public int getBucketId(java.lang.String sBucketName)
This accepts a bucket name and returns a bucket id


getServerBucketExtendDataObject

public com.flexstor.ejb.bucket.persist.ServerBucketExtendData getServerBucketExtendDataObject(int id)
This accepts a bucket id and returns a bucket name


getContainer

public java.lang.String getContainer()
Returns the container name for this disguise


getId

public int getId()
Retrieve the Identifier for this Disguise.


getLabel

public java.lang.String getLabel()
Retrieve the label for the disguise.


hasAsset

public boolean hasAsset()
This tells if a disguise has an Asset bucket


hasElement

public boolean hasElement()
This tells if a disguise has an element bucket


isClassify

public boolean isClassify()
Is this a classified disguise


orderBuckets

public boolean orderBuckets()
This is a helper function that will take the display fields and order them by position. It uses a bubble sort algorithm which is slow for large Vectors, but should be acceptable because of the small number of displayable fields for a layout.

Since:
FlexDB 3.0

setAppName

public void setAppName(java.lang.String app)
Retrieve the Application Name for this Disguise


setAsset

public void setAsset(boolean b)
This tells if a disguise has an Asset bucket


setBucketDataObjects

public void setBucketDataObjects(java.util.Vector v)
Returns a collection of DisguiseBuckets for this disguise.


setClassify

public void setClassify(java.lang.String classify)
Set Classify


setContainer

public void setContainer(java.lang.String cont)
Sets the container name for this disguise


setElement

public void setElement(boolean b)
This tells if a disguise has an element bucket


setId

public void setId(int id)
Retrieve the Identifier for this Disguise.


setLabel

public void setLabel(java.lang.String label)
Set the label for the disguise.


setIsLookup

public void setIsLookup(boolean bValue)
Defines if this disguise is a lookup disguise or not. This value is extracted from the disguise properties in the database.


isLookup

public boolean isLookup()
Returns true if this is a lookup disguise