Debian Codegraph @

lang/java/src/com/sleepycat/persist/model/ModelInternal.java

raw
1 /*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002, 2013 Oracle and/or its affiliates. All rights reserved.
5 *
6 */
7
8 package com.sleepycat.persist.model;
9
10 import com.sleepycat.persist.impl.PersistCatalog;
11
12 /**
13 * Internal access class that should not be used by applications.
14 *
15 * @author Mark Hayes
16 */
17 public class ModelInternal {
18
19 /**
20 * Internal access method that should not be used by applications.
21 */
22 public static void setCatalog(EntityModel model, PersistCatalog catalog) {
23 model.setCatalog(catalog);
24 }
25
26 /**
27 * Internal access method that should not be used by applications.
28 */
29 public static void setClassLoader(EntityModel model, ClassLoader loader) {
30 /* Do not overwrite loader with null value. */
31 if (loader != null) {
32 model.setClassLoader(loader);
33 }
34 }
35
36 /**
37 * Internal access method that should not be used by applications.
38 */
39 public static ClassLoader getClassLoader(EntityModel model) {
40 return model.getClassLoader();
41 }
42 }