TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
Index
» tavernerPOS : Blob 68a57a / src / com / floreantpos / model / dao / HibernateProjectionsUtil.java
package com.floreantpos.model.dao;
public class HibernateProjectionsUtil {
public static int getInt(Object[] array, int index) {
if (array.length < (index + 1))
return 0;
Number number = (Number) array[index];
if (number == null)
return 0;
return number.intValue();
}
public static double getDouble(Object[] array, int index) {
if (array.length < (index + 1))
return 0;
Number number = (Number) array[index];
if (number == null)
return 0;
return number.doubleValue();
}
}
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 36201942