use of com.liferay.petra.string.StringBundler in project liferay-blade-samples by liferay.
the class CountryModelImpl method toString.
@Override
public String toString() {
Map<String, Function<Country, Object>> attributeGetterFunctions = getAttributeGetterFunctions();
StringBundler sb = new StringBundler(4 * attributeGetterFunctions.size() + 2);
sb.append("{");
for (Map.Entry<String, Function<Country, Object>> entry : attributeGetterFunctions.entrySet()) {
String attributeName = entry.getKey();
Function<Country, Object> attributeGetterFunction = entry.getValue();
sb.append(attributeName);
sb.append("=");
sb.append(attributeGetterFunction.apply((Country) this));
sb.append(", ");
}
if (sb.index() > 1) {
sb.setIndex(sb.index() - 1);
}
sb.append("}");
return sb.toString();
}
use of com.liferay.petra.string.StringBundler in project liferay-blade-samples by liferay.
the class RegionCacheModel method toString.
@Override
public String toString() {
StringBundler sb = new StringBundler(5);
sb.append("{regionId=");
sb.append(regionId);
sb.append(", regionName=");
sb.append(regionName);
sb.append("}");
return sb.toString();
}
use of com.liferay.petra.string.StringBundler in project liferay-blade-samples by liferay.
the class QuxCacheModel method toString.
@Override
public String toString() {
StringBundler sb = new StringBundler(25);
sb.append("{uuid=");
sb.append(uuid);
sb.append(", quxId=");
sb.append(quxId);
sb.append(", groupId=");
sb.append(groupId);
sb.append(", companyId=");
sb.append(companyId);
sb.append(", userId=");
sb.append(userId);
sb.append(", userName=");
sb.append(userName);
sb.append(", createDate=");
sb.append(createDate);
sb.append(", modifiedDate=");
sb.append(modifiedDate);
sb.append(", status=");
sb.append(status);
sb.append(", statusByUserId=");
sb.append(statusByUserId);
sb.append(", statusByUserName=");
sb.append(statusByUserName);
sb.append(", statusDate=");
sb.append(statusDate);
sb.append("}");
return sb.toString();
}
use of com.liferay.petra.string.StringBundler in project liferay-blade-samples by liferay.
the class QuxModelImpl method toString.
@Override
public String toString() {
Map<String, Function<Qux, Object>> attributeGetterFunctions = getAttributeGetterFunctions();
StringBundler sb = new StringBundler(4 * attributeGetterFunctions.size() + 2);
sb.append("{");
for (Map.Entry<String, Function<Qux, Object>> entry : attributeGetterFunctions.entrySet()) {
String attributeName = entry.getKey();
Function<Qux, Object> attributeGetterFunction = entry.getValue();
sb.append(attributeName);
sb.append("=");
sb.append(attributeGetterFunction.apply((Qux) this));
sb.append(", ");
}
if (sb.index() > 1) {
sb.setIndex(sb.index() - 1);
}
sb.append("}");
return sb.toString();
}
use of com.liferay.petra.string.StringBundler in project liferay-blade-samples by liferay.
the class QuxPersistenceImpl method findByUuid_C_Last.
/**
* Returns the last qux in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching qux
* @throws NoSuchQuxException if a matching qux could not be found
*/
@Override
public Qux findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Qux> orderByComparator) throws NoSuchQuxException {
Qux qux = fetchByUuid_C_Last(uuid, companyId, orderByComparator);
if (qux != null) {
return qux;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("uuid=");
msg.append(uuid);
msg.append(", companyId=");
msg.append(companyId);
msg.append("}");
throw new NoSuchQuxException(msg.toString());
}
Aggregations