public class ColumnType extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ColumnType.WrappedId
Wraps a string that needs to be mapped to an id column in prepared
statements.
|
Modifier and Type | Field and Description |
---|---|
static ColumnType |
AUTOINC |
static ColumnType |
BLOBID |
static ColumnType |
BOOLEAN |
static ColumnType |
CLOB |
static int |
CLOB_LENGTH
Length used internally to flag a string to use CLOB.
|
static ColumnType |
CLUSTERFRAGS |
static ColumnType |
CLUSTERNODE |
static ColumnType |
DOUBLE |
static ColumnType |
FTINDEXED |
static ColumnType |
FTSTORED |
static ColumnType |
INTEGER |
int |
length |
static ColumnType |
LONG |
static ColumnType |
NODEARRAY |
static ColumnType |
NODEID |
static ColumnType |
NODEIDFK |
static ColumnType |
NODEIDFKMUL |
static ColumnType |
NODEIDFKNP |
static ColumnType |
NODEIDFKNULL |
static ColumnType |
NODEIDPK |
static ColumnType |
NODEVAL |
ColumnSpec |
spec |
static ColumnType |
STRING |
static ColumnType |
SYSNAME |
static ColumnType |
SYSNAMEARRAY |
static ColumnType |
TIMESTAMP |
static ColumnType |
TINYINT |
Constructor and Description |
---|
ColumnType(ColumnSpec spec) |
ColumnType(ColumnSpec spec,
int length) |
Modifier and Type | Method and Description |
---|---|
static ColumnType |
fromField(Field field)
Gets the column type from a Nuxeo Schema field, including its constrained
length if any.
|
static ColumnType |
fromFieldType(Type type)
Gets the column type from a Nuxeo Schema field type (unconstrained).
|
boolean |
isClob() |
boolean |
isId()
Checks if this column holds a Nuxeo unique id (usually UUID).
|
boolean |
isUnconstrained() |
String |
toString() |
public static final int CLOB_LENGTH
public static final ColumnType STRING
public static final ColumnType CLOB
public static final ColumnType BOOLEAN
public static final ColumnType LONG
public static final ColumnType DOUBLE
public static final ColumnType TIMESTAMP
public static final ColumnType BLOBID
public static final ColumnType NODEID
public static final ColumnType NODEIDFK
public static final ColumnType NODEIDFKNP
public static final ColumnType NODEIDFKMUL
public static final ColumnType NODEIDFKNULL
public static final ColumnType NODEIDPK
public static final ColumnType NODEVAL
public static final ColumnType NODEARRAY
public static final ColumnType SYSNAME
public static final ColumnType SYSNAMEARRAY
public static final ColumnType TINYINT
public static final ColumnType INTEGER
public static final ColumnType AUTOINC
public static final ColumnType FTINDEXED
public static final ColumnType FTSTORED
public static final ColumnType CLUSTERNODE
public static final ColumnType CLUSTERFRAGS
public final ColumnSpec spec
public final int length
public ColumnType(ColumnSpec spec, int length)
public ColumnType(ColumnSpec spec)
public boolean isUnconstrained()
public boolean isClob()
public boolean isId()
public static ColumnType fromField(Field field)
public static ColumnType fromFieldType(Type type)
Copyright © 2013 Nuxeo SA. All Rights Reserved.