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.Serializable
Holds 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 MediumAccessData
fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
Constructs an instance ofMediumAccessData
from a given wrapper of the corresponding native type.java.util.Date
getCreationDate()
java.util.Date
getLastWriteAccess()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
fromNative
public static MediumAccessData fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
Constructs an instance ofMediumAccessData
from a given wrapper of the corresponding native type.- Parameters:
mediumInfoType
- An instance of MediumInfoType corresponding to the same medium.- Returns:
- The instance of
MediumAccessData
corresponding to the same medium a the given MediumInfoType does.
-
-