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

The following examples show how to use org.jdbi.v3.sqlobject.config.RegisterRowMapper. 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 File: ChallengeSQLiteProvider.java    From Guilds with 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 #2
Source File: FortuneJDBIImpl.java    From FrameworkBenchmarks with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@SqlQuery("select id, message from fortune")
@RegisterRowMapper(FortuneMapper.class)
List<Fortune> list();
 
Example #3
Source File: CooldownSQLiteProvider.java    From Guilds with 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 #4
Source File: CooldownMySQLProvider.java    From Guilds with 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 #5
Source File: CooldownMariaDBProvider.java    From Guilds with 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 #6
Source File: ArenaMySQLProvider.java    From Guilds with 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 #7
Source File: ArenaMySQLProvider.java    From Guilds with 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 #8
Source File: ArenaSQLiteProvider.java    From Guilds with 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 #9
Source File: ArenaSQLiteProvider.java    From Guilds with 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 #10
Source File: ArenaMariaDBProvider.java    From Guilds with 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 #11
Source File: ArenaMariaDBProvider.java    From Guilds with 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 #12
Source File: GuildSQLiteProvider.java    From Guilds with 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 #13
Source File: ChallengeSQLiteProvider.java    From Guilds with 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 #14
Source File: ChallengeMySQLProvider.java    From Guilds with 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 #15
Source File: ChallengeMySQLProvider.java    From Guilds with 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 #16
Source File: ChallengeMariaDBProvider.java    From Guilds with 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 #17
Source File: ChallengeMariaDBProvider.java    From Guilds with 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 #18
Source File: GuildMariaDBProvider.java    From Guilds with 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 #19
Source File: GuildMariaDBProvider.java    From Guilds with 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 #20
Source File: GuildMySQLProvider.java    From Guilds with 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 #21
Source File: GuildMySQLProvider.java    From Guilds with 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 #22
Source File: GuildSQLiteProvider.java    From Guilds with 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;