public final class CustomWrapperSchemaParameter extends Object
CustomWrapperSchemaParameter[]).
Types, including
java.sql.Types.ARRAY and java.sql.Types.STRUCT, in case they
are compound.
| Modifier and Type | Field and Description |
|---|---|
static int |
ASC_AND_DESC_SORT
This parameter supports both ascending and descending sort.
|
static int |
ASCENDING_SORT
This parameter supports ascending sort.
|
static int |
DESCENDING_SORT
This parameter supports descending sort.
|
static int |
NOT_SORTABLE
This parameter cannot be sorted.
|
| Constructor and Description |
|---|
CustomWrapperSchemaParameter(String name,
int type)
Creates a simple schema parameter with the following default properties:
|
CustomWrapperSchemaParameter(String name,
int type,
CustomWrapperSchemaParameter[] columns)
Creates a complex schema parameter with the following default properties:
|
CustomWrapperSchemaParameter(String name,
int type,
CustomWrapperSchemaParameter[] columns,
boolean isSearchable,
int sortableStatus,
boolean isUpdateable,
boolean isNullable,
boolean isMandatory)
Creates a schema parameter without any default property.
|
CustomWrapperSchemaParameter(String name,
int type,
Integer typeSize,
String typeName,
Integer typeRadix,
Integer typeDecimals,
Map<String,String> extraProperties)
Creates a simple schema parameter with the following default properties:
|
CustomWrapperSchemaParameter(String name,
int type,
Integer typeSize,
String typeName,
Integer typeRadix,
Integer typeDecimals,
Map<String,String> extraProperties,
CustomWrapperSchemaParameter[] columns)
Creates a complex schema parameter with the following default properties:
|
CustomWrapperSchemaParameter(String name,
int type,
Integer typeSize,
String typeName,
Integer typeRadix,
Integer typeDecimals,
Map<String,String> extraProperties,
CustomWrapperSchemaParameter[] columns,
boolean isSearchable,
int sortableStatus,
boolean isUpdateable,
boolean isNullable,
boolean isMandatory)
Creates a schema parameter without any default property.
|
| Modifier and Type | Method and Description |
|---|---|
CustomWrapperSchemaParameter[] |
getColumns() |
Map<String,String> |
getExtraProperties() |
String |
getName() |
Class<?> |
getParameterClass()
Obtains the Java class of this schema parameter according to its type.
|
int |
getSortableStatus() |
int |
getType() |
Integer |
getTypeDecimals() |
String |
getTypeName() |
Integer |
getTypeRadix() |
Integer |
getTypeSize() |
boolean |
isMandatory() |
boolean |
isNullable() |
boolean |
isSearchable() |
boolean |
isUpdateable() |
void |
setExtraProperties(Map<String,String> extraProperties) |
String |
toString() |
public static final int NOT_SORTABLE
public static final int ASCENDING_SORT
public static final int DESCENDING_SORT
public static final int ASC_AND_DESC_SORT
public CustomWrapperSchemaParameter(String name, int type, CustomWrapperSchemaParameter[] columns, boolean isSearchable, int sortableStatus, boolean isUpdateable, boolean isNullable, boolean isMandatory)
name - the name of this schema parametertype - one of the types defined in java.sql.Types.columns - an array of schema parameters, if this parameter is to be compound,
or null otherwise.isSearchable - true if this parameter can be searched or
false otherwise.sortableStatus - one of NOT_SORTABLE, ASCENDING_SORT,
DESCENDING_SORT or ASC_AND_DESC_SORT.isUpdateable - true if this parameter can be updated or
false otherwise.isNullable - true if this parameter can be made null or
false otherwise.isMandatory - true if this parameter is mandatory or
false otherwise. This parameter will be ignored
if columns is not null.public CustomWrapperSchemaParameter(String name, int type, Integer typeSize, String typeName, Integer typeRadix, Integer typeDecimals, Map<String,String> extraProperties, CustomWrapperSchemaParameter[] columns, boolean isSearchable, int sortableStatus, boolean isUpdateable, boolean isNullable, boolean isMandatory)
name - the name of this schema parametertype - one of the types defined in java.sql.Types.columns - an array of schema parameters, if this parameter is to be compound,
or null otherwise.isSearchable - true if this parameter can be searched or
false otherwise.sortableStatus - one of NOT_SORTABLE, ASCENDING_SORT,
DESCENDING_SORT or ASC_AND_DESC_SORT.isUpdateable - true if this parameter can be updated or
false otherwise.isNullable - true if this parameter can be made null or
false otherwise.isMandatory - true if this parameter is mandatory or
false otherwise. This parameter will be ignored
if columns is not null.public CustomWrapperSchemaParameter(String name, int type, CustomWrapperSchemaParameter[] columns)
name - this schema parameter's name.type - this schema parameter's type (one of java.sql.Types).columns - an array of schema parameters, representing this parameter's sub-parameters.public CustomWrapperSchemaParameter(String name, int type, Integer typeSize, String typeName, Integer typeRadix, Integer typeDecimals, Map<String,String> extraProperties, CustomWrapperSchemaParameter[] columns)
name - this schema parameter's name.type - this schema parameter's type (one of java.sql.Types).columns - an array of schema parameters, representing this parameter's sub-parameters.public CustomWrapperSchemaParameter(String name, int type)
getColumns() returns null
name - this schema parameter's name.type - this schema parameter's type (one of java.sql.Types).public CustomWrapperSchemaParameter(String name, int type, Integer typeSize, String typeName, Integer typeRadix, Integer typeDecimals, Map<String,String> extraProperties)
getColumns() returns null
name - this schema parameter's name.type - this schema parameter's type (one of java.sql.Types).public String getName()
public int getType()
java.sql.Types.public Integer getTypeRadix()
public Integer getTypeSize()
public String getTypeName()
public Integer getTypeDecimals()
public CustomWrapperSchemaParameter[] getColumns()
public boolean isSearchable()
true if this parameter can be searched or false otherwise.public int getSortableStatus()
NOT_SORTABLE, ASCENDING_SORT, DESCENDING_SORT
or ASC_AND_DESC_SORT.public boolean isUpdateable()
true if this parameter can be updated or false otherwise.public boolean isNullable()
true if this parameter can be made null or false otherwise.public boolean isMandatory()
true if this parameter is mandatory or false otherwise.public Class<?> getParameterClass()
java.sql.Types.ARRAY = Object[]java.sql.Types.BIGINT = Longjava.sql.Types.BINARY = Byte[]java.sql.Types.BIT = Booleanjava.sql.Types.BLOB = Byte[]java.sql.Types.BOOLEAN = Booleanjava.sql.Types.CHAR = Characterjava.sql.Types.CLOB = Character[]java.sql.Types.DATALINK = java.net.URLjava.sql.Types.DATE = java.util.Datejava.sql.Types.DECIMAL = java.math.BigDecimaljava.sql.Types.DISTINCT = Objectjava.sql.Types.DOUBLE = Doublejava.sql.Types.FLOAT = Floatjava.sql.Types.INTEGER = Integerjava.sql.Types.JAVA_OBJECT = Objectjava.sql.Types.LONGVARBINARY = Byte[]java.sql.Types.LONGVARCHAR = Stringjava.sql.Types.NUMERIC = java.math.BigDecimaljava.sql.Types.REAL = Doublejava.sql.Types.SMALLINT = Integerjava.sql.Types.STRUCT = java.sql.Structjava.sql.Types.TIME = java.sql.Timejava.sql.Types.TIMESTAMP = java.sql.Timestampjava.sql.Types.TINYINT = Integerjava.sql.Types.VARBINARY = Byte[]java.sql.Types.VARCHAR = StringCopyright © 2019 Denodo Technologies. All rights reserved.