File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\mvstore\type\DataTypeFactory.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.mvstore.type;
8
9 /**
10 * A factory for maps and data types.
11 */
12 public interface DataTypeFactory {
13
14 /**
15 * Set the parent factory.
16 *
17 * @param parent the parent factory
18 */
19 void setParent(DataTypeFactory parent);
20
21 /**
22 * Parse the data type.
23 *
24 * @param dataType the string and type specific meta data
25 * @return the type, or null if unknown
26 */
27 DataType buildDataType(String dataType);
28
29 /**
30 * Get the data type identifier for the given class.
31 * <p>
32 * To avoid conflict with the default factory, the returned string should
33 * start with the package name of the type factory.
34 *
35 * @param objectClass the class
36 * @return the data type identifier, or null if not supported
37 */
38 String getDataType(Class<?> objectClass);
39
40 }
41