Package org.pgcodekeeper.core.schema
Class GenericColumn
java.lang.Object
org.pgcodekeeper.core.schema.GenericColumn
- All Implemented Interfaces:
Serializable
Represents a generic database object reference with schema, table, column, and type information.
Used for identifying and referencing database objects across different contexts.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericColumn(String schema, String table, String column, DbObjType type) Creates a generic column with full specification.GenericColumn(String schema, String object, DbObjType type) Creates a generic column for a database object within a schema.GenericColumn(String schema, DbObjType type) Creates a generic column for a schema-level object. -
Method Summary
-
Field Details
-
schema
-
table
-
column
-
type
-
-
Constructor Details
-
GenericColumn
Creates a generic column with full specification.- Parameters:
schema- the schema nametable- the table namecolumn- the column nametype- the database object type
-
GenericColumn
Creates a generic column for a database object within a schema.- Parameters:
schema- the schema nameobject- the object name (table, view, function, etc.)type- the database object type
-
GenericColumn
Creates a generic column for a schema-level object.- Parameters:
schema- the schema nametype- the database object type
-
-
Method Details
-
getObjName
Gets the name of the most specific object component.- Returns:
- the column name if present, otherwise table name, otherwise schema name
-
hashCode
public int hashCode() -
equals
-
getQualifiedName
Gets the fully qualified name of this object.- Returns:
- the qualified name as a string
-
toString
-