1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.api.util; |
17 | |
|
18 | |
import java.text.DateFormat; |
19 | |
import java.text.SimpleDateFormat; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
public final class RiceConstants { |
27 | |
public static final String DB_PLATFORM = "dbPlatform"; |
28 | |
|
29 | |
public static final String RICE_JPA_ENABLED = "rice.jpa.enabled"; |
30 | |
public static final String JPA_ENABLED_SUFFIX = ".jpa.enabled"; |
31 | |
|
32 | |
public static final String SERVICES_TO_CACHE = "rice.resourceloader.servicesToCache"; |
33 | |
public static final String RICE_LOGGING_CONFIGURE = "rice.logging.configure"; |
34 | |
|
35 | |
public static final String SPRING_TRANSACTION_MANAGER = "SPRING_TRANSACTION_MANAGER"; |
36 | |
|
37 | |
public static final String ROOT_RESOURCE_LOADER_CONTAINER_NAME = "RootResourceLoaderContainer"; |
38 | |
public static final String DEFAULT_ROOT_RESOURCE_LOADER_NAME = "RootResourceLoader"; |
39 | |
|
40 | |
public static final String RICE_CONFIGURER_CONFIG_NAME = "riceConfigurer"; |
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
public static final String DATASOURCE_OBJ = "datasource"; |
46 | |
public static final String NON_TRANSACTIONAL_DATASOURCE_OBJ = "nonTransactionalDatasource"; |
47 | |
public static final String SERVER_DATASOURCE_OBJ = "serverDatasource"; |
48 | |
public static final String TRANSACTION_MANAGER_OBJ = "transactionManager"; |
49 | |
public static final String USER_TRANSACTION_OBJ = "userTransaction"; |
50 | |
public static final String M_BEANS = "mBeans"; |
51 | |
public static final String ALT_SPRING_FILE = "config.spring.file"; |
52 | |
public static final String ALT_OJB_FILE = "config.obj.file"; |
53 | |
|
54 | |
|
55 | |
|
56 | |
public static final String TRANSACTION_MANAGER_JNDI = "transactionManager.jndi.location"; |
57 | |
public static final String USER_TRANSACTION_JNDI = "userTransaction.jndi.location"; |
58 | |
public static final String DATASOURCE_JNDI = "datasource.jndi.location"; |
59 | |
public static final String NON_TRANSACTIONAL_DATASOURCE_JNDI = "nonTransactional.datasource.jndi.location"; |
60 | |
public static final String SERVER_DATASOURCE_JNDI = "serverDatasource.jndi.location"; |
61 | |
|
62 | |
|
63 | |
|
64 | |
public static final String MAPPING_BASIC = "basic"; |
65 | |
|
66 | |
|
67 | |
public static final String MODULE_LOCKED_MAPPING = "moduleLocked"; |
68 | |
|
69 | |
|
70 | |
public static final String SIMPLE_DATE_FORMAT_FOR_DATE = "MM/dd/yyyy"; |
71 | |
public static final String SIMPLE_DATE_FORMAT_FOR_TIME = "hh:mm a"; |
72 | |
public static final String DEFAULT_DATE_FORMAT_PATTERN = SIMPLE_DATE_FORMAT_FOR_TIME + " " + SIMPLE_DATE_FORMAT_FOR_DATE; |
73 | |
|
74 | |
public static DateFormat getDefaultDateFormat() { |
75 | 0 | return new SimpleDateFormat(SIMPLE_DATE_FORMAT_FOR_DATE); |
76 | |
} |
77 | |
|
78 | |
public static DateFormat getDefaultTimeFormat() { |
79 | 0 | return new SimpleDateFormat(SIMPLE_DATE_FORMAT_FOR_TIME); |
80 | |
} |
81 | |
|
82 | |
public static DateFormat getDefaultDateAndTimeFormat() { |
83 | 0 | return new SimpleDateFormat(DEFAULT_DATE_FORMAT_PATTERN); |
84 | |
} |
85 | |
|
86 | |
public static final long NO_WAIT = 0; |
87 | |
|
88 | |
public static final String RICE_JAXWS_TARGET_NAMESPACE_BASE = "http://rice.kuali.org/wsdl"; |
89 | |
|
90 | 0 | private RiceConstants() { |
91 | 0 | throw new UnsupportedOperationException("do not call"); |
92 | |
} |
93 | |
} |