PageRenderTime 50ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/test/persistence-test/src/testIntegration/java/com/liferay/portal/service/persistence/test/LayoutSetBranchPersistenceTest.java

http://github.com/liferay/liferay-portal
Java | 596 lines | 423 code | 157 blank | 16 comment | 1 complexity | 45d1f9833300470e8b74e3805afc9e62 MD5 | raw file
Possible License(s): LGPL-2.0
  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.portal.service.persistence.test;
  15. import com.liferay.arquillian.extension.junit.bridge.junit.Arquillian;
  16. import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
  17. import com.liferay.portal.kernel.dao.orm.DynamicQuery;
  18. import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
  19. import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil;
  20. import com.liferay.portal.kernel.dao.orm.QueryUtil;
  21. import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
  22. import com.liferay.portal.kernel.exception.NoSuchLayoutSetBranchException;
  23. import com.liferay.portal.kernel.model.LayoutSetBranch;
  24. import com.liferay.portal.kernel.service.LayoutSetBranchLocalServiceUtil;
  25. import com.liferay.portal.kernel.service.persistence.LayoutSetBranchPersistence;
  26. import com.liferay.portal.kernel.service.persistence.LayoutSetBranchUtil;
  27. import com.liferay.portal.kernel.test.ReflectionTestUtil;
  28. import com.liferay.portal.kernel.test.rule.AggregateTestRule;
  29. import com.liferay.portal.kernel.test.util.RandomTestUtil;
  30. import com.liferay.portal.kernel.transaction.Propagation;
  31. import com.liferay.portal.kernel.util.IntegerWrapper;
  32. import com.liferay.portal.kernel.util.OrderByComparator;
  33. import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil;
  34. import com.liferay.portal.kernel.util.Time;
  35. import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
  36. import com.liferay.portal.test.rule.PersistenceTestRule;
  37. import com.liferay.portal.test.rule.TransactionalTestRule;
  38. import java.io.Serializable;
  39. import java.util.ArrayList;
  40. import java.util.HashSet;
  41. import java.util.Iterator;
  42. import java.util.List;
  43. import java.util.Map;
  44. import java.util.Objects;
  45. import java.util.Set;
  46. import org.junit.After;
  47. import org.junit.Assert;
  48. import org.junit.Before;
  49. import org.junit.ClassRule;
  50. import org.junit.Rule;
  51. import org.junit.Test;
  52. import org.junit.runner.RunWith;
  53. /**
  54. * @generated
  55. */
  56. @RunWith(Arquillian.class)
  57. public class LayoutSetBranchPersistenceTest {
  58. @ClassRule
  59. @Rule
  60. public static final AggregateTestRule aggregateTestRule =
  61. new AggregateTestRule(
  62. new LiferayIntegrationTestRule(), PersistenceTestRule.INSTANCE,
  63. new TransactionalTestRule(Propagation.REQUIRED));
  64. @Before
  65. public void setUp() {
  66. _persistence = LayoutSetBranchUtil.getPersistence();
  67. Class<?> clazz = _persistence.getClass();
  68. _dynamicQueryClassLoader = clazz.getClassLoader();
  69. }
  70. @After
  71. public void tearDown() throws Exception {
  72. Iterator<LayoutSetBranch> iterator = _layoutSetBranchs.iterator();
  73. while (iterator.hasNext()) {
  74. _persistence.remove(iterator.next());
  75. iterator.remove();
  76. }
  77. }
  78. @Test
  79. public void testCreate() throws Exception {
  80. long pk = RandomTestUtil.nextLong();
  81. LayoutSetBranch layoutSetBranch = _persistence.create(pk);
  82. Assert.assertNotNull(layoutSetBranch);
  83. Assert.assertEquals(layoutSetBranch.getPrimaryKey(), pk);
  84. }
  85. @Test
  86. public void testRemove() throws Exception {
  87. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  88. _persistence.remove(newLayoutSetBranch);
  89. LayoutSetBranch existingLayoutSetBranch =
  90. _persistence.fetchByPrimaryKey(newLayoutSetBranch.getPrimaryKey());
  91. Assert.assertNull(existingLayoutSetBranch);
  92. }
  93. @Test
  94. public void testUpdateNew() throws Exception {
  95. addLayoutSetBranch();
  96. }
  97. @Test
  98. public void testUpdateExisting() throws Exception {
  99. long pk = RandomTestUtil.nextLong();
  100. LayoutSetBranch newLayoutSetBranch = _persistence.create(pk);
  101. newLayoutSetBranch.setMvccVersion(RandomTestUtil.nextLong());
  102. newLayoutSetBranch.setGroupId(RandomTestUtil.nextLong());
  103. newLayoutSetBranch.setCompanyId(RandomTestUtil.nextLong());
  104. newLayoutSetBranch.setUserId(RandomTestUtil.nextLong());
  105. newLayoutSetBranch.setUserName(RandomTestUtil.randomString());
  106. newLayoutSetBranch.setCreateDate(RandomTestUtil.nextDate());
  107. newLayoutSetBranch.setModifiedDate(RandomTestUtil.nextDate());
  108. newLayoutSetBranch.setPrivateLayout(RandomTestUtil.randomBoolean());
  109. newLayoutSetBranch.setName(RandomTestUtil.randomString());
  110. newLayoutSetBranch.setDescription(RandomTestUtil.randomString());
  111. newLayoutSetBranch.setMaster(RandomTestUtil.randomBoolean());
  112. newLayoutSetBranch.setLogoId(RandomTestUtil.nextLong());
  113. newLayoutSetBranch.setThemeId(RandomTestUtil.randomString());
  114. newLayoutSetBranch.setColorSchemeId(RandomTestUtil.randomString());
  115. newLayoutSetBranch.setCss(RandomTestUtil.randomString());
  116. newLayoutSetBranch.setSettings(RandomTestUtil.randomString());
  117. newLayoutSetBranch.setLayoutSetPrototypeUuid(
  118. RandomTestUtil.randomString());
  119. newLayoutSetBranch.setLayoutSetPrototypeLinkEnabled(
  120. RandomTestUtil.randomBoolean());
  121. _layoutSetBranchs.add(_persistence.update(newLayoutSetBranch));
  122. LayoutSetBranch existingLayoutSetBranch = _persistence.findByPrimaryKey(
  123. newLayoutSetBranch.getPrimaryKey());
  124. Assert.assertEquals(
  125. existingLayoutSetBranch.getMvccVersion(),
  126. newLayoutSetBranch.getMvccVersion());
  127. Assert.assertEquals(
  128. existingLayoutSetBranch.getLayoutSetBranchId(),
  129. newLayoutSetBranch.getLayoutSetBranchId());
  130. Assert.assertEquals(
  131. existingLayoutSetBranch.getGroupId(),
  132. newLayoutSetBranch.getGroupId());
  133. Assert.assertEquals(
  134. existingLayoutSetBranch.getCompanyId(),
  135. newLayoutSetBranch.getCompanyId());
  136. Assert.assertEquals(
  137. existingLayoutSetBranch.getUserId(),
  138. newLayoutSetBranch.getUserId());
  139. Assert.assertEquals(
  140. existingLayoutSetBranch.getUserName(),
  141. newLayoutSetBranch.getUserName());
  142. Assert.assertEquals(
  143. Time.getShortTimestamp(existingLayoutSetBranch.getCreateDate()),
  144. Time.getShortTimestamp(newLayoutSetBranch.getCreateDate()));
  145. Assert.assertEquals(
  146. Time.getShortTimestamp(existingLayoutSetBranch.getModifiedDate()),
  147. Time.getShortTimestamp(newLayoutSetBranch.getModifiedDate()));
  148. Assert.assertEquals(
  149. existingLayoutSetBranch.isPrivateLayout(),
  150. newLayoutSetBranch.isPrivateLayout());
  151. Assert.assertEquals(
  152. existingLayoutSetBranch.getName(), newLayoutSetBranch.getName());
  153. Assert.assertEquals(
  154. existingLayoutSetBranch.getDescription(),
  155. newLayoutSetBranch.getDescription());
  156. Assert.assertEquals(
  157. existingLayoutSetBranch.isMaster(), newLayoutSetBranch.isMaster());
  158. Assert.assertEquals(
  159. existingLayoutSetBranch.getLogoId(),
  160. newLayoutSetBranch.getLogoId());
  161. Assert.assertEquals(
  162. existingLayoutSetBranch.getThemeId(),
  163. newLayoutSetBranch.getThemeId());
  164. Assert.assertEquals(
  165. existingLayoutSetBranch.getColorSchemeId(),
  166. newLayoutSetBranch.getColorSchemeId());
  167. Assert.assertEquals(
  168. existingLayoutSetBranch.getCss(), newLayoutSetBranch.getCss());
  169. Assert.assertEquals(
  170. existingLayoutSetBranch.getSettings(),
  171. newLayoutSetBranch.getSettings());
  172. Assert.assertEquals(
  173. existingLayoutSetBranch.getLayoutSetPrototypeUuid(),
  174. newLayoutSetBranch.getLayoutSetPrototypeUuid());
  175. Assert.assertEquals(
  176. existingLayoutSetBranch.isLayoutSetPrototypeLinkEnabled(),
  177. newLayoutSetBranch.isLayoutSetPrototypeLinkEnabled());
  178. }
  179. @Test
  180. public void testCountByGroupId() throws Exception {
  181. _persistence.countByGroupId(RandomTestUtil.nextLong());
  182. _persistence.countByGroupId(0L);
  183. }
  184. @Test
  185. public void testCountByG_P() throws Exception {
  186. _persistence.countByG_P(
  187. RandomTestUtil.nextLong(), RandomTestUtil.randomBoolean());
  188. _persistence.countByG_P(0L, RandomTestUtil.randomBoolean());
  189. }
  190. @Test
  191. public void testCountByG_P_N() throws Exception {
  192. _persistence.countByG_P_N(
  193. RandomTestUtil.nextLong(), RandomTestUtil.randomBoolean(), "");
  194. _persistence.countByG_P_N(0L, RandomTestUtil.randomBoolean(), "null");
  195. _persistence.countByG_P_N(
  196. 0L, RandomTestUtil.randomBoolean(), (String)null);
  197. }
  198. @Test
  199. public void testCountByG_P_M() throws Exception {
  200. _persistence.countByG_P_M(
  201. RandomTestUtil.nextLong(), RandomTestUtil.randomBoolean(),
  202. RandomTestUtil.randomBoolean());
  203. _persistence.countByG_P_M(
  204. 0L, RandomTestUtil.randomBoolean(), RandomTestUtil.randomBoolean());
  205. }
  206. @Test
  207. public void testFindByPrimaryKeyExisting() throws Exception {
  208. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  209. LayoutSetBranch existingLayoutSetBranch = _persistence.findByPrimaryKey(
  210. newLayoutSetBranch.getPrimaryKey());
  211. Assert.assertEquals(existingLayoutSetBranch, newLayoutSetBranch);
  212. }
  213. @Test(expected = NoSuchLayoutSetBranchException.class)
  214. public void testFindByPrimaryKeyMissing() throws Exception {
  215. long pk = RandomTestUtil.nextLong();
  216. _persistence.findByPrimaryKey(pk);
  217. }
  218. @Test
  219. public void testFindAll() throws Exception {
  220. _persistence.findAll(
  221. QueryUtil.ALL_POS, QueryUtil.ALL_POS, getOrderByComparator());
  222. }
  223. @Test
  224. public void testFilterFindByGroupId() throws Exception {
  225. _persistence.filterFindByGroupId(
  226. 0, QueryUtil.ALL_POS, QueryUtil.ALL_POS, getOrderByComparator());
  227. }
  228. protected OrderByComparator<LayoutSetBranch> getOrderByComparator() {
  229. return OrderByComparatorFactoryUtil.create(
  230. "LayoutSetBranch", "mvccVersion", true, "layoutSetBranchId", true,
  231. "groupId", true, "companyId", true, "userId", true, "userName",
  232. true, "createDate", true, "modifiedDate", true, "privateLayout",
  233. true, "name", true, "description", true, "master", true, "logoId",
  234. true, "themeId", true, "colorSchemeId", true,
  235. "layoutSetPrototypeUuid", true, "layoutSetPrototypeLinkEnabled",
  236. true);
  237. }
  238. @Test
  239. public void testFetchByPrimaryKeyExisting() throws Exception {
  240. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  241. LayoutSetBranch existingLayoutSetBranch =
  242. _persistence.fetchByPrimaryKey(newLayoutSetBranch.getPrimaryKey());
  243. Assert.assertEquals(existingLayoutSetBranch, newLayoutSetBranch);
  244. }
  245. @Test
  246. public void testFetchByPrimaryKeyMissing() throws Exception {
  247. long pk = RandomTestUtil.nextLong();
  248. LayoutSetBranch missingLayoutSetBranch = _persistence.fetchByPrimaryKey(
  249. pk);
  250. Assert.assertNull(missingLayoutSetBranch);
  251. }
  252. @Test
  253. public void testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereAllPrimaryKeysExist()
  254. throws Exception {
  255. LayoutSetBranch newLayoutSetBranch1 = addLayoutSetBranch();
  256. LayoutSetBranch newLayoutSetBranch2 = addLayoutSetBranch();
  257. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  258. primaryKeys.add(newLayoutSetBranch1.getPrimaryKey());
  259. primaryKeys.add(newLayoutSetBranch2.getPrimaryKey());
  260. Map<Serializable, LayoutSetBranch> layoutSetBranchs =
  261. _persistence.fetchByPrimaryKeys(primaryKeys);
  262. Assert.assertEquals(2, layoutSetBranchs.size());
  263. Assert.assertEquals(
  264. newLayoutSetBranch1,
  265. layoutSetBranchs.get(newLayoutSetBranch1.getPrimaryKey()));
  266. Assert.assertEquals(
  267. newLayoutSetBranch2,
  268. layoutSetBranchs.get(newLayoutSetBranch2.getPrimaryKey()));
  269. }
  270. @Test
  271. public void testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist()
  272. throws Exception {
  273. long pk1 = RandomTestUtil.nextLong();
  274. long pk2 = RandomTestUtil.nextLong();
  275. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  276. primaryKeys.add(pk1);
  277. primaryKeys.add(pk2);
  278. Map<Serializable, LayoutSetBranch> layoutSetBranchs =
  279. _persistence.fetchByPrimaryKeys(primaryKeys);
  280. Assert.assertTrue(layoutSetBranchs.isEmpty());
  281. }
  282. @Test
  283. public void testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereSomePrimaryKeysExist()
  284. throws Exception {
  285. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  286. long pk = RandomTestUtil.nextLong();
  287. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  288. primaryKeys.add(newLayoutSetBranch.getPrimaryKey());
  289. primaryKeys.add(pk);
  290. Map<Serializable, LayoutSetBranch> layoutSetBranchs =
  291. _persistence.fetchByPrimaryKeys(primaryKeys);
  292. Assert.assertEquals(1, layoutSetBranchs.size());
  293. Assert.assertEquals(
  294. newLayoutSetBranch,
  295. layoutSetBranchs.get(newLayoutSetBranch.getPrimaryKey()));
  296. }
  297. @Test
  298. public void testFetchByPrimaryKeysWithNoPrimaryKeys() throws Exception {
  299. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  300. Map<Serializable, LayoutSetBranch> layoutSetBranchs =
  301. _persistence.fetchByPrimaryKeys(primaryKeys);
  302. Assert.assertTrue(layoutSetBranchs.isEmpty());
  303. }
  304. @Test
  305. public void testFetchByPrimaryKeysWithOnePrimaryKey() throws Exception {
  306. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  307. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  308. primaryKeys.add(newLayoutSetBranch.getPrimaryKey());
  309. Map<Serializable, LayoutSetBranch> layoutSetBranchs =
  310. _persistence.fetchByPrimaryKeys(primaryKeys);
  311. Assert.assertEquals(1, layoutSetBranchs.size());
  312. Assert.assertEquals(
  313. newLayoutSetBranch,
  314. layoutSetBranchs.get(newLayoutSetBranch.getPrimaryKey()));
  315. }
  316. @Test
  317. public void testActionableDynamicQuery() throws Exception {
  318. final IntegerWrapper count = new IntegerWrapper();
  319. ActionableDynamicQuery actionableDynamicQuery =
  320. LayoutSetBranchLocalServiceUtil.getActionableDynamicQuery();
  321. actionableDynamicQuery.setPerformActionMethod(
  322. new ActionableDynamicQuery.PerformActionMethod<LayoutSetBranch>() {
  323. @Override
  324. public void performAction(LayoutSetBranch layoutSetBranch) {
  325. Assert.assertNotNull(layoutSetBranch);
  326. count.increment();
  327. }
  328. });
  329. actionableDynamicQuery.performActions();
  330. Assert.assertEquals(count.getValue(), _persistence.countAll());
  331. }
  332. @Test
  333. public void testDynamicQueryByPrimaryKeyExisting() throws Exception {
  334. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  335. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  336. LayoutSetBranch.class, _dynamicQueryClassLoader);
  337. dynamicQuery.add(
  338. RestrictionsFactoryUtil.eq(
  339. "layoutSetBranchId",
  340. newLayoutSetBranch.getLayoutSetBranchId()));
  341. List<LayoutSetBranch> result = _persistence.findWithDynamicQuery(
  342. dynamicQuery);
  343. Assert.assertEquals(1, result.size());
  344. LayoutSetBranch existingLayoutSetBranch = result.get(0);
  345. Assert.assertEquals(existingLayoutSetBranch, newLayoutSetBranch);
  346. }
  347. @Test
  348. public void testDynamicQueryByPrimaryKeyMissing() throws Exception {
  349. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  350. LayoutSetBranch.class, _dynamicQueryClassLoader);
  351. dynamicQuery.add(
  352. RestrictionsFactoryUtil.eq(
  353. "layoutSetBranchId", RandomTestUtil.nextLong()));
  354. List<LayoutSetBranch> result = _persistence.findWithDynamicQuery(
  355. dynamicQuery);
  356. Assert.assertEquals(0, result.size());
  357. }
  358. @Test
  359. public void testDynamicQueryByProjectionExisting() throws Exception {
  360. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  361. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  362. LayoutSetBranch.class, _dynamicQueryClassLoader);
  363. dynamicQuery.setProjection(
  364. ProjectionFactoryUtil.property("layoutSetBranchId"));
  365. Object newLayoutSetBranchId = newLayoutSetBranch.getLayoutSetBranchId();
  366. dynamicQuery.add(
  367. RestrictionsFactoryUtil.in(
  368. "layoutSetBranchId", new Object[] {newLayoutSetBranchId}));
  369. List<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);
  370. Assert.assertEquals(1, result.size());
  371. Object existingLayoutSetBranchId = result.get(0);
  372. Assert.assertEquals(existingLayoutSetBranchId, newLayoutSetBranchId);
  373. }
  374. @Test
  375. public void testDynamicQueryByProjectionMissing() throws Exception {
  376. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  377. LayoutSetBranch.class, _dynamicQueryClassLoader);
  378. dynamicQuery.setProjection(
  379. ProjectionFactoryUtil.property("layoutSetBranchId"));
  380. dynamicQuery.add(
  381. RestrictionsFactoryUtil.in(
  382. "layoutSetBranchId", new Object[] {RandomTestUtil.nextLong()}));
  383. List<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);
  384. Assert.assertEquals(0, result.size());
  385. }
  386. @Test
  387. public void testResetOriginalValues() throws Exception {
  388. LayoutSetBranch newLayoutSetBranch = addLayoutSetBranch();
  389. _persistence.clearCache();
  390. LayoutSetBranch existingLayoutSetBranch = _persistence.findByPrimaryKey(
  391. newLayoutSetBranch.getPrimaryKey());
  392. Assert.assertEquals(
  393. Long.valueOf(existingLayoutSetBranch.getGroupId()),
  394. ReflectionTestUtil.<Long>invoke(
  395. existingLayoutSetBranch, "getOriginalGroupId",
  396. new Class<?>[0]));
  397. Assert.assertEquals(
  398. Boolean.valueOf(existingLayoutSetBranch.getPrivateLayout()),
  399. ReflectionTestUtil.<Boolean>invoke(
  400. existingLayoutSetBranch, "getOriginalPrivateLayout",
  401. new Class<?>[0]));
  402. Assert.assertTrue(
  403. Objects.equals(
  404. existingLayoutSetBranch.getName(),
  405. ReflectionTestUtil.invoke(
  406. existingLayoutSetBranch, "getOriginalName",
  407. new Class<?>[0])));
  408. }
  409. protected LayoutSetBranch addLayoutSetBranch() throws Exception {
  410. long pk = RandomTestUtil.nextLong();
  411. LayoutSetBranch layoutSetBranch = _persistence.create(pk);
  412. layoutSetBranch.setMvccVersion(RandomTestUtil.nextLong());
  413. layoutSetBranch.setGroupId(RandomTestUtil.nextLong());
  414. layoutSetBranch.setCompanyId(RandomTestUtil.nextLong());
  415. layoutSetBranch.setUserId(RandomTestUtil.nextLong());
  416. layoutSetBranch.setUserName(RandomTestUtil.randomString());
  417. layoutSetBranch.setCreateDate(RandomTestUtil.nextDate());
  418. layoutSetBranch.setModifiedDate(RandomTestUtil.nextDate());
  419. layoutSetBranch.setPrivateLayout(RandomTestUtil.randomBoolean());
  420. layoutSetBranch.setName(RandomTestUtil.randomString());
  421. layoutSetBranch.setDescription(RandomTestUtil.randomString());
  422. layoutSetBranch.setMaster(RandomTestUtil.randomBoolean());
  423. layoutSetBranch.setLogoId(RandomTestUtil.nextLong());
  424. layoutSetBranch.setThemeId(RandomTestUtil.randomString());
  425. layoutSetBranch.setColorSchemeId(RandomTestUtil.randomString());
  426. layoutSetBranch.setCss(RandomTestUtil.randomString());
  427. layoutSetBranch.setSettings(RandomTestUtil.randomString());
  428. layoutSetBranch.setLayoutSetPrototypeUuid(
  429. RandomTestUtil.randomString());
  430. layoutSetBranch.setLayoutSetPrototypeLinkEnabled(
  431. RandomTestUtil.randomBoolean());
  432. _layoutSetBranchs.add(_persistence.update(layoutSetBranch));
  433. return layoutSetBranch;
  434. }
  435. private List<LayoutSetBranch> _layoutSetBranchs =
  436. new ArrayList<LayoutSetBranch>();
  437. private LayoutSetBranchPersistence _persistence;
  438. private ClassLoader _dynamicQueryClassLoader;
  439. }