public class StructTypeResolver extends Object implements StructAndArrayTypeResolver
| Constructor and Description |
|---|
StructTypeResolver(DefaultDbConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
resolveType(String typeName,
ConcurrentHashMap<String,String> typeCache)
This method resolves the attribute data type by looking at a cache first.
|
public StructTypeResolver(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)
StructAndArrayTypeResolverresolveType in interface StructAndArrayTypeResolvertypeName - of the array or structpublic String resolveType(String typeName, ConcurrentHashMap<String,String> typeCache) 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 © 2024. All rights reserved.