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

Quick Search    Search Deep

com.flexstor.common.data
Class AssetRecordData  view AssetRecordData download AssetRecordData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.KeyedCollectionData
          extended bycom.flexstor.common.data.RecordData
              extended bycom.flexstor.common.data.AssetRecordData
All Implemented Interfaces:
com.flexstor.common.constants.ActionPropertiesI, java.io.Serializable

public class AssetRecordData
extends RecordData

The record data object representing an asset


Field Summary
private  int nArchiveStatus
          This field represents the archive status of the asset which corresponds directly to the archive_status column in the database.
private  int nStatus
           
(package private) static long serialVersionUID
           
 
Fields inherited from class com.flexstor.common.data.RecordData
childrenRecs, data, nBucketType, nRecordId, nStructureId, traversalPathInfo
 
Fields inherited from class com.flexstor.common.data.KeyedCollectionData
 
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
 
Fields inherited from interface com.flexstor.common.constants.ActionPropertiesI
ACTION, ADD_TO_ASSETS_INPROCESS, APPLETALK_VENDOR, ARCHIVE_ID, BADFILES_HASHTABLE, BADRECORDS_VECTOR, CALLBACK_OBJECT, CHECKEDOUT_PATH, CHECKIN_DATETIME, CLASSIFIED, CONFIRM_TEXT, CONFIRMATION_DATA, CONVERSION_MODE, CONVERSION_TARGET, CONVERT_CONFIG_FILE, CUST_ID, CUSTOMIZED_PROCESS, DEFAULT_VIEW_ASSET, DEFAULT_VIEW_ASSET_ID, DELETE_DIRECTORY, DELETE_EMPTY_BUCKETS, DELETE_ORIGINAL, DESCRIPTION, DESTINATION_FILENAME, DESTINATION_LOCATION, DESTINATION_SERVER, DISK_SPACE_REQUIRED, DO_LOGIN, DUP_ARCHIVE_ID, EMAIL_ADDRESS, EMAIL_CC, EMAIL_MESSAGE, EMAIL_RETRY_COUNT, EMAIL_SENDER, EMAIL_SUBJECT, ERROR_HASHTABLE, FILE_GROUPID, FILE_LIST, FILE_PERMISSIONS, FILE_USERID, FILENAME, FILES_INPROGRESS, FILESIZE, FLEX_ARCH_ERROR, FTP_CREATE_DIRS, FTP_HOST_NAME, FTP_PASSWORD, FTP_REMOTE_DIR, FTP_TRANSFER_MODE, FTP_USER_NAME, GOODFILES_HASHTABLE, HELD_RECORDS, HOT_DIRECTORY, IS_FLAT_MODE, IS_LOCATION_IN_SERVER, IS_OVERWRITE, KEEP_LOWRES, KEEP_MACBINARIES, KEEP_RESOURCEFORK, LOCATION, LOWRESEXTRACT_TARGET, MACBINARY_FORMAT, MANUAL_DATA, MESSAGE_STRING, MODIFICATION_DATE, ORIGINAL_FILENAME, ORIGINAL_LOCATION, ORIGINAL_SERVER, PRESERVE_NAME, REGENERATE_THUMBNAIL, RESOLVE_LOOKUPS, RESOLVED_LOCATION, RESOURCEFORK_ACTION, RESTORE_LOCATION, RESTORE_ORIGINAL, RESTORE_SESSIONS, RESULT_STATUS, ROLE_ID, RSRC_ARCHIVE_ID, RSRC_DUP_ARCHIVE_ID, RSRC_FILE_LIST, SEND_ORIGINAL, SEND_SERVICE_TYPE, SERVER, SERVICE_DATE, SOURCE_FILENAME, SOURCE_FILESIZE, SOURCE_LOCATION, SOURCE_RECORD, SOURCE_SERVER, STEP_NUMBER, SYSTEM_USER_ID, SYSTEM_USER_PASSWORD, THREAD_GROUP_NAME, TPI_ERROR, UPDATE_STATUS, URL_STRING, USE_CONVERT_SERVICE, USE_EXTRACT_SERVICE, USE_ZIP_SERVICE, USER_ID, VECTOR_HOLDER, VERSION_FILENAME, VERSION_FILESIZE, VERSION_LOCATION, VERSION_NUMBER, VERSION_NUMBER_PREVIOUS, VERSION_SERVER, VOLUME_PATH, ZIP_FILENAME, ZIP_FILEPATH, ZIP_LOCATION
 
Constructor Summary
AssetRecordData()
           
 
Method Summary
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
 boolean equals(java.lang.Object obj)
          Determine whether this Object is semantically equal to another Object.
 java.lang.Integer getAppleTalkVendor()
           
 int getArchiveStatus()
          Returns the nArchiveStatus, the actual archive status of the asset in the database
 long getAssetId()
           
 java.lang.Long getDefaultViewAssetId()
           
 java.lang.String getDestinationFileName()
           
 java.lang.String getDestinationFilePath()
           
 java.lang.String getDestinationLocation()
           
 long getElemId()
           
 java.lang.String getFileName()
           
 java.lang.String getFilePath()
           
 java.lang.Long getFileSize()
           
 java.lang.String getLocation()
           
 java.lang.Integer getRoleId()
           
 java.lang.String getServer()
           
 int getStatus()
           
 boolean isDefaultViewAsset()
           
 java.lang.Boolean isKeepResourceFork()
           
 java.lang.Boolean isMacBinaryFormat()
           
 void setAppleTalkVendor(java.lang.Integer value)
           
 void setArchiveStatus(int nArchiveStatus)
          Sets the nArchiveStatus, the actual archive status of the asset in the database
 void setAsDefaultViewAsset()
           
 void setDefaultViewAssetId(java.lang.Long defaultId)
           
 void setDestinationFileName(java.lang.String value)
           
 void setDestinationLocation(java.lang.String value)
           
 void setFileName(java.lang.String value)
           
 void setFileSize(java.lang.Long value)
           
 void setKeepResourceFork(java.lang.Boolean value)
           
 void setLocation(java.lang.String value)
           
 void setMacBinaryFormat(java.lang.Boolean value)
           
 void setRoleId(java.lang.Integer value)
           
 void setServer(java.lang.String value)
           
 void setStatus(int status)
           
 void unsetAsDefaultViewAsset()
           
 
Methods inherited from class com.flexstor.common.data.RecordData
addChildRecord, fillCloneInfo, getBucketType, getChildrenRecords, getData, getProperties, getRecordId, getStructureId, getTraversalPathInfo, setBucketType, setChildrenRecords, setData, setProperties, setRecordId, setStructureId, setTraversalPathInfo
 
Methods inherited from class com.flexstor.common.data.KeyedCollectionData
getBoolean, getDate, getInteger, getKeyedCollection, getLong, getObject, getString, removeObject, setBoolean, setDate, setInteger, setKeyedCollection, setLong, setObject, setString
 
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
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

nStatus

private int nStatus

nArchiveStatus

private int nArchiveStatus
This field represents the archive status of the asset which corresponds directly to the archive_status column in the database. These values can also be found in com.flexstor.common.data.AssetRecordData

Constructor Detail

AssetRecordData

public AssetRecordData()
Method Detail

setRoleId

public void setRoleId(java.lang.Integer value)

getRoleId

public java.lang.Integer getRoleId()

setServer

public void setServer(java.lang.String value)

getServer

public java.lang.String getServer()

setLocation

public void setLocation(java.lang.String value)

getLocation

public java.lang.String getLocation()

setFileName

public void setFileName(java.lang.String value)

getFileName

public java.lang.String getFileName()

getFilePath

public java.lang.String getFilePath()

setFileSize

public void setFileSize(java.lang.Long value)

getFileSize

public java.lang.Long getFileSize()

setAppleTalkVendor

public void setAppleTalkVendor(java.lang.Integer value)

getAppleTalkVendor

public java.lang.Integer getAppleTalkVendor()

setKeepResourceFork

public void setKeepResourceFork(java.lang.Boolean value)

isKeepResourceFork

public java.lang.Boolean isKeepResourceFork()

setMacBinaryFormat

public void setMacBinaryFormat(java.lang.Boolean value)

isMacBinaryFormat

public java.lang.Boolean isMacBinaryFormat()

setDestinationLocation

public void setDestinationLocation(java.lang.String value)

getDestinationLocation

public java.lang.String getDestinationLocation()

setDestinationFileName

public void setDestinationFileName(java.lang.String value)

getDestinationFileName

public java.lang.String getDestinationFileName()

getDestinationFilePath

public java.lang.String getDestinationFilePath()

getAssetId

public long getAssetId()

getElemId

public long getElemId()

getDefaultViewAssetId

public java.lang.Long getDefaultViewAssetId()

setDefaultViewAssetId

public void setDefaultViewAssetId(java.lang.Long defaultId)

setAsDefaultViewAsset

public void setAsDefaultViewAsset()

unsetAsDefaultViewAsset

public void unsetAsDefaultViewAsset()

isDefaultViewAsset

public boolean isDefaultViewAsset()

setStatus

public void setStatus(int status)

getStatus

public int getStatus()

clone

public java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 


equals

public boolean equals(java.lang.Object obj)
Description copied from class: java.lang.Object
Determine whether this Object is semantically equal to another Object.

There are some fairly strict requirements on this method which subclasses must follow:

  • It must be transitive. If a.equals(b) and b.equals(c), then a.equals(c) must be true as well.
  • It must be symmetric. a.equals(b) and b.equals(a) must have the same value.
  • It must be reflexive. a.equals(a) must always be true.
  • It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
  • a.equals(null) must be false.
  • It must be consistent with hashCode(). That is, a.equals(b) must imply a.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.

This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for a.equals(b) to be true even though a.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.

In general, the Collections API (java.util) use the equals method rather than the == operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.

The default implementation returns this == o.


getArchiveStatus

public int getArchiveStatus()
Returns the nArchiveStatus, the actual archive status of the asset in the database


setArchiveStatus

public void setArchiveStatus(int nArchiveStatus)
Sets the nArchiveStatus, the actual archive status of the asset in the database