Package com.saperion.rmi.storage
Class MediumAccessData
- java.lang.Object
-
- com.saperion.rmi.storage.MediumAccessData
-
- All Implemented Interfaces:
java.io.Serializable
public class MediumAccessData extends java.lang.Object implements java.io.SerializableHolds information about the access to a given medium.- Author:
- jschwarz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MediumAccessData(java.util.Date creationDate, java.util.Date lastWriteAccess)Literal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediumAccessDatafromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)Constructs an instance ofMediumAccessDatafrom a given wrapper of the corresponding native type.java.util.DategetCreationDate()java.util.DategetLastWriteAccess()java.lang.StringtoString()
-
-
-
Constructor Detail
-
MediumAccessData
public MediumAccessData(java.util.Date creationDate, java.util.Date lastWriteAccess)Literal constructor. The parameters must not be null.- Parameters:
creationDate-getCreationDate()lastWriteAccess-getLastWriteAccess()
-
-
Method Detail
-
getCreationDate
public java.util.Date getCreationDate()
- Returns:
- The date and time the medium was created.
-
getLastWriteAccess
public java.util.Date getLastWriteAccess()
- Returns:
- The date and time the medium was last written to
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
fromNative
public static MediumAccessData fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
Constructs an instance ofMediumAccessDatafrom a given wrapper of the corresponding native type.- Parameters:
mediumInfoType- An instance of MediumInfoType corresponding to the same medium.- Returns:
- The instance of
MediumAccessDatacorresponding to the same medium a the given MediumInfoType does.
-
-