|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.metamodel.mapping.jcr.PropertyMetaType<T>
T - the java type modeling the simple typepublic abstract class PropertyMetaType<T>
A property meta type is a representation of the various JCR types defined by PropertyType.
| Field Summary | |
|---|---|
static PropertyMetaType<java.io.InputStream> |
BINARY
. |
static PropertyMetaType<java.lang.Boolean> |
BOOLEAN
. |
static PropertyMetaType<java.util.Calendar> |
DATE
. |
static PropertyMetaType<java.lang.Double> |
DOUBLE
. |
static PropertyMetaType<java.lang.Long> |
LONG
. |
static PropertyMetaType<java.lang.String> |
NAME
. |
static PropertyMetaType<java.lang.String> |
PATH
. |
static PropertyMetaType<java.lang.String> |
STRING
. |
| Method Summary | |
|---|---|
static PropertyMetaType<?> |
get(int code)
|
int |
getCode()
Returns the JCR property type as defined by PropertyType |
java.lang.Class<T> |
getJavaType()
Returns the Java type modelling the property type. |
abstract T |
getValue(javax.jcr.Value value)
|
abstract javax.jcr.Value |
getValue(javax.jcr.ValueFactory factory,
T t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyMetaType<java.lang.String> STRING
public static final PropertyMetaType<java.lang.String> PATH
public static final PropertyMetaType<java.lang.String> NAME
public static final PropertyMetaType<java.lang.Long> LONG
public static final PropertyMetaType<java.lang.Double> DOUBLE
public static final PropertyMetaType<java.lang.Boolean> BOOLEAN
public static final PropertyMetaType<java.io.InputStream> BINARY
public static final PropertyMetaType<java.util.Calendar> DATE
| Method Detail |
|---|
public static PropertyMetaType<?> get(int code)
public abstract javax.jcr.Value getValue(javax.jcr.ValueFactory factory,
T t)
throws javax.jcr.ValueFormatException
javax.jcr.ValueFormatException
public abstract T getValue(javax.jcr.Value value)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic java.lang.Class<T> getJavaType()
public int getCode()
PropertyType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||