Class JdbcType
- java.lang.Object
- 
- org.apache.ignite.cache.store.jdbc.JdbcType
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class JdbcType extends Object implements Serializable Description for type that could be stored into database by store.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCacheName()Gets associated cache name.StringgetDatabaseSchema()Gets database schema name.StringgetDatabaseTable()Gets table name in database.JdbcTypeField[]getKeyFields()Gets optional persistent key fields (needed only ifCacheJdbcPojoStoreis used).StringgetKeyType()Gets key type.JdbcTypeField[]getValueFields()Gets optional persistent value fields (needed only ifCacheJdbcPojoStoreis used).StringgetValueType()Gets value type.JdbcTypesetCacheName(String cacheName)Sets associated cache name.JdbcTypesetDatabaseSchema(String dbSchema)Sets database schema name.JdbcTypesetDatabaseTable(String dbTbl)Table name in database.JdbcTypesetKeyFields(JdbcTypeField... keyFlds)Sets optional persistent key fields (needed only ifCacheJdbcPojoStoreis used).JdbcTypesetKeyType(Class<?> cls)Sets key type.JdbcTypesetKeyType(String keyType)Sets key type.JdbcTypesetValueFields(JdbcTypeField... valFlds)Sets optional persistent value fields (needed only ifCacheJdbcPojoStoreis used).JdbcTypesetValueType(Class<?> cls)Sets value type.JdbcTypesetValueType(String valType)Sets value type.StringtoString()
 
- 
- 
- 
Constructor Detail- 
JdbcTypepublic JdbcType() Empty constructor (all values are initialized to their defaults).
 - 
JdbcTypepublic JdbcType(JdbcType type) Copy constructor.- Parameters:
- type- Type to copy.
 
 
- 
 - 
Method Detail- 
getCacheNamepublic String getCacheName() Gets associated cache name.- Returns:
- Cache name.
 
 - 
setCacheNamepublic JdbcType setCacheName(String cacheName) Sets associated cache name.- Parameters:
- cacheName- Cache name.
- Returns:
- thisfor chaining.
 
 - 
getDatabaseSchemapublic String getDatabaseSchema() Gets database schema name.- Returns:
- Schema name.
 
 - 
setDatabaseSchemapublic JdbcType setDatabaseSchema(String dbSchema) Sets database schema name.- Parameters:
- dbSchema- Schema name.
- Returns:
- thisfor chaining.
 
 - 
getDatabaseTablepublic String getDatabaseTable() Gets table name in database.- Returns:
- Table name in database.
 
 - 
setDatabaseTablepublic JdbcType setDatabaseTable(String dbTbl) Table name in database.- Parameters:
- dbTbl- Table name in database.
- Returns:
- thisfor chaining.
 
 - 
getKeyTypepublic String getKeyType() Gets key type.- Returns:
- Key type.
 
 - 
setKeyTypepublic JdbcType setKeyType(String keyType) Sets key type.- Parameters:
- keyType- Key type.
- Returns:
- thisfor chaining.
 
 - 
setKeyTypepublic JdbcType setKeyType(Class<?> cls) Sets key type.- Parameters:
- cls- Key type class.
- Returns:
- thisfor chaining.
 
 - 
getValueTypepublic String getValueType() Gets value type.- Returns:
- Key type.
 
 - 
setValueTypepublic JdbcType setValueType(String valType) Sets value type.- Parameters:
- valType- Value type.
- Returns:
- thisfor chaining.
 
 - 
setValueTypepublic JdbcType setValueType(Class<?> cls) Sets value type.- Parameters:
- cls- Value type class.
- Returns:
- thisfor chaining.
 
 - 
getKeyFieldspublic JdbcTypeField[] getKeyFields() Gets optional persistent key fields (needed only ifCacheJdbcPojoStoreis used).- Returns:
- Persistent key fields.
 
 - 
setKeyFieldspublic JdbcType setKeyFields(JdbcTypeField... keyFlds) Sets optional persistent key fields (needed only ifCacheJdbcPojoStoreis used).- Parameters:
- keyFlds- Persistent key fields.
- Returns:
- thisfor chaining.
 
 - 
getValueFieldspublic JdbcTypeField[] getValueFields() Gets optional persistent value fields (needed only ifCacheJdbcPojoStoreis used).- Returns:
- Persistent value fields.
 
 - 
setValueFieldspublic JdbcType setValueFields(JdbcTypeField... valFlds) Sets optional persistent value fields (needed only ifCacheJdbcPojoStoreis used).- Parameters:
- valFlds- Persistent value fields.
- Returns:
- thisfor chaining.
 
 
- 
 
-