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


Java StringBundler.toString方法代码示例

本文整理汇总了Java中com.liferay.portal.kernel.util.StringBundler.toString方法的典型用法代码示例。如果您正苦于以下问题:Java StringBundler.toString方法的具体用法?Java StringBundler.toString怎么用?Java StringBundler.toString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.liferay.portal.kernel.util.StringBundler的用法示例。


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

示例1: findByF_dictItemId_First

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the first dict item group in the ordered set where groupId = ? and dictItemId = ?.
 *
 * @param groupId the group ID
 * @param dictItemId the dict item ID
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the first matching dict item group
 * @throws NoSuchDictItemGroupException if a matching dict item group could not be found
 */
@Override
public DictItemGroup findByF_dictItemId_First(long groupId,
	long dictItemId, OrderByComparator<DictItemGroup> orderByComparator)
	throws NoSuchDictItemGroupException {
	DictItemGroup dictItemGroup = fetchByF_dictItemId_First(groupId,
			dictItemId, orderByComparator);

	if (dictItemGroup != null) {
		return dictItemGroup;
	}

	StringBundler msg = new StringBundler(6);

	msg.append(_NO_SUCH_ENTITY_WITH_KEY);

	msg.append("groupId=");
	msg.append(groupId);

	msg.append(", dictItemId=");
	msg.append(dictItemId);

	msg.append(StringPool.CLOSE_CURLY_BRACE);

	throw new NoSuchDictItemGroupException(msg.toString());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:35,代码来源:DictItemGroupPersistenceImpl.java

示例2: findByUuid_Last

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the last comment in the ordered set where uuid = &#63;.
 *
 * @param uuid the uuid
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching comment
 * @throws NoSuchCommentException if a matching comment could not be found
 */
@Override
public Comment findByUuid_Last(String uuid,
	OrderByComparator<Comment> orderByComparator)
	throws NoSuchCommentException {
	Comment comment = fetchByUuid_Last(uuid, orderByComparator);

	if (comment != null) {
		return comment;
	}

	StringBundler msg = new StringBundler(4);

	msg.append(_NO_SUCH_ENTITY_WITH_KEY);

	msg.append("uuid=");
	msg.append(uuid);

	msg.append(StringPool.CLOSE_CURLY_BRACE);

	throw new NoSuchCommentException(msg.toString());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:30,代码来源:CommentPersistenceImpl.java

示例3: findByUUID_G

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the voting where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchVotingException} if it could not be found.
 *
 * @param uuid the uuid
 * @param groupId the group ID
 * @return the matching voting
 * @throws NoSuchVotingException if a matching voting could not be found
 */
@Override
public Voting findByUUID_G(String uuid, long groupId)
	throws NoSuchVotingException {
	Voting voting = fetchByUUID_G(uuid, groupId);

	if (voting == null) {
		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("uuid=");
		msg.append(uuid);

		msg.append(", groupId=");
		msg.append(groupId);

		msg.append(StringPool.CLOSE_CURLY_BRACE);

		if (_log.isDebugEnabled()) {
			_log.debug(msg.toString());
		}

		throw new NoSuchVotingException(msg.toString());
	}

	return voting;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:36,代码来源:VotingPersistenceImpl.java

示例4: findByF_dictItemCode_dictCollectionId

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the dict item where itemCode = &#63; and dictCollectionId = &#63; and groupId = &#63; or throws a {@link NoSuchDictItemException} if it could not be found.
 *
 * @param itemCode the item code
 * @param dictCollectionId the dict collection ID
 * @param groupId the group ID
 * @return the matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByF_dictItemCode_dictCollectionId(String itemCode,
	long dictCollectionId, long groupId) throws NoSuchDictItemException {
	DictItem dictItem = fetchByF_dictItemCode_dictCollectionId(itemCode,
			dictCollectionId, groupId);

	if (dictItem == null) {
		StringBundler msg = new StringBundler(8);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("itemCode=");
		msg.append(itemCode);

		msg.append(", dictCollectionId=");
		msg.append(dictCollectionId);

		msg.append(", groupId=");
		msg.append(groupId);

		msg.append(StringPool.CLOSE_CURLY_BRACE);

		if (_log.isDebugEnabled()) {
			_log.debug(msg.toString());
		}

		throw new NoSuchDictItemException(msg.toString());
	}

	return dictItem;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:41,代码来源:DictItemPersistenceImpl.java

示例5: getEntryRowIds

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
protected String getEntryRowIds() {
    StringBundler sb = new StringBundler(13);

    sb.append("['");
    sb.append(_liferayPortletResponse.getNamespace());
    sb.append(RowChecker.ROW_IDS);
    sb.append(Measurement.class.getSimpleName());
    sb.append("']");

    return sb.toString();
}
 
开发者ID:inofix,项目名称:ch-inofix-data-manager,代码行数:12,代码来源:EntriesChecker.java

示例6: findByF_dictCollectionCode

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the dict collection where collectionCode = &#63; and groupId = &#63; or throws a {@link NoSuchDictCollectionException} if it could not be found.
 *
 * @param collectionCode the collection code
 * @param groupId the group ID
 * @return the matching dict collection
 * @throws NoSuchDictCollectionException if a matching dict collection could not be found
 */
@Override
public DictCollection findByF_dictCollectionCode(String collectionCode,
	long groupId) throws NoSuchDictCollectionException {
	DictCollection dictCollection = fetchByF_dictCollectionCode(collectionCode,
			groupId);

	if (dictCollection == null) {
		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("collectionCode=");
		msg.append(collectionCode);

		msg.append(", groupId=");
		msg.append(groupId);

		msg.append(StringPool.CLOSE_CURLY_BRACE);

		if (_log.isDebugEnabled()) {
			_log.debug(msg.toString());
		}

		throw new NoSuchDictCollectionException(msg.toString());
	}

	return dictCollection;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:37,代码来源:DictCollectionPersistenceImpl.java

示例7: findByF_treeIndex_Last

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the last dict item in the ordered set where dictCollectionId = &#63; and parentItemId = &#63; and treeIndex LIKE &#63;.
 *
 * @param dictCollectionId the dict collection ID
 * @param parentItemId the parent item ID
 * @param treeIndex the tree index
 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
 * @return the last matching dict item
 * @throws NoSuchDictItemException if a matching dict item could not be found
 */
@Override
public DictItem findByF_treeIndex_Last(long dictCollectionId,
	long parentItemId, String treeIndex,
	OrderByComparator<DictItem> orderByComparator)
	throws NoSuchDictItemException {
	DictItem dictItem = fetchByF_treeIndex_Last(dictCollectionId,
			parentItemId, treeIndex, orderByComparator);

	if (dictItem != null) {
		return dictItem;
	}

	StringBundler msg = new StringBundler(8);

	msg.append(_NO_SUCH_ENTITY_WITH_KEY);

	msg.append("dictCollectionId=");
	msg.append(dictCollectionId);

	msg.append(", parentItemId=");
	msg.append(parentItemId);

	msg.append(", treeIndex=");
	msg.append(treeIndex);

	msg.append(StringPool.CLOSE_CURLY_BRACE);

	throw new NoSuchDictItemException(msg.toString());
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:40,代码来源:DictItemPersistenceImpl.java

示例8: getLink

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public String getLink() {

	StringBundler sb = new StringBundler();
	sb.append(PortalUtil.getPortalURL(_portletRequest));
	sb.append("/documents/");
	sb.append(_document.get(Field.SCOPE_GROUP_ID));
	sb.append("/");
	sb.append(_document.get(Field.FOLDER_ID));
	sb.append("/");
	sb.append(_document.get("path"));

	return sb.toString();
}
 
开发者ID:peerkar,项目名称:liferay-gsearch,代码行数:18,代码来源:DLFileEntryItemBuilder.java

示例9: findByUUID_G

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the comment where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchCommentException} if it could not be found.
 *
 * @param uuid the uuid
 * @param groupId the group ID
 * @return the matching comment
 * @throws NoSuchCommentException if a matching comment could not be found
 */
@Override
public Comment findByUUID_G(String uuid, long groupId)
	throws NoSuchCommentException {
	Comment comment = fetchByUUID_G(uuid, groupId);

	if (comment == null) {
		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("uuid=");
		msg.append(uuid);

		msg.append(", groupId=");
		msg.append(groupId);

		msg.append(StringPool.CLOSE_CURLY_BRACE);

		if (_log.isDebugEnabled()) {
			_log.debug(msg.toString());
		}

		throw new NoSuchCommentException(msg.toString());
	}

	return comment;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:36,代码来源:CommentPersistenceImpl.java

示例10: countByUuid_C

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the number of dict groups where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @return the number of matching dict groups
 */
@Override
public int countByUuid_C(String uuid, long companyId) {
	FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C;

	Object[] finderArgs = new Object[] { uuid, companyId };

	Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

	if (count == null) {
		StringBundler query = new StringBundler(3);

		query.append(_SQL_COUNT_DICTGROUP_WHERE);

		boolean bindUuid = false;

		if (uuid == null) {
			query.append(_FINDER_COLUMN_UUID_C_UUID_1);
		}
		else if (uuid.equals(StringPool.BLANK)) {
			query.append(_FINDER_COLUMN_UUID_C_UUID_3);
		}
		else {
			bindUuid = true;

			query.append(_FINDER_COLUMN_UUID_C_UUID_2);
		}

		query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2);

		String sql = query.toString();

		Session session = null;

		try {
			session = openSession();

			Query q = session.createQuery(sql);

			QueryPos qPos = QueryPos.getInstance(q);

			if (bindUuid) {
				qPos.add(uuid);
			}

			qPos.add(companyId);

			count = (Long)q.uniqueResult();

			finderCache.putResult(finderPath, finderArgs, count);
		}
		catch (Exception e) {
			finderCache.removeResult(finderPath, finderArgs);

			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	return count.intValue();
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:70,代码来源:DictGroupPersistenceImpl.java

示例11: countByUuid

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the number of dict collections where uuid = &#63;.
 *
 * @param uuid the uuid
 * @return the number of matching dict collections
 */
@Override
public int countByUuid(String uuid) {
	FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID;

	Object[] finderArgs = new Object[] { uuid };

	Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

	if (count == null) {
		StringBundler query = new StringBundler(2);

		query.append(_SQL_COUNT_DICTCOLLECTION_WHERE);

		boolean bindUuid = false;

		if (uuid == null) {
			query.append(_FINDER_COLUMN_UUID_UUID_1);
		}
		else if (uuid.equals(StringPool.BLANK)) {
			query.append(_FINDER_COLUMN_UUID_UUID_3);
		}
		else {
			bindUuid = true;

			query.append(_FINDER_COLUMN_UUID_UUID_2);
		}

		String sql = query.toString();

		Session session = null;

		try {
			session = openSession();

			Query q = session.createQuery(sql);

			QueryPos qPos = QueryPos.getInstance(q);

			if (bindUuid) {
				qPos.add(uuid);
			}

			count = (Long)q.uniqueResult();

			finderCache.putResult(finderPath, finderArgs, count);
		}
		catch (Exception e) {
			finderCache.removeResult(finderPath, finderArgs);

			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	return count.intValue();
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:65,代码来源:DictCollectionPersistenceImpl.java

示例12: countByUuid_C

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the number of voting results where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @return the number of matching voting results
 */
@Override
public int countByUuid_C(String uuid, long companyId) {
	FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C;

	Object[] finderArgs = new Object[] { uuid, companyId };

	Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

	if (count == null) {
		StringBundler query = new StringBundler(3);

		query.append(_SQL_COUNT_VOTINGRESULT_WHERE);

		boolean bindUuid = false;

		if (uuid == null) {
			query.append(_FINDER_COLUMN_UUID_C_UUID_1);
		}
		else if (uuid.equals(StringPool.BLANK)) {
			query.append(_FINDER_COLUMN_UUID_C_UUID_3);
		}
		else {
			bindUuid = true;

			query.append(_FINDER_COLUMN_UUID_C_UUID_2);
		}

		query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2);

		String sql = query.toString();

		Session session = null;

		try {
			session = openSession();

			Query q = session.createQuery(sql);

			QueryPos qPos = QueryPos.getInstance(q);

			if (bindUuid) {
				qPos.add(uuid);
			}

			qPos.add(companyId);

			count = (Long)q.uniqueResult();

			finderCache.putResult(finderPath, finderArgs, count);
		}
		catch (Exception e) {
			finderCache.removeResult(finderPath, finderArgs);

			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	return count.intValue();
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:70,代码来源:VotingResultPersistenceImpl.java

示例13: countByUuid_C

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the number of dict collections where uuid = &#63; and companyId = &#63;.
 *
 * @param uuid the uuid
 * @param companyId the company ID
 * @return the number of matching dict collections
 */
@Override
public int countByUuid_C(String uuid, long companyId) {
	FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C;

	Object[] finderArgs = new Object[] { uuid, companyId };

	Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

	if (count == null) {
		StringBundler query = new StringBundler(3);

		query.append(_SQL_COUNT_DICTCOLLECTION_WHERE);

		boolean bindUuid = false;

		if (uuid == null) {
			query.append(_FINDER_COLUMN_UUID_C_UUID_1);
		}
		else if (uuid.equals(StringPool.BLANK)) {
			query.append(_FINDER_COLUMN_UUID_C_UUID_3);
		}
		else {
			bindUuid = true;

			query.append(_FINDER_COLUMN_UUID_C_UUID_2);
		}

		query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2);

		String sql = query.toString();

		Session session = null;

		try {
			session = openSession();

			Query q = session.createQuery(sql);

			QueryPos qPos = QueryPos.getInstance(q);

			if (bindUuid) {
				qPos.add(uuid);
			}

			qPos.add(companyId);

			count = (Long)q.uniqueResult();

			finderCache.putResult(finderPath, finderArgs, count);
		}
		catch (Exception e) {
			finderCache.removeResult(finderPath, finderArgs);

			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	return count.intValue();
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:70,代码来源:DictCollectionPersistenceImpl.java

示例14: countByF_dictCollectionCode

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the number of dict collections where collectionCode = &#63; and groupId = &#63;.
 *
 * @param collectionCode the collection code
 * @param groupId the group ID
 * @return the number of matching dict collections
 */
@Override
public int countByF_dictCollectionCode(String collectionCode, long groupId) {
	FinderPath finderPath = FINDER_PATH_COUNT_BY_F_DICTCOLLECTIONCODE;

	Object[] finderArgs = new Object[] { collectionCode, groupId };

	Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

	if (count == null) {
		StringBundler query = new StringBundler(3);

		query.append(_SQL_COUNT_DICTCOLLECTION_WHERE);

		boolean bindCollectionCode = false;

		if (collectionCode == null) {
			query.append(_FINDER_COLUMN_F_DICTCOLLECTIONCODE_COLLECTIONCODE_1);
		}
		else if (collectionCode.equals(StringPool.BLANK)) {
			query.append(_FINDER_COLUMN_F_DICTCOLLECTIONCODE_COLLECTIONCODE_3);
		}
		else {
			bindCollectionCode = true;

			query.append(_FINDER_COLUMN_F_DICTCOLLECTIONCODE_COLLECTIONCODE_2);
		}

		query.append(_FINDER_COLUMN_F_DICTCOLLECTIONCODE_GROUPID_2);

		String sql = query.toString();

		Session session = null;

		try {
			session = openSession();

			Query q = session.createQuery(sql);

			QueryPos qPos = QueryPos.getInstance(q);

			if (bindCollectionCode) {
				qPos.add(collectionCode);
			}

			qPos.add(groupId);

			count = (Long)q.uniqueResult();

			finderCache.putResult(finderPath, finderArgs, count);
		}
		catch (Exception e) {
			finderCache.removeResult(finderPath, finderArgs);

			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	return count.intValue();
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:70,代码来源:DictCollectionPersistenceImpl.java

示例15: countByF_treeIndex

import com.liferay.portal.kernel.util.StringBundler; //导入方法依赖的package包/类
/**
 * Returns the number of dict items where dictCollectionId = &#63; and parentItemId = &#63; and treeIndex LIKE &#63;.
 *
 * @param dictCollectionId the dict collection ID
 * @param parentItemId the parent item ID
 * @param treeIndex the tree index
 * @return the number of matching dict items
 */
@Override
public int countByF_treeIndex(long dictCollectionId, long parentItemId,
	String treeIndex) {
	FinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_F_TREEINDEX;

	Object[] finderArgs = new Object[] {
			dictCollectionId, parentItemId, treeIndex
		};

	Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

	if (count == null) {
		StringBundler query = new StringBundler(4);

		query.append(_SQL_COUNT_DICTITEM_WHERE);

		query.append(_FINDER_COLUMN_F_TREEINDEX_DICTCOLLECTIONID_2);

		query.append(_FINDER_COLUMN_F_TREEINDEX_PARENTITEMID_2);

		boolean bindTreeIndex = false;

		if (treeIndex == null) {
			query.append(_FINDER_COLUMN_F_TREEINDEX_TREEINDEX_1);
		}
		else if (treeIndex.equals(StringPool.BLANK)) {
			query.append(_FINDER_COLUMN_F_TREEINDEX_TREEINDEX_3);
		}
		else {
			bindTreeIndex = true;

			query.append(_FINDER_COLUMN_F_TREEINDEX_TREEINDEX_2);
		}

		String sql = query.toString();

		Session session = null;

		try {
			session = openSession();

			Query q = session.createQuery(sql);

			QueryPos qPos = QueryPos.getInstance(q);

			qPos.add(dictCollectionId);

			qPos.add(parentItemId);

			if (bindTreeIndex) {
				qPos.add(treeIndex);
			}

			count = (Long)q.uniqueResult();

			finderCache.putResult(finderPath, finderArgs, count);
		}
		catch (Exception e) {
			finderCache.removeResult(finderPath, finderArgs);

			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	return count.intValue();
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:78,代码来源:DictItemPersistenceImpl.java


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