com.jpattern.orm.annotation.table.TableInfo Maven / Gradle / Ivy
package com.jpattern.orm.annotation.table;
import com.jpattern.orm.annotation.Table;
/**
* Info related to {@link Table} annotation
* @author cinafr
*
*/
public class TableInfo {
private final String tableName;
private final String schemaName;
private final String tableNameWithSchema;
public TableInfo(final String tableName , final String schemaName) {
this.tableName = tableName;
this.schemaName = schemaName;
if (schemaName.length()==0) {
this.tableNameWithSchema = tableName;
} else {
this.tableNameWithSchema = schemaName + "." + getTableName();
}
}
public String getTableName() {
return this.tableName;
}
public String getSchemaName() {
return this.schemaName;
}
public String getTableNameWithSchema() {
return this.tableNameWithSchema;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy