Find All
Definition
The findAll method allows you to get all records of a table.
Available methods
findAll(KColumnAllowedToSelect... selects): Receives a variable quantity of columns and values that will be added to theSELECTlist. Among the possible values are:KTableColumn,KColumn,Values,KCondition,Columns with over,Columns with alias,KRaw,Case conditional expression.findAll(String jdbc, KColumnAllowedToSelect... selects): Receives the name of datasource connection to which you need to connect and a variable quantity of columns and values that will be added to theSELECTlist. Among the possible values are:KTableColumn,KColumn,Values,KCondition,Columns with over,Columns with alias,KRaw,Case conditional expression.
Example: KColumnAllowedToSelect...
Java code:
final KCollection<Language> languages = languageRepository.findAll(
LANGUAGE.NAME,
LANGUAGE.FILE
);
SQL generated:
SELECT la.name, la.file
FROM language la
Parameters:
- None
Example: String, KColumnAllowedToSelect...
Java code:
final KCollection<Language> languages = languageRepository.findAll(
K.JDBC_LEGACY,
LANGUAGE.NAME,
LANGUAGE.FILE
);
SQL generated:
SELECT la.name, la.file
FROM language la
Parameters:
- None