PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/test/persistence-test/src/testIntegration/java/com/liferay/portlet/asset/service/persistence/test/AssetVocabularyPersistenceTest.java

http://github.com/liferay/liferay-portal
Java | 627 lines | 444 code | 167 blank | 16 comment | 1 complexity | fb28b94b2daccb6480816b181ad83a22 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.portlet.asset.service.persistence.test;
  15. import com.liferay.arquillian.extension.junit.bridge.junit.Arquillian;
  16. import com.liferay.asset.kernel.exception.NoSuchVocabularyException;
  17. import com.liferay.asset.kernel.model.AssetVocabulary;
  18. import com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil;
  19. import com.liferay.asset.kernel.service.persistence.AssetVocabularyPersistence;
  20. import com.liferay.asset.kernel.service.persistence.AssetVocabularyUtil;
  21. import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
  22. import com.liferay.portal.kernel.dao.orm.DynamicQuery;
  23. import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
  24. import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil;
  25. import com.liferay.portal.kernel.dao.orm.QueryUtil;
  26. import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
  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 AssetVocabularyPersistenceTest {
  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 = AssetVocabularyUtil.getPersistence();
  67. Class<?> clazz = _persistence.getClass();
  68. _dynamicQueryClassLoader = clazz.getClassLoader();
  69. }
  70. @After
  71. public void tearDown() throws Exception {
  72. Iterator<AssetVocabulary> iterator = _assetVocabularies.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. AssetVocabulary assetVocabulary = _persistence.create(pk);
  82. Assert.assertNotNull(assetVocabulary);
  83. Assert.assertEquals(assetVocabulary.getPrimaryKey(), pk);
  84. }
  85. @Test
  86. public void testRemove() throws Exception {
  87. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  88. _persistence.remove(newAssetVocabulary);
  89. AssetVocabulary existingAssetVocabulary =
  90. _persistence.fetchByPrimaryKey(newAssetVocabulary.getPrimaryKey());
  91. Assert.assertNull(existingAssetVocabulary);
  92. }
  93. @Test
  94. public void testUpdateNew() throws Exception {
  95. addAssetVocabulary();
  96. }
  97. @Test
  98. public void testUpdateExisting() throws Exception {
  99. long pk = RandomTestUtil.nextLong();
  100. AssetVocabulary newAssetVocabulary = _persistence.create(pk);
  101. newAssetVocabulary.setMvccVersion(RandomTestUtil.nextLong());
  102. newAssetVocabulary.setCtCollectionId(RandomTestUtil.nextLong());
  103. newAssetVocabulary.setUuid(RandomTestUtil.randomString());
  104. newAssetVocabulary.setExternalReferenceCode(
  105. RandomTestUtil.randomString());
  106. newAssetVocabulary.setGroupId(RandomTestUtil.nextLong());
  107. newAssetVocabulary.setCompanyId(RandomTestUtil.nextLong());
  108. newAssetVocabulary.setUserId(RandomTestUtil.nextLong());
  109. newAssetVocabulary.setUserName(RandomTestUtil.randomString());
  110. newAssetVocabulary.setCreateDate(RandomTestUtil.nextDate());
  111. newAssetVocabulary.setModifiedDate(RandomTestUtil.nextDate());
  112. newAssetVocabulary.setName(RandomTestUtil.randomString());
  113. newAssetVocabulary.setTitle(RandomTestUtil.randomString());
  114. newAssetVocabulary.setDescription(RandomTestUtil.randomString());
  115. newAssetVocabulary.setSettings(RandomTestUtil.randomString());
  116. newAssetVocabulary.setLastPublishDate(RandomTestUtil.nextDate());
  117. _assetVocabularies.add(_persistence.update(newAssetVocabulary));
  118. AssetVocabulary existingAssetVocabulary = _persistence.findByPrimaryKey(
  119. newAssetVocabulary.getPrimaryKey());
  120. Assert.assertEquals(
  121. existingAssetVocabulary.getMvccVersion(),
  122. newAssetVocabulary.getMvccVersion());
  123. Assert.assertEquals(
  124. existingAssetVocabulary.getCtCollectionId(),
  125. newAssetVocabulary.getCtCollectionId());
  126. Assert.assertEquals(
  127. existingAssetVocabulary.getUuid(), newAssetVocabulary.getUuid());
  128. Assert.assertEquals(
  129. existingAssetVocabulary.getExternalReferenceCode(),
  130. newAssetVocabulary.getExternalReferenceCode());
  131. Assert.assertEquals(
  132. existingAssetVocabulary.getVocabularyId(),
  133. newAssetVocabulary.getVocabularyId());
  134. Assert.assertEquals(
  135. existingAssetVocabulary.getGroupId(),
  136. newAssetVocabulary.getGroupId());
  137. Assert.assertEquals(
  138. existingAssetVocabulary.getCompanyId(),
  139. newAssetVocabulary.getCompanyId());
  140. Assert.assertEquals(
  141. existingAssetVocabulary.getUserId(),
  142. newAssetVocabulary.getUserId());
  143. Assert.assertEquals(
  144. existingAssetVocabulary.getUserName(),
  145. newAssetVocabulary.getUserName());
  146. Assert.assertEquals(
  147. Time.getShortTimestamp(existingAssetVocabulary.getCreateDate()),
  148. Time.getShortTimestamp(newAssetVocabulary.getCreateDate()));
  149. Assert.assertEquals(
  150. Time.getShortTimestamp(existingAssetVocabulary.getModifiedDate()),
  151. Time.getShortTimestamp(newAssetVocabulary.getModifiedDate()));
  152. Assert.assertEquals(
  153. existingAssetVocabulary.getName(), newAssetVocabulary.getName());
  154. Assert.assertEquals(
  155. existingAssetVocabulary.getTitle(), newAssetVocabulary.getTitle());
  156. Assert.assertEquals(
  157. existingAssetVocabulary.getDescription(),
  158. newAssetVocabulary.getDescription());
  159. Assert.assertEquals(
  160. existingAssetVocabulary.getSettings(),
  161. newAssetVocabulary.getSettings());
  162. Assert.assertEquals(
  163. Time.getShortTimestamp(
  164. existingAssetVocabulary.getLastPublishDate()),
  165. Time.getShortTimestamp(newAssetVocabulary.getLastPublishDate()));
  166. }
  167. @Test
  168. public void testCountByUuid() throws Exception {
  169. _persistence.countByUuid("");
  170. _persistence.countByUuid("null");
  171. _persistence.countByUuid((String)null);
  172. }
  173. @Test
  174. public void testCountByUUID_G() throws Exception {
  175. _persistence.countByUUID_G("", RandomTestUtil.nextLong());
  176. _persistence.countByUUID_G("null", 0L);
  177. _persistence.countByUUID_G((String)null, 0L);
  178. }
  179. @Test
  180. public void testCountByUuid_C() throws Exception {
  181. _persistence.countByUuid_C("", RandomTestUtil.nextLong());
  182. _persistence.countByUuid_C("null", 0L);
  183. _persistence.countByUuid_C((String)null, 0L);
  184. }
  185. @Test
  186. public void testCountByGroupId() throws Exception {
  187. _persistence.countByGroupId(RandomTestUtil.nextLong());
  188. _persistence.countByGroupId(0L);
  189. }
  190. @Test
  191. public void testCountByGroupIdArrayable() throws Exception {
  192. _persistence.countByGroupId(new long[] {RandomTestUtil.nextLong(), 0L});
  193. }
  194. @Test
  195. public void testCountByCompanyId() throws Exception {
  196. _persistence.countByCompanyId(RandomTestUtil.nextLong());
  197. _persistence.countByCompanyId(0L);
  198. }
  199. @Test
  200. public void testCountByG_N() throws Exception {
  201. _persistence.countByG_N(RandomTestUtil.nextLong(), "");
  202. _persistence.countByG_N(0L, "null");
  203. _persistence.countByG_N(0L, (String)null);
  204. }
  205. @Test
  206. public void testCountByG_LikeN() throws Exception {
  207. _persistence.countByG_LikeN(RandomTestUtil.nextLong(), "");
  208. _persistence.countByG_LikeN(0L, "null");
  209. _persistence.countByG_LikeN(0L, (String)null);
  210. }
  211. @Test
  212. public void testCountByC_ERC() throws Exception {
  213. _persistence.countByC_ERC(RandomTestUtil.nextLong(), "");
  214. _persistence.countByC_ERC(0L, "null");
  215. _persistence.countByC_ERC(0L, (String)null);
  216. }
  217. @Test
  218. public void testFindByPrimaryKeyExisting() throws Exception {
  219. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  220. AssetVocabulary existingAssetVocabulary = _persistence.findByPrimaryKey(
  221. newAssetVocabulary.getPrimaryKey());
  222. Assert.assertEquals(existingAssetVocabulary, newAssetVocabulary);
  223. }
  224. @Test(expected = NoSuchVocabularyException.class)
  225. public void testFindByPrimaryKeyMissing() throws Exception {
  226. long pk = RandomTestUtil.nextLong();
  227. _persistence.findByPrimaryKey(pk);
  228. }
  229. @Test
  230. public void testFindAll() throws Exception {
  231. _persistence.findAll(
  232. QueryUtil.ALL_POS, QueryUtil.ALL_POS, getOrderByComparator());
  233. }
  234. @Test
  235. public void testFilterFindByGroupId() throws Exception {
  236. _persistence.filterFindByGroupId(
  237. 0, QueryUtil.ALL_POS, QueryUtil.ALL_POS, getOrderByComparator());
  238. }
  239. protected OrderByComparator<AssetVocabulary> getOrderByComparator() {
  240. return OrderByComparatorFactoryUtil.create(
  241. "AssetVocabulary", "mvccVersion", true, "ctCollectionId", true,
  242. "uuid", true, "externalReferenceCode", true, "vocabularyId", true,
  243. "groupId", true, "companyId", true, "userId", true, "userName",
  244. true, "createDate", true, "modifiedDate", true, "name", true,
  245. "title", true, "description", true, "settings", true,
  246. "lastPublishDate", true);
  247. }
  248. @Test
  249. public void testFetchByPrimaryKeyExisting() throws Exception {
  250. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  251. AssetVocabulary existingAssetVocabulary =
  252. _persistence.fetchByPrimaryKey(newAssetVocabulary.getPrimaryKey());
  253. Assert.assertEquals(existingAssetVocabulary, newAssetVocabulary);
  254. }
  255. @Test
  256. public void testFetchByPrimaryKeyMissing() throws Exception {
  257. long pk = RandomTestUtil.nextLong();
  258. AssetVocabulary missingAssetVocabulary = _persistence.fetchByPrimaryKey(
  259. pk);
  260. Assert.assertNull(missingAssetVocabulary);
  261. }
  262. @Test
  263. public void testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereAllPrimaryKeysExist()
  264. throws Exception {
  265. AssetVocabulary newAssetVocabulary1 = addAssetVocabulary();
  266. AssetVocabulary newAssetVocabulary2 = addAssetVocabulary();
  267. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  268. primaryKeys.add(newAssetVocabulary1.getPrimaryKey());
  269. primaryKeys.add(newAssetVocabulary2.getPrimaryKey());
  270. Map<Serializable, AssetVocabulary> assetVocabularies =
  271. _persistence.fetchByPrimaryKeys(primaryKeys);
  272. Assert.assertEquals(2, assetVocabularies.size());
  273. Assert.assertEquals(
  274. newAssetVocabulary1,
  275. assetVocabularies.get(newAssetVocabulary1.getPrimaryKey()));
  276. Assert.assertEquals(
  277. newAssetVocabulary2,
  278. assetVocabularies.get(newAssetVocabulary2.getPrimaryKey()));
  279. }
  280. @Test
  281. public void testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist()
  282. throws Exception {
  283. long pk1 = RandomTestUtil.nextLong();
  284. long pk2 = RandomTestUtil.nextLong();
  285. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  286. primaryKeys.add(pk1);
  287. primaryKeys.add(pk2);
  288. Map<Serializable, AssetVocabulary> assetVocabularies =
  289. _persistence.fetchByPrimaryKeys(primaryKeys);
  290. Assert.assertTrue(assetVocabularies.isEmpty());
  291. }
  292. @Test
  293. public void testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereSomePrimaryKeysExist()
  294. throws Exception {
  295. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  296. long pk = RandomTestUtil.nextLong();
  297. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  298. primaryKeys.add(newAssetVocabulary.getPrimaryKey());
  299. primaryKeys.add(pk);
  300. Map<Serializable, AssetVocabulary> assetVocabularies =
  301. _persistence.fetchByPrimaryKeys(primaryKeys);
  302. Assert.assertEquals(1, assetVocabularies.size());
  303. Assert.assertEquals(
  304. newAssetVocabulary,
  305. assetVocabularies.get(newAssetVocabulary.getPrimaryKey()));
  306. }
  307. @Test
  308. public void testFetchByPrimaryKeysWithNoPrimaryKeys() throws Exception {
  309. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  310. Map<Serializable, AssetVocabulary> assetVocabularies =
  311. _persistence.fetchByPrimaryKeys(primaryKeys);
  312. Assert.assertTrue(assetVocabularies.isEmpty());
  313. }
  314. @Test
  315. public void testFetchByPrimaryKeysWithOnePrimaryKey() throws Exception {
  316. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  317. Set<Serializable> primaryKeys = new HashSet<Serializable>();
  318. primaryKeys.add(newAssetVocabulary.getPrimaryKey());
  319. Map<Serializable, AssetVocabulary> assetVocabularies =
  320. _persistence.fetchByPrimaryKeys(primaryKeys);
  321. Assert.assertEquals(1, assetVocabularies.size());
  322. Assert.assertEquals(
  323. newAssetVocabulary,
  324. assetVocabularies.get(newAssetVocabulary.getPrimaryKey()));
  325. }
  326. @Test
  327. public void testActionableDynamicQuery() throws Exception {
  328. final IntegerWrapper count = new IntegerWrapper();
  329. ActionableDynamicQuery actionableDynamicQuery =
  330. AssetVocabularyLocalServiceUtil.getActionableDynamicQuery();
  331. actionableDynamicQuery.setPerformActionMethod(
  332. new ActionableDynamicQuery.PerformActionMethod<AssetVocabulary>() {
  333. @Override
  334. public void performAction(AssetVocabulary assetVocabulary) {
  335. Assert.assertNotNull(assetVocabulary);
  336. count.increment();
  337. }
  338. });
  339. actionableDynamicQuery.performActions();
  340. Assert.assertEquals(count.getValue(), _persistence.countAll());
  341. }
  342. @Test
  343. public void testDynamicQueryByPrimaryKeyExisting() throws Exception {
  344. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  345. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  346. AssetVocabulary.class, _dynamicQueryClassLoader);
  347. dynamicQuery.add(
  348. RestrictionsFactoryUtil.eq(
  349. "vocabularyId", newAssetVocabulary.getVocabularyId()));
  350. List<AssetVocabulary> result = _persistence.findWithDynamicQuery(
  351. dynamicQuery);
  352. Assert.assertEquals(1, result.size());
  353. AssetVocabulary existingAssetVocabulary = result.get(0);
  354. Assert.assertEquals(existingAssetVocabulary, newAssetVocabulary);
  355. }
  356. @Test
  357. public void testDynamicQueryByPrimaryKeyMissing() throws Exception {
  358. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  359. AssetVocabulary.class, _dynamicQueryClassLoader);
  360. dynamicQuery.add(
  361. RestrictionsFactoryUtil.eq(
  362. "vocabularyId", RandomTestUtil.nextLong()));
  363. List<AssetVocabulary> result = _persistence.findWithDynamicQuery(
  364. dynamicQuery);
  365. Assert.assertEquals(0, result.size());
  366. }
  367. @Test
  368. public void testDynamicQueryByProjectionExisting() throws Exception {
  369. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  370. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  371. AssetVocabulary.class, _dynamicQueryClassLoader);
  372. dynamicQuery.setProjection(
  373. ProjectionFactoryUtil.property("vocabularyId"));
  374. Object newVocabularyId = newAssetVocabulary.getVocabularyId();
  375. dynamicQuery.add(
  376. RestrictionsFactoryUtil.in(
  377. "vocabularyId", new Object[] {newVocabularyId}));
  378. List<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);
  379. Assert.assertEquals(1, result.size());
  380. Object existingVocabularyId = result.get(0);
  381. Assert.assertEquals(existingVocabularyId, newVocabularyId);
  382. }
  383. @Test
  384. public void testDynamicQueryByProjectionMissing() throws Exception {
  385. DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(
  386. AssetVocabulary.class, _dynamicQueryClassLoader);
  387. dynamicQuery.setProjection(
  388. ProjectionFactoryUtil.property("vocabularyId"));
  389. dynamicQuery.add(
  390. RestrictionsFactoryUtil.in(
  391. "vocabularyId", new Object[] {RandomTestUtil.nextLong()}));
  392. List<Object> result = _persistence.findWithDynamicQuery(dynamicQuery);
  393. Assert.assertEquals(0, result.size());
  394. }
  395. @Test
  396. public void testResetOriginalValues() throws Exception {
  397. AssetVocabulary newAssetVocabulary = addAssetVocabulary();
  398. _persistence.clearCache();
  399. AssetVocabulary existingAssetVocabulary = _persistence.findByPrimaryKey(
  400. newAssetVocabulary.getPrimaryKey());
  401. Assert.assertTrue(
  402. Objects.equals(
  403. existingAssetVocabulary.getUuid(),
  404. ReflectionTestUtil.invoke(
  405. existingAssetVocabulary, "getOriginalUuid",
  406. new Class<?>[0])));
  407. Assert.assertEquals(
  408. Long.valueOf(existingAssetVocabulary.getGroupId()),
  409. ReflectionTestUtil.<Long>invoke(
  410. existingAssetVocabulary, "getOriginalGroupId",
  411. new Class<?>[0]));
  412. Assert.assertEquals(
  413. Long.valueOf(existingAssetVocabulary.getGroupId()),
  414. ReflectionTestUtil.<Long>invoke(
  415. existingAssetVocabulary, "getOriginalGroupId",
  416. new Class<?>[0]));
  417. Assert.assertTrue(
  418. Objects.equals(
  419. existingAssetVocabulary.getName(),
  420. ReflectionTestUtil.invoke(
  421. existingAssetVocabulary, "getOriginalName",
  422. new Class<?>[0])));
  423. Assert.assertEquals(
  424. Long.valueOf(existingAssetVocabulary.getCompanyId()),
  425. ReflectionTestUtil.<Long>invoke(
  426. existingAssetVocabulary, "getOriginalCompanyId",
  427. new Class<?>[0]));
  428. Assert.assertTrue(
  429. Objects.equals(
  430. existingAssetVocabulary.getExternalReferenceCode(),
  431. ReflectionTestUtil.invoke(
  432. existingAssetVocabulary, "getOriginalExternalReferenceCode",
  433. new Class<?>[0])));
  434. }
  435. protected AssetVocabulary addAssetVocabulary() throws Exception {
  436. long pk = RandomTestUtil.nextLong();
  437. AssetVocabulary assetVocabulary = _persistence.create(pk);
  438. assetVocabulary.setMvccVersion(RandomTestUtil.nextLong());
  439. assetVocabulary.setCtCollectionId(RandomTestUtil.nextLong());
  440. assetVocabulary.setUuid(RandomTestUtil.randomString());
  441. assetVocabulary.setExternalReferenceCode(RandomTestUtil.randomString());
  442. assetVocabulary.setGroupId(RandomTestUtil.nextLong());
  443. assetVocabulary.setCompanyId(RandomTestUtil.nextLong());
  444. assetVocabulary.setUserId(RandomTestUtil.nextLong());
  445. assetVocabulary.setUserName(RandomTestUtil.randomString());
  446. assetVocabulary.setCreateDate(RandomTestUtil.nextDate());
  447. assetVocabulary.setModifiedDate(RandomTestUtil.nextDate());
  448. assetVocabulary.setName(RandomTestUtil.randomString());
  449. assetVocabulary.setTitle(RandomTestUtil.randomString());
  450. assetVocabulary.setDescription(RandomTestUtil.randomString());
  451. assetVocabulary.setSettings(RandomTestUtil.randomString());
  452. assetVocabulary.setLastPublishDate(RandomTestUtil.nextDate());
  453. _assetVocabularies.add(_persistence.update(assetVocabulary));
  454. return assetVocabulary;
  455. }
  456. private List<AssetVocabulary> _assetVocabularies =
  457. new ArrayList<AssetVocabulary>();
  458. private AssetVocabularyPersistence _persistence;
  459. private ClassLoader _dynamicQueryClassLoader;
  460. }