Package com.onec.metadata
Record Class CatalogDescriptor
java.lang.Object
java.lang.Record
com.onec.metadata.CatalogDescriptor
public record CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<String> previousNames)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes) Backward-compatible constructor for callers predatingpreviousNames.CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<String> previousNames) Creates an instance of aCatalogDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.booleanReturns the value of theautoNumberrecord component.intReturns the value of thecodeLengthrecord component.Returns the value of thecodePrefixrecord component.context()Returns the value of thecontextrecord component.Returns the value of thedisplayTitlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehierarchicalrecord component.Class<?> Returns the value of thejavaClassrecord component.Returns the value of thelogicalNamerecord component.Returns the value of thepreviousNamesrecord component.Returns the value of thereadRolesrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewriteRolesrecord component.
-
Constructor Details
-
CatalogDescriptor
public CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes) Backward-compatible constructor for callers predatingpreviousNames. -
CatalogDescriptor
public CatalogDescriptor(String logicalName, String displayTitle, String tableName, Class<?> javaClass, int codeLength, boolean hierarchical, boolean autoNumber, String codePrefix, String context, List<String> readRoles, List<String> writeRoles, List<AttributeDescriptor> attributes, List<String> previousNames) Creates an instance of aCatalogDescriptorrecord class.- Parameters:
logicalName- the value for thelogicalNamerecord componentdisplayTitle- the value for thedisplayTitlerecord componenttableName- the value for thetableNamerecord componentjavaClass- the value for thejavaClassrecord componentcodeLength- the value for thecodeLengthrecord componenthierarchical- the value for thehierarchicalrecord componentautoNumber- the value for theautoNumberrecord componentcodePrefix- the value for thecodePrefixrecord componentcontext- the value for thecontextrecord componentreadRoles- the value for thereadRolesrecord componentwriteRoles- the value for thewriteRolesrecord componentattributes- the value for theattributesrecord componentpreviousNames- the value for thepreviousNamesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
logicalName
Returns the value of thelogicalNamerecord component.- Returns:
- the value of the
logicalNamerecord component
-
displayTitle
Returns the value of thedisplayTitlerecord component.- Returns:
- the value of the
displayTitlerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
javaClass
Returns the value of thejavaClassrecord component.- Returns:
- the value of the
javaClassrecord component
-
codeLength
public int codeLength()Returns the value of thecodeLengthrecord component.- Returns:
- the value of the
codeLengthrecord component
-
hierarchical
public boolean hierarchical()Returns the value of thehierarchicalrecord component.- Returns:
- the value of the
hierarchicalrecord component
-
autoNumber
public boolean autoNumber()Returns the value of theautoNumberrecord component.- Returns:
- the value of the
autoNumberrecord component
-
codePrefix
Returns the value of thecodePrefixrecord component.- Returns:
- the value of the
codePrefixrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
readRoles
Returns the value of thereadRolesrecord component.- Returns:
- the value of the
readRolesrecord component
-
writeRoles
Returns the value of thewriteRolesrecord component.- Returns:
- the value of the
writeRolesrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
previousNames
Returns the value of thepreviousNamesrecord component.- Returns:
- the value of the
previousNamesrecord component
-