Class JdbcType

java.lang.Object
org.gridgain.cache.store.jdbc.JdbcType

public class JdbcType extends Object
Description for type that could be stored into database by store.
  • Constructor Details

    • JdbcType

      public JdbcType()
      Empty constructor (all values are initialized to their defaults).
    • JdbcType

      public JdbcType(JdbcType type)
      Copy constructor.
      Parameters:
      type - Type to copy.
  • Method Details

    • getDatabaseSchema

      @Nullable public @Nullable String getDatabaseSchema()
      Gets database schema name. Might be null if the database does not support schemas or the application does not want to specify it explicitly.
      Returns:
      Schema name.
    • setDatabaseSchema

      public JdbcType setDatabaseSchema(String dbSchema)
      Sets database schema name.
      Parameters:
      dbSchema - Schema name.
      Returns:
      this for chaining.
    • getDatabaseTable

      public String getDatabaseTable()
      Gets table name in database.
      Returns:
      Table name in database.
    • setDatabaseTable

      public JdbcType setDatabaseTable(String dbTbl)
      Table name in database.
      Parameters:
      dbTbl - Table name in database.
      Returns:
      this for chaining.
    • getKeyType

      public String getKeyType()
      Gets key type.
      Returns:
      Key type.
    • setKeyType

      public JdbcType setKeyType(String keyType)
      Sets key type.
      Parameters:
      keyType - Key type.
      Returns:
      this for chaining.
    • setKeyType

      public JdbcType setKeyType(Class<?> cls)
      Sets key type.
      Parameters:
      cls - Key type class.
      Returns:
      this for chaining.
    • getValueType

      public String getValueType()
      Gets value type.
      Returns:
      Key type.
    • setValueType

      public JdbcType setValueType(String valType)
      Sets value type.
      Parameters:
      valType - Value type.
      Returns:
      this for chaining.
    • setValueType

      public JdbcType setValueType(Class<?> cls)
      Sets value type.
      Parameters:
      cls - Value type class.
      Returns:
      this for chaining.
    • getKeyFields

      public JdbcTypeField[] getKeyFields()
      Gets optional persistent key fields.
      Returns:
      Persistent key fields.
    • setKeyFields

      public JdbcType setKeyFields(JdbcTypeField... keyFlds)
      Sets optional persistent key fields.
      Parameters:
      keyFlds - Persistent key fields.
      Returns:
      this for chaining.
    • getValueFields

      public JdbcTypeField[] getValueFields()
      Gets optional persistent value fields.
      Returns:
      Persistent value fields.
    • setValueFields

      public JdbcType setValueFields(JdbcTypeField... valFlds)
      Sets optional persistent value fields.
      Parameters:
      valFlds - Persistent value fields.
      Returns:
      this for chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object