THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
public class PersistenceTypeInfo implements TypeInfo { /** Serial version UID. */ private static final long serialVersionUID = 0L; /** Schema name in database. */ private String dbSchema; /** Table name in database. */ private String dbTbl; /** Persisted fields. */ private Collection<PersistenceFieldInfo>Collection<PersistenceField> fields; } |
Code Block | ||
---|---|---|
| ||
public class PersistenceFieldInfoPersistenceField implements Serializable { /** Serial version UID. */ private static final long serialVersionUID = 0L; /** Column name in database. */ private String dbFieldName; /** Column JDBC type in database. */ private int dbFieldType; /** Field name in java object. */ private String javaFieldName; /** Corresponding java type. */ private Class<?> javaFieldType; } |
...
Code Block | ||
---|---|---|
| ||
public class QueryTypeInfo implements TypeInfo { /** Serial version UID. */ private static final long serialVersionUID = 0L; /** Fields. */ private Collection<QueryFieldInfo>QueryField[] flds; /** Group indexes. */ private Map<String, QueryFieldInfo>QueryCompoundIndex[] grpIdxs; /** Fields to index as text. */ private Collection<String>String[] txtIdxs; } |
Code Block | ||
---|---|---|
| ||
public class QueryFieldInfoQueryField implements TypeInfo { /** Serial version UID. */ private static final long serialVersionUID = 0L; /** Field name. */ private String name; /** Field class. */ private Class cls; /** Whether to index the field. Disabled by default. */ private QueryFieldIndexQueryFieldIndexType idxidxTyp = QueryFieldIndexQueryFieldIndexType.NONE; } |
Code Block | ||
---|---|---|
| ||
public enum QueryFieldIndexQueryFieldIndexType { /** Do not index the field. */ NONE, /** Ascending order. */ ASC, /** Descending order. */ DESC } |
Code Block | ||
---|---|---|
| ||
public enum QueryCompoundIndex {
/** Index name. */
String name;
/** Participating fields. */
private QueryFieldInfo[] flds;
} |
Notes
QueryFieldInfo.cls is a problem for non-Java users, because they have to write ugly things like "java.lang.Integer" which is very hard to understand for non-Java users. Lets switch to enum here?
Code Block | ||
---|---|---|
| ||
public class IgniteConfiguration {
/** Type configurations. */
private TypeConfiguration[] typeCfg;
public TypeConfiguration[] getTypeConfiguration();
public void setTypeConfiguration(TypeConfiguration... typeCfg);
} |
fgTBD