1 package org.tigris.scarab.om; 2 3 import java.util.List ; 4 5 import org.apache.torque.TorqueException; 6 import org.apache.torque.util.Criteria; 7 8 53 54 63 public class AttributeOptionPeer 64 extends org.tigris.scarab.om.BaseAttributeOptionPeer 65 { 66 70 public static List getSortedAttributeOptions() { 71 List attributeOptions = null; 72 try 73 { 74 Criteria crit = new Criteria(); 75 crit.addAscendingOrderByColumn(AttributeOptionPeer.ATTRIBUTE_ID); 76 crit.addAscendingOrderByColumn(AttributeOptionPeer.OPTION_ID); 77 attributeOptions = doSelect(crit); 78 attributeOptions.remove(0); 79 } 80 catch (TorqueException e) 81 { 82 e.printStackTrace(); 84 } 85 return attributeOptions; 86 } 87 88 } 89 90 | Popular Tags |