Class Column
java.lang.Object
de.aristaflow.adept2.model.logmanagement.Column
- All Implemented Interfaces:
Serializable
Represents a column in the entry schema of a
log in the log
management facility, aka.
log manager
Columns may not contain an underscore _. Otherwise they may be legal
SQL identifiers, which may depend on the actual DBMS. So it's a good idea to
stick with the Latin alphabet and digits. Also the names id and
refId may not be used because these identifiers are used internally.
- Author:
- Patrick Schmidt
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs astring columnwith the specified size.Constructs a newColumnwith the specified data type.Constructs acomplex columnwith the specified subschema. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the data type of this column.getName()Returns the name of this column.intReturns the size hint for this column.Returns the subschema of this column ornullif the data type of this column is something else thanDataType.COMPLEX.inthashCode()
-
Field Details
-
ID_COLUMN
The ID column added to every log to identify the log entries. -
REF_COLUMN
The referenced ID column added to every subschema of a log to identify parent log entry.
-
-
Constructor Details
-
Column
Constructs a newColumnwith the specified data type.There are separate constructors for
DataType.STRINGandDataType.COMPLEX. This constructor cannot be used for these.- Parameters:
name- the name of the columndataType- the data type of the column
-
Column
Constructs astring columnwith the specified size.- Parameters:
name- the name of the columnsizeHint- the required number of characters
-
Column
Constructs acomplex columnwith the specified subschema.- Parameters:
name- the name of the columnsubSchema- the subschema of the column
-
-
Method Details
-
getName
Returns the name of this column.- Returns:
- the name of this column
-
getDataType
Returns the data type of this column.- Returns:
- the data type of this column
-
getSubSchema
Returns the subschema of this column ornullif the data type of this column is something else thanDataType.COMPLEX.- Returns:
- the subschema of this column or
null
-
getSizeHint
public int getSizeHint()Returns the size hint for this column. Currently this value is only used forDataType.STRINGand indicates the required capacity when creating the required tables of a log.- Returns:
- the size hint of this column
-
equals
-
hashCode
public int hashCode()
-