1 package org.apache.torque.om; 2 3 21 22 30 public abstract class SimpleKey extends ObjectKey 31 { 32 37 public static SimpleKey keyFor(java.math.BigDecimal key) 38 { 39 return new NumberKey(key); 40 } 41 42 47 public static SimpleKey keyFor(int key) 48 { 49 return new NumberKey(key); 50 } 51 52 57 public static SimpleKey keyFor(long key) 58 { 59 return new NumberKey(key); 60 } 61 62 67 public static SimpleKey keyFor(double key) 68 { 69 return new NumberKey(key); 70 } 71 72 77 public static SimpleKey keyFor(Number key) 78 { 79 return new NumberKey(key); 80 } 81 82 87 public static SimpleKey keyFor(NumberKey key) 88 { 89 return new NumberKey(key); 90 } 91 92 97 public static SimpleKey keyFor(String key) 98 { 99 return new StringKey(key); 100 } 101 102 107 public static SimpleKey keyFor(StringKey key) 108 { 109 return new StringKey(key); 110 } 111 112 117 public static SimpleKey keyFor(java.util.Date key) 118 { 119 return new DateKey(key); 120 } 121 122 127 public static SimpleKey keyFor(DateKey key) 128 { 129 return new DateKey(key); 130 } 131 } 132 | Popular Tags |