IDEMPIERE-1505 Missing getParameter_ToAsTimestamp() method in ProcessInfoParameter

This commit is contained in:
Carlos Ruiz 2014-01-15 10:17:18 -05:00
parent b9f272bbc3
commit 59965d5841
1 changed files with 14 additions and 1 deletions

View File

@ -35,7 +35,7 @@ public class ProcessInfoParameter implements Serializable
/** /**
* *
*/ */
private static final long serialVersionUID = 4536416337960754407L; private static final long serialVersionUID = -8571973325856537109L;
/** /**
* Construct Parameter * Construct Parameter
@ -171,6 +171,19 @@ public class ProcessInfoParameter implements Serializable
return "Y".equals(m_Parameter_To); return "Y".equals(m_Parameter_To);
} }
/**
* Method getParameter_To as Timestamp
* @return Timestamp
*/
public Timestamp getParameter_ToAsTimestamp()
{
if (m_Parameter_To == null)
return null;
if (m_Parameter_To instanceof Timestamp)
return (Timestamp) m_Parameter_To;
return null;
} // getParameter_ToAsTimestamp
/** /**
* Method getParameter as Timestamp * Method getParameter as Timestamp
* @return Object * @return Object