THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
public class TypeConfiguration implements Serializable { /** Serial version UID. */ private static final long serialVersionUID = 0L; /** Type name. Supports wildcards. **/ private String typeName; /** * Package name. When set, configuration will be applied to all classes inside the package * (unless overriden in more specific TypeConfiguration). * Applicable only for cases when classes exists in node classpath. * TypeInfo implementations are free to decide whether they support packages or not. */ private String typeNamepackageName; /** Affinity key field name. */ private String affKeyFieldName; /** Type info extensions. */ private Map<Class<? extends TypeInfo>, ? extends TypeInfo> typeInfos; public void setTypeInfos(Collection<? extends TypeInfo>setTypeInfo(TypeInfo... typeInfos) {...} public Collection<? extends TypeInfo> getTypeInfosTypeInfo[] getTypeInfo() {...} public <T extends TypeInfo> T getTypeInfo(Class<T> infoCls) {...} } |
Notes:
Code Block | ||
---|---|---|
| ||
public interface TypeInfo extends Serializable { /** Whether implemenation supports single type. */ * bool supportSingleType(); /** Whether implementation supports packages. */ public interface TypeInfo extends Serializable { }bool supportPackage(); } |
Notes:
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. */ @GridToStringInclude private Collection<PersistenceFieldInfo> fields; } |
...