|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jdbc.JcrType
public final class JcrType
Provides functionality to convert from JCR PropertyType
s and JDBC types.
Nested Class Summary | |
---|---|
static class |
JcrType.DefaultDataTypes
|
Constructor Summary | |
---|---|
protected |
JcrType(int jcrType,
int jdbcType,
String typeName,
Class<?> clazz,
int displaySize,
int precision,
Transform transform)
|
Method Summary | |
---|---|
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 JcrType.DefaultDataTypes value. |
String |
getJdbcTypeName()
Get the native type name associated with the JDBC JcrType.DefaultDataTypes 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()
Return the Transform object to use to transform the Value to the correct data type. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JcrType(int jcrType, int jdbcType, String typeName, Class<?> clazz, int displaySize, int precision, Transform transform)
Method Detail |
---|
public String getJcrName()
public int getJcrType()
PropertyType
value.
public int getJdbcType()
JcrType.DefaultDataTypes
value.
public String getJdbcTypeName()
JcrType.DefaultDataTypes
value.
public Integer getDefaultPrecision()
protected Transform getTransform()
Transform
object to use to transform the Value
to the correct data type.
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(String jcrTypeName)
public static JcrType typeInfo(int jcrType)
public static String jdbcType(String jcrTypeName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |