Package oracle.pgx.config
Class KeyColumnConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.KeyColumnConfig
-
- All Implemented Interfaces:
KeyColumnDescriptor
@Generated("config_generator.py") public class KeyColumnConfig extends AbstractConfig
(BETA) Primary key column, identified by name and type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyColumnConfig.Field
Fields of (BETA) Primary key column, identified by name and type.
-
Field Summary
-
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static KeyColumnConfig.Field[]
getConfigFields()
java.util.Map<java.lang.String,java.lang.Object>
getLeftoverValues()
Gets the values that do not belong to any field.java.lang.String
getName()
name of the key columnIdType
getType()
type of the key columnjava.util.Map<KeyColumnConfig.Field,java.lang.Object>
getValues()
Gets the parsed values.java.util.Map<KeyColumnConfig.Field,java.lang.Object>
getValuesWithoutDefaults()
Gets the values without defaults.boolean
hasDefaultValue(KeyColumnConfig.Field field)
Checks for default value.int
hashCode()
boolean
isEmpty()
Checks if it's empty.static KeyColumnConfig
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.static KeyColumnConfig
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.static KeyColumnConfig
parse(java.util.Properties props, boolean strict)
Parses a properties file.java.lang.String
toString()
java.lang.String
toString(boolean hideSensitiveData)
-
Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Methods inherited from interface oracle.pgx.api.keys.KeyColumnDescriptor
asKeyColumnDescriptor
-
-
-
-
Method Detail
-
parse
public static KeyColumnConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
Parses an input stream.- Parameters:
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
parse
public static KeyColumnConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.- Parameters:
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
-
parse
public static KeyColumnConfig parse(java.util.Properties props, boolean strict)
Parses a properties file.- Parameters:
props
- the properties to parsestrict
- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
public static KeyColumnConfig.Field[] getConfigFields()
-
getValues
public java.util.Map<KeyColumnConfig.Field,java.lang.Object> getValues()
Gets the parsed values.- Specified by:
getValues
in classAbstractConfig
- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()
Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
public boolean hasDefaultValue(KeyColumnConfig.Field field)
Checks for default value.- Parameters:
field
- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
public java.util.Map<KeyColumnConfig.Field,java.lang.Object> getValuesWithoutDefaults()
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean hideSensitiveData)
-
getName
public java.lang.String getName()
name of the key column- Returns:
- Name of the key column.
-
getType
public IdType getType()
type of the key column- Returns:
- Type of the key column.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-