Class Rename
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.ddl.Rename
-
- All Implemented Interfaces:
Serializable
public class Rename extends Expression
Expression to rename tables.- Since:
- 2.0.0
- Author:
- Diogo Ferreira (diogo.ferreira@feedzai.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, enclosed, joins, ordering, properties, quotes, translator, withNoLock
-
-
Constructor Summary
Constructors Constructor Description Rename(Expression oldName, Expression newName)Creates a new instance ofRename.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetNewName()Gets the new name.ExpressiongetOldName()Gets the old name.Stringtranslate()Translates the expression.-
Methods inherited from class com.feedzai.commons.sql.abstraction.dml.Expression
alias, asc, desc, enclose, fullOuterJoin, getAlias, getJoins, getOrdering, innerJoin, isAliased, isEnclosed, isQuote, isQuotes, isWithNoLock, leftOuterJoin, rightOuterJoin, unquote, withNoLock
-
-
-
-
Constructor Detail
-
Rename
public Rename(Expression oldName, Expression newName)
Creates a new instance ofRename.- Parameters:
oldName- The old table name.newName- The new table name.
-
-
Method Detail
-
getOldName
public Expression getOldName()
Gets the old name.- Returns:
- The old name.
-
getNewName
public Expression getNewName()
Gets the new name.- Returns:
- The new name.
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
-