public final class JcrType extends Object
PropertyType
s and JDBC types.Modifier and Type | Class and Description |
---|---|
static class |
JcrType.DefaultDataTypes |
Modifier | Constructor and Description |
---|---|
protected |
JcrType(int jcrType,
int jdbcType,
String typeName,
Class<?> clazz,
int displaySize,
int precision,
Transform transform) |
Modifier and Type | Method and Description |
---|---|
Integer |
getDefaultPrecision()
Get the default precision used for this JcrType
|
String |
getJcrName()
Get the name of the JCR type.
|
int |
getJcrType()
Get the JCR
PropertyType value. |
int |
getJdbcType()
Get the JDBC
Types value. |
String |
getJdbcTypeName()
Get the native type name associated with the JDBC
Types value. |
int |
getNominalDisplaySize()
Get the nominal display size for the given type.
|
Class<?> |
getRepresentationClass()
Get the Java class used to represent values for this type.
|
protected Transform |
getTransform()
|
boolean |
isCaseSensitive()
Get the indicator if the value is case sensitive
|
boolean |
isSigned()
Get the indicator if the value is considered a signed value.
|
static String |
jdbcType(String jcrTypeName) |
Object |
translateValue(Value value) |
static Object |
translateValueToJDBC(Value value) |
static JcrType |
typeInfo(int jcrType) |
static JcrType |
typeInfo(String jcrTypeName) |
public String getJcrName()
public int getJcrType()
PropertyType
value.public int getJdbcType()
Types
value.public String getJdbcTypeName()
Types
value.public Integer getDefaultPrecision()
protected Transform getTransform()
public boolean isCaseSensitive()
public boolean isSigned()
public Class<?> getRepresentationClass()
public int getNominalDisplaySize()
ResultSetMetaData.getColumnDisplaySize(int)
public Object translateValue(Value value) throws SQLException
SQLException
public static Object translateValueToJDBC(Value value) throws SQLException
SQLException
public static JcrType typeInfo(int jcrType)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.