Class CacheJdbcType
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.CacheJdbcType
-
- All Implemented Interfaces:
Externalizable,Serializable
public class CacheJdbcType extends VisorDataTransferObject
Data transfer object forJdbcType.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheJdbcType()Create data transfer object for given cache type metadata.CacheJdbcType(JdbcType jdbcType)Create data transfer object for given cache type metadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDatabaseSchema()StringgetDatabaseTable()List<CacheJdbcTypeField>getKeyFields()StringgetKeyType()List<CacheJdbcTypeField>getValueFields()StringgetValueType()static List<CacheJdbcType>list(javax.cache.configuration.Factory factory)protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
CacheJdbcType
public CacheJdbcType()
Create data transfer object for given cache type metadata.
-
CacheJdbcType
public CacheJdbcType(JdbcType jdbcType)
Create data transfer object for given cache type metadata.- Parameters:
jdbcType- JDBC type.
-
-
Method Detail
-
list
public static List<CacheJdbcType> list(javax.cache.configuration.Factory factory)
- Parameters:
factory- Store factory to extract JDBC types info.- Returns:
- Data transfer object for cache type metadata configurations.
-
getDatabaseSchema
public String getDatabaseSchema()
- Returns:
- Schema name in database.
-
getDatabaseTable
public String getDatabaseTable()
- Returns:
- Table name in database.
-
getKeyType
public String getKeyType()
- Returns:
- Key class used to store key in cache.
-
getValueType
public String getValueType()
- Returns:
- Value class used to store value in cache.
-
getKeyFields
public List<CacheJdbcTypeField> getKeyFields()
- Returns:
- Key fields.
-
getValueFields
public List<CacheJdbcTypeField> getValueFields()
- Returns:
- Value fields.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-