public class ArrayTypeResolver extends Object implements StructAndArrayTypeResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_ALL_COLL_TYPES |
| Constructor and Description |
|---|
ArrayTypeResolver(DefaultDbConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
getOwnerFrom(String typeName) |
static String |
getTypeSimpleName(String typeName) |
void |
resolveLobIn(Object[] attributes,
Integer index,
ResolvedDbType resolvedDbType)
This method calls the method that instantiates clob and blob classes according to structure.
|
void |
resolveLobs(Object[] elements,
Integer index,
String dataTypeName)
This method changes entity replacing some elements with clob or blob instances.
|
String |
resolveType(String typeName)
This method resolves the attribute data type.
|
public static final String QUERY_ALL_COLL_TYPES
public ArrayTypeResolver(DefaultDbConnection connection)
public void resolveLobs(Object[] elements, Integer index, String dataTypeName) throws SQLException
StructAndArrayTypeResolverresolveLobs in interface StructAndArrayTypeResolverelements - of the array or structindex - of each element to be replaced with an clob or blob instancedataTypeName - of the attribute that is going to be replacedSQLException - when there is an error creating a clob or clobpublic String resolveType(String typeName) throws SQLException
StructAndArrayTypeResolverresolveType in interface StructAndArrayTypeResolvertypeName - of the array or structSQLException - when there is an error obtaining the data type from databasepublic void resolveLobIn(Object[] attributes, Integer index, ResolvedDbType resolvedDbType) throws SQLException
StructAndArrayTypeResolverresolveLobIn in interface StructAndArrayTypeResolverattributes - of the array or structindex - of the array or structresolvedDbType - of the array or structSQLException - when there is an error creating a clob or clobCopyright © 2021. All rights reserved.