MCPcopy Create free account
hub / github.com/androrm/androrm / createObject

Method createObject

src/src/com/orm/androrm/Model.java:126–144  ·  view source on GitHub ↗
(
			
			Class<T> clazz,
			Cursor	 c
			
	)

Source from the content-addressed store, hash-verified

124 }
125
126 protected static final <T extends Model> T createObject(
127
128 Class<T> clazz,
129 Cursor c
130
131 ) {
132
133 T object = getInstace(clazz);
134
135 try {
136 fillUpData(object, clazz, c);
137 } catch(IllegalAccessException e) {
138 Log.e(TAG, "exception thrown while filling instance of "
139 + clazz.getSimpleName()
140 + " with data.", e);
141 }
142
143 return object;
144 }
145
146 private static final <T extends Model> void fillUpData(
147

Callers 2

createObjectMethod · 0.95
createObjectsMethod · 0.95

Calls 2

getInstaceMethod · 0.95
fillUpDataMethod · 0.95

Tested by

no test coverage detected