public < T extends D6Model > T [ ] execSelectTable ( Class < T > modelClazz ) { final DBTable dbTable = modelClazz . getAnnotation ( DBTable . class ) ; final String dbTableName = dbTable . tableName ( ) ; return ( T [ ] ) execSelectTable ( "SELECT * FROM " + dbTableName , modelClazz ) ; }
Execute select statement and returns the all lines of rows corresponding to the specified model class as array of Objects