当前位置: 首页>>代码示例>>Java>>正文


Java MapResultAsBean类代码示例

本文整理汇总了Java中org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean的典型用法代码示例。如果您正苦于以下问题:Java MapResultAsBean类的具体用法?Java MapResultAsBean怎么用?Java MapResultAsBean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MapResultAsBean类属于org.skife.jdbi.v2.sqlobject.helpers包,在下文中一共展示了MapResultAsBean类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: findAllWithAccesses

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.contentid AS contentid, c.size AS size, " +
        "c.url AS url, c.path AS path, c.cachedate AS cachedate, " +
        "c.downloaded AS downloaded, c.prefetched AS prefetched, " +
        "c.vimeoprefetched AS prefetchedvimeo, co.timestamp AS timestamp " +
        "FROM content c " +
        "LEFT JOIN contentaccess co " +
        "ON co.contentid = c.contentid")
@MapResultAsBean
public abstract List<ContentDAO.ContentAccessJoinRow> findAllWithAccesses();
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:10,代码来源:AbstractContentDAO.java

示例2: findAllCostSegmentsByLinkD

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.TYPE as type, c.SUBTYPE as subtype, c.INPUTUNIT as inputUnit, "
		+ "c.OUTPUTUNIT as outputUnit, LEFTBORDER as leftBorder, seg.RIGHTBORDER as rightBorder, "
		+ "seg.A as a, seg.B as b, c.LOCALLINKID as linkID, c.LOCALISPNAME as ispName "
		+ "FROM COSTFUNCTION c "
		+ "LEFT JOIN SEGMENT seg "
		+ "ON (c.LOCALLINKID = seg.LOCALLINKID AND c.LOCALISPNAME = seg.LOCALISPNAME) "
		+ "WHERE c.LOCALLINKID = :localLinkID AND c.LOCALISPNAME = :localIspName")
@MapResultAsBean
public abstract List<CostFunctionSegmentJoinRow> findAllCostSegmentsByLinkD(@BindBean SimpleLinkID linkID);
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:10,代码来源:AbstractCostFunctionDAO.java

示例3: findAll

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.TYPE as type, c.SUBTYPE as subtype, c.INPUTUNIT as inputUnit, "
		+ "c.OUTPUTUNIT as outputUnit, LEFTBORDER as leftBorder, seg.RIGHTBORDER as rightBorder, "
		+ "seg.A as a, seg.B as b, c.LOCALLINKID as linkID, c.LOCALISPNAME as ispName "
		+ "FROM COSTFUNCTION c "
		+ "LEFT JOIN SEGMENT seg "
		+ "ON (c.LOCALLINKID = seg.LOCALLINKID AND c.LOCALISPNAME = seg.LOCALISPNAME) ")
@MapResultAsBean
public abstract List<CostFunctionSegmentJoinRow> findAll();
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:9,代码来源:AbstractCostFunctionDAO.java

示例4: findAll

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.CLOUDDCNAME AS cloudName, c.ASNUMBER AS asNumber, "
		+ "c.DAROUTERADDRESS AS daRouterAddress, c.SDNADDRESS AS sdnAddress, "
		+ "p.PREFIX AS prefix, p.PREFIXLENGTH AS prefixLength, a.SBOXADDRPREFIX AS sboxAddress "
		+ "FROM CLOUDDC c "
		+ "LEFT JOIN SDNCONTROLLER s ON c.SDNADDRESS = s.ADDRESS "
		+ "LEFT JOIN DAROUTER d ON c.DAROUTERADDRESS = d.ADDRESS "
		+ "LEFT JOIN PREFIXES p ON c.CLOUDDCNAME = p.CLOUDDCNAME "
		+ "JOIN ASYSTEM a ON a.ASNUMBER=c.ASNUMBER")
@MapResultAsBean
public abstract List<CloudPrefixJoinRow> findAll();
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:11,代码来源:AbstractCloudDCDAO.java

示例5: findLocalClouds

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.CLOUDDCNAME AS cloudName, c.ASNUMBER AS asNumber, "
		+ "c.DAROUTERADDRESS AS daRouterAddress, c.SDNADDRESS AS sdnAddress, "
		+ "p.PREFIX AS prefix, p.PREFIXLENGTH AS prefixLength, a.SBOXADDRPREFIX AS sboxAddress "
		+ "FROM CLOUDDC c "
		+ "LEFT JOIN SDNCONTROLLER s ON c.SDNADDRESS = s.ADDRESS "
		+ "LEFT JOIN DAROUTER d ON c.DAROUTERADDRESS = d.ADDRESS "
		+ "LEFT JOIN PREFIXES p ON c.CLOUDDCNAME = p.CLOUDDCNAME "
		+ "JOIN ASYSTEM a ON a.ASNUMBER=c.ASNUMBER "
		+ "WHERE a.LOCAL = 1")
@MapResultAsBean
public abstract List<CloudPrefixJoinRow> findLocalClouds();
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:AbstractCloudDCDAO.java

示例6: findRemoteClouds

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.CLOUDDCNAME AS cloudName, c.ASNUMBER AS asNumber, "
		+ "c.DAROUTERADDRESS AS daRouterAddress, c.SDNADDRESS AS sdnAddress, "
		+ "p.PREFIX AS prefix, p.PREFIXLENGTH AS prefixLength, a.SBOXADDRPREFIX AS sboxAddress "
		+ "FROM CLOUDDC c "
		+ "LEFT JOIN SDNCONTROLLER s ON c.SDNADDRESS = s.ADDRESS "
		+ "LEFT JOIN DAROUTER d ON c.DAROUTERADDRESS = d.ADDRESS "
		+ "LEFT JOIN PREFIXES p ON c.CLOUDDCNAME = p.CLOUDDCNAME "
		+ "JOIN ASYSTEM a ON a.ASNUMBER=c.ASNUMBER "
		+ "WHERE a.LOCAL = 0")
@MapResultAsBean
public abstract List<CloudPrefixJoinRow> findRemoteClouds();
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:AbstractCloudDCDAO.java

示例7: findById

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.CLOUDDCNAME AS cloudName, c.ASNUMBER AS asNumber, "
		+ "c.DAROUTERADDRESS AS daRouterAddress, c.SDNADDRESS AS sdnAddress, "
		+ "p.PREFIX AS prefix, p.PREFIXLENGTH as prefixLength, a.SBOXADDRPREFIX AS sboxAddress "
		+ "FROM CLOUDDC c "
		+ "LEFT JOIN SDNCONTROLLER s ON c.SDNADDRESS = s.ADDRESS "
		+ "LEFT JOIN DAROUTER d ON c.DAROUTERADDRESS = d.ADDRESS "
		+ "LEFT JOIN PREFIXES p ON c.CLOUDDCNAME = p.CLOUDDCNAME "
		+ "JOIN ASYSTEM a ON a.ASNUMBER=c.ASNUMBER "
		+ "WHERE c.CLOUDDCNAME = :name ")
@MapResultAsBean
public abstract List<CloudPrefixJoinRow> findById(@Bind("name") String name);
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:AbstractCloudDCDAO.java

示例8: findByASNumber

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT c.CLOUDDCNAME AS cloudName, c.ASNUMBER AS asNumber, "
		+ "c.DAROUTERADDRESS AS daRouterAddress, c.SDNADDRESS AS sdnAddress, "
		+ "p.PREFIX AS prefix, p.PREFIXLENGTH as prefixLength, a.SBOXADDRPREFIX AS sboxAddress "
		+ "FROM CLOUDDC c "
		+ "LEFT JOIN SDNCONTROLLER s ON c.SDNADDRESS = s.ADDRESS "
		+ "LEFT JOIN DAROUTER d ON c.DAROUTERADDRESS = d.ADDRESS "
		+ "LEFT JOIN PREFIXES p ON c.CLOUDDCNAME = p.CLOUDDCNAME "
		+ "JOIN ASYSTEM a ON a.ASNUMBER=c.ASNUMBER "
		+ "WHERE c.ASNUMBER=:asNumber")
@MapResultAsBean
public abstract List<CloudPrefixJoinRow> findByASNumber(@Bind("asNumber") int asNumber);
 
开发者ID:smartenit-eu,项目名称:smartenit,代码行数:12,代码来源:AbstractCloudDCDAO.java

示例9: listSubjects

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery(SELECT_SUBJECT + "order by subject_parent_id asc")
@MapResultAsBean
List<PandasSubject> listSubjects();
 
开发者ID:nla,项目名称:bamboo,代码行数:4,代码来源:PandasDAO.java

示例10: listCollections

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("select COL_ID id, DISPLAY_COMMENT displayComment, DISPLAY_ORDER displayOrder, IS_DISPLAYED displayed, NAME name, COL_PARENT_ID parentId from COL")
@MapResultAsBean
List<PandasCollection> listCollections();
 
开发者ID:nla,项目名称:bamboo,代码行数:4,代码来源:PandasDAO.java

示例11: listAgencies

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("select AGENCY_ID id, NAME name, LOGO logo, ORGANISATION.NAME name, ORGANISATION.URL url from agency left join organisation on ORGANISATION.ORGANISATION_ID = AGENCY.ORGANISATION_ID")
@MapResultAsBean
List<PandasAgency> listAgencies();
 
开发者ID:nla,项目名称:bamboo,代码行数:4,代码来源:PandasDAO.java

示例12: findEnabledUsersWithRolesAndPermissions

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery(EnabledUserRolesPermissionsBaseSelectPrefix + "users.username = :username")
@MapResultAsBean
@Transaction(value = TransactionIsolationLevel.READ_COMMITTED)
protected abstract Iterator<UserRolePermissionJoinRow> findEnabledUsersWithRolesAndPermissions(@Bind("username") String username);
 
开发者ID:Multifarious,项目名称:shiro-jdbi-realm,代码行数:5,代码来源:DefaultJdbiUserSecurityDAO.java

示例13: findUsersWithRolesAndPermissions

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery(UserRolesPermissionsBaseSelectPrefix + "users.username = :username")
@MapResultAsBean
@Transaction(value = TransactionIsolationLevel.READ_COMMITTED)
protected abstract Iterator<UserRolePermissionJoinRow> findUsersWithRolesAndPermissions(@Bind("username") String username);
 
开发者ID:Multifarious,项目名称:shiro-jdbi-realm,代码行数:5,代码来源:DefaultJdbiUserSecurityDAO.java

示例14: findEnabledUsersWithoutRoles

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT user_Id AS id, username, password FROM users WHERE enabled AND username = :username")
@MapResultAsBean
@Transaction(value = TransactionIsolationLevel.READ_COMMITTED)
protected abstract Iterator<DefaultUserImpl> findEnabledUsersWithoutRoles(@Bind("username") String username);
 
开发者ID:Multifarious,项目名称:shiro-jdbi-realm,代码行数:5,代码来源:DefaultJdbiUserSecurityDAO.java

示例15: findUsersWithoutRoles

import org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean; //导入依赖的package包/类
@SqlQuery("SELECT user_Id AS id, username, password FROM users WHERE username = :username")
@MapResultAsBean
@Transaction(value = TransactionIsolationLevel.READ_COMMITTED)
protected abstract Iterator<DefaultUserImpl> findUsersWithoutRoles(@Bind("username") String username);
 
开发者ID:Multifarious,项目名称:shiro-jdbi-realm,代码行数:5,代码来源:DefaultJdbiUserSecurityDAO.java


注:本文中的org.skife.jdbi.v2.sqlobject.helpers.MapResultAsBean类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。