MCPcopy Index your code
hub / github.com/annmuor/jnode / get

Method get

jnode-core/src/jnode/orm/ORMManager.java:160–183  ·  view source on GitHub ↗
(final Class<? extends T> clazz)

Source from the content-addressed store, hash-verified

158 }
159
160 @SuppressWarnings("unchecked")
161 public static <T> GenericDAO<T> get(final Class<? extends T> clazz) {
162 GenericDAO<T> ret = (GenericDAO<T>) INSTANSE.genericDAOMap.get(clazz);
163 if (ret == null) {
164 try {
165 ret = new GenericDAO<T>() {
166
167 @Override
168 protected Class<?> getType() {
169 // TODO Auto-generated method stub
170 return clazz;
171 }
172 };
173 INSTANSE.genericDAOMap.put(clazz, ret);
174 } catch (Exception e) {
175 for (int i = 0; i < 10; i++)
176 logger.l1("!!! FATAL !!! Exception while creation DAO for "
177 + clazz.getCanonicalName());
178 logger.l1("jNode have to shutdow during critical error", e);
179 System.exit(0);
180 }
181 }
182 return ret;
183 }
184
185 public static ConnectionSource getSource() throws Exception {
186 if (INSTANSE.source != null) {

Callers 15

listEchoareasMethod · 0.95
listLinksMethod · 0.95
listRoutingMethod · 0.95
listSubscriptionMethod · 0.95
runMethod · 0.95
runMethod · 0.95
getTextMethod · 0.95
getTextMethod · 0.95
joinMethod · 0.95
InstallUtilMethod · 0.95
doInstallMethod · 0.95
execQueryMethod · 0.95

Calls 1

l1Method · 0.80

Tested by 10

prepareNewsMessagesMethod · 0.76
testRead2DMethod · 0.36
testRead2DSmartMethod · 0.36
testRead2DSmart2Method · 0.36
testRead2DBadMethod · 0.36
testRead2DBad2Method · 0.36
testStore2Method · 0.36
checkMethod · 0.36
testArrayStringMethod · 0.36
testArrayIntMethod · 0.36