Package com.jk.data.dataaccess.orm
Class JKEntity
java.lang.Object
com.jk.data.dataaccess.orm.JKEntity
- All Implemented Interfaces:
Serializable
The Class JKEntity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals.Gets the alias name.static List<JKColumnWrapper>
getColumns
(Class<? extends JKEntity> clas) Gets the columns.jakarta.persistence.Column
Gets the first non id column.Gets the id column.static JKColumnWrapper
getIdColumn
(Class<? extends JKEntity> clas) Gets the id column.<T> T
Gets the id value.static JKSortInfo
getSortInfo
(Class<? extends JKEntity> clas) Gets the sort info.Gets the table name.int
hashCode()
Hash code.static void
printFieldAnnotations
(Field field) Prints the field annotations.void
Prints the fields annotations.toString()
To string.
-
Constructor Details
-
JKEntity
public JKEntity()Instantiates a new JK entity.
-
-
Method Details
-
getTableName
Gets the table name.- Returns:
- the table name
-
getIdValue
public <T> T getIdValue()Gets the id value.- Type Parameters:
T
- the generic type- Returns:
- the id value
-
getFirstNonIdColumn
public jakarta.persistence.Column getFirstNonIdColumn()Gets the first non id column.- Returns:
- the first non id column
-
getColumns
Gets the columns.- Parameters:
clas
- the clas- Returns:
- the columns
-
getIdColumn
Gets the id column.- Returns:
- the id column
-
getIdColumn
Gets the id column.- Parameters:
clas
- the clas- Returns:
- the id column
-
printFieldsAnnotations
public void printFieldsAnnotations()Prints the fields annotations. -
printFieldAnnotations
Prints the field annotations.- Parameters:
field
- the field
-
toString
To string. -
getSortInfo
Gets the sort info.- Parameters:
clas
- the clas- Returns:
- the sort info
-
equals
Equals. -
hashCode
public int hashCode()Hash code. -
getAliasName
Gets the alias name.- Returns:
- the alias name
-