|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.type.SqlComposedTypeFactory
public class SqlComposedTypeFactory
The factory definition, which can be used to construct the SqlMetaType instances.
It's used to combine the factory of the underlying stack (on top of which the SQL Processor works) and the custom
META types provided in the time of SqlProcessorLoader construction.
| Field Summary | |
|---|---|
private Map<Class<?>,SqlMetaType> |
classToTypeMap
The map between a Java class type and an internal type. |
private Map<String,SqlMetaType> |
metaToTypeMap
The map between a String representation of an internal type and an internal type. |
private SqlTypeFactory |
typeFactory
The factory of the underlying stack. |
| Constructor Summary | |
|---|---|
SqlComposedTypeFactory(SqlTypeFactory typeFactory)
Creates a new instance of this factory. |
|
SqlComposedTypeFactory(SqlTypeFactory typeFactory,
List<SqlInternalType> customTypes)
Creates a new instance of this factory. |
|
| Method Summary | |
|---|---|
SqlMetaType[] |
getAllTypes()
Returns the collection of all the META types provided by this factory. |
SqlMetaType |
getDefaultType()
Returns the default META type. |
SqlMetaType |
getEnumIntegerType()
Returns the META type for the enumerations based on Integer internal type. |
SqlMetaType |
getEnumStringType()
Returns the META type for the enumerations based on String internal type. |
SqlMetaType |
getIdentityType()
Returns the META type for an auto-generated identity. |
SqlMetaType |
getMetaType(Class<?> clazz)
Returns the META type, which can be used to handle input/output values of provided Java type. |
SqlMetaType |
getMetaType(String name)
Returns the META type with the provided name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Map<Class<?>,SqlMetaType> classToTypeMap
private Map<String,SqlMetaType> metaToTypeMap
private SqlTypeFactory typeFactory
| Constructor Detail |
|---|
public SqlComposedTypeFactory(SqlTypeFactory typeFactory)
typeFactory - the factory of the underlying stack
public SqlComposedTypeFactory(SqlTypeFactory typeFactory,
List<SqlInternalType> customTypes)
typeFactory - the factory of the underlying stackcustomTypes - a collection of the custom META types provided by an user| Method Detail |
|---|
public SqlMetaType getDefaultType()
getDefaultType in interface SqlTypeFactorypublic SqlMetaType getEnumIntegerType()
getEnumIntegerType in interface SqlTypeFactorypublic SqlMetaType getEnumStringType()
getEnumStringType in interface SqlTypeFactorypublic SqlMetaType getIdentityType()
getIdentityType in interface SqlTypeFactorypublic SqlMetaType[] getAllTypes()
getAllTypes in interface SqlTypeFactorypublic SqlMetaType getMetaType(Class<?> clazz)
getMetaType in interface SqlTypeFactoryclazz - the input/output value Java type
public SqlMetaType getMetaType(String name)
getMetaType in interface SqlTypeFactoryname - the name of the META SQL type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||