Java Code Examples for org.jdbi.v3.sqlobject.config.RegisterRowMapper

The following examples show how to use org.jdbi.v3.sqlobject.config.RegisterRowMapper. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Guilds   Source File: GuildSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>guild")
@RegisterRowMapper(GuildRowMapper.class)
List<Guild> getAllGuilds(@Define("prefix") @NotNull String prefix);
 
Example 2
Source Project: Guilds   Source File: GuildSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>guild WHERE id = :id")
@RegisterRowMapper(GuildRowMapper.class)
Guild getGuild(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 3
Source Project: Guilds   Source File: GuildMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>guild")
@RegisterRowMapper(GuildRowMapper.class)
List<Guild> getAllGuilds(@Define("prefix") @NotNull String prefix);
 
Example 4
Source Project: Guilds   Source File: GuildMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>guild WHERE id = :id")
@RegisterRowMapper(GuildRowMapper.class)
Guild getGuild(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 5
Source Project: Guilds   Source File: GuildMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>guild")
@RegisterRowMapper(GuildRowMapper.class)
List<Guild> getAllGuilds(@Define("prefix") @NotNull String prefix);
 
Example 6
Source Project: Guilds   Source File: GuildMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>guild WHERE id = :id")
@RegisterRowMapper(GuildRowMapper.class)
Guild getGuild(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 7
Source Project: Guilds   Source File: ChallengeMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>challenge")
@RegisterRowMapper(ChallengeRowMapper.class)
List<GuildChallenge> getAllChallenges(@Define("prefix") @NotNull String prefix);
 
Example 8
Source Project: Guilds   Source File: ChallengeMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>challenge WHERE id = :id")
@RegisterRowMapper(ChallengeRowMapper.class)
GuildChallenge getChallenge(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 9
Source Project: Guilds   Source File: ChallengeMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>challenge")
@RegisterRowMapper(ChallengeRowMapper.class)
List<GuildChallenge> getAllChallenges(@Define("prefix") @NotNull String prefix);
 
Example 10
Source Project: Guilds   Source File: ChallengeMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>challenge WHERE id = :id")
@RegisterRowMapper(ChallengeRowMapper.class)
GuildChallenge getChallenge(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 11
Source Project: Guilds   Source File: ChallengeSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>challenge")
@RegisterRowMapper(ChallengeRowMapper.class)
List<GuildChallenge> getAllChallenges(@Define("prefix") @NotNull String prefix);
 
Example 12
Source Project: Guilds   Source File: ChallengeSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>challenge WHERE id = :id")
@RegisterRowMapper(ChallengeRowMapper.class)
GuildChallenge getChallenge(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 13
Source Project: Guilds   Source File: ArenaMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>arena")
@RegisterRowMapper(ArenaRowMapper.class)
List<Arena> getAllArenas(@Define("prefix") @NotNull String prefix);
 
Example 14
Source Project: Guilds   Source File: ArenaMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>arena WHERE id = :id")
@RegisterRowMapper(ArenaRowMapper.class)
Arena getArena(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 15
Source Project: Guilds   Source File: ArenaSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>arena")
@RegisterRowMapper(ArenaRowMapper.class)
List<Arena> getAllArenas(@Define("prefix") @NotNull String prefix);
 
Example 16
Source Project: Guilds   Source File: ArenaSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>arena WHERE id = :id")
@RegisterRowMapper(ArenaRowMapper.class)
Arena getArena(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 17
Source Project: Guilds   Source File: ArenaMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>arena")
@RegisterRowMapper(ArenaRowMapper.class)
List<Arena> getAllArenas(@Define("prefix") @NotNull String prefix);
 
Example 18
Source Project: Guilds   Source File: ArenaMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>arena WHERE id = :id")
@RegisterRowMapper(ArenaRowMapper.class)
Arena getArena(@Define("prefix") @NotNull String prefix, @Bind("id") @NotNull String id) throws IOException;
 
Example 19
Source Project: Guilds   Source File: CooldownMariaDBProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>cooldowns")
@RegisterRowMapper(CooldownRowMapper.class)
List<Cooldown> getAllCooldowns(@Define("prefix") @NotNull String prefix);
 
Example 20
Source Project: Guilds   Source File: CooldownMySQLProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>cooldowns")
@RegisterRowMapper(CooldownRowMapper.class)
List<Cooldown> getAllCooldowns(@Define("prefix") @NotNull String prefix);
 
Example 21
Source Project: Guilds   Source File: CooldownSQLiteProvider.java    License: MIT License 4 votes vote down vote up
@Override
@SqlQuery("SELECT * FROM <prefix>cooldowns")
@RegisterRowMapper(CooldownRowMapper.class)
List<Cooldown> getAllCooldowns(@Define("prefix") @NotNull String prefix);
 
Example 22
@SqlQuery("select id, message from fortune")
@RegisterRowMapper(FortuneMapper.class)
List<Fortune> list();