Class DropPrimaryKey
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.dml.Expression
-
- com.feedzai.commons.sql.abstraction.ddl.DropPrimaryKey
-
- All Implemented Interfaces:
Serializable
public class DropPrimaryKey extends Expression
Translates to a statement that allows to drop the primary key of a table.- Since:
- 2.0.0
- Author:
- Rui Vilao (rui.vilao@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 DropPrimaryKey(Expression table)Creates a new instance ofDropPrimaryKey.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetTable()Gets the table expression.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
-
DropPrimaryKey
public DropPrimaryKey(Expression table)
Creates a new instance ofDropPrimaryKey.- Parameters:
table- The table.
-
-
Method Detail
-
translate
public String translate()
Description copied from class:ExpressionTranslates the expression.- Specified by:
translatein classExpression- Returns:
- A translation of the implementing expression.
-
getTable
public Expression getTable()
Gets the table expression.- Returns:
- The table expression.
-
-