Package com.j_spaces.jdbc
Class UpdateColumn
java.lang.Object
com.j_spaces.jdbc.SelectColumn
com.j_spaces.jdbc.UpdateColumn
- All Implemented Interfaces:
Externalizable,Serializable
Represents an SQL UPDATE query column.
- Since:
- 8.0
- Author:
- idan
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the self incremented column name.booleanGets whether this column is a self incremented update column.voidvoidsetSelfIncrementedColumnName(String selfIncrementedColumnName) Sets the self incremented column name.voidvalidateSelfIncrementedColumnName(UpdateQuery updateQuery) Validates that the self incremented column name is the same as the column name.voidMethods inherited from class com.j_spaces.jdbc.SelectColumn
createColumnData, equals, getAlias, getColumnData, getColumnIndexInTable, getColumnTableData, getFieldValue, getFunctionName, getName, getProjectedIndex, getValue, hasAlias, isAggregatedFunction, isAllColumns, isCount, isDynamic, isFunction, isInitValues, isSum, isUid, isVisible, setAlias, setCount, setFunctionName, setName, setProjectedIndex, setSum, setValue, setVisible, toString
-
Field Details
-
_selfIncrementedColumnName
-
-
Constructor Details
-
UpdateColumn
-
UpdateColumn
public UpdateColumn()
-
-
Method Details
-
setSelfIncrementedColumnName
Sets the self incremented column name. -
getSelfIncrementedColumnName
Gets the self incremented column name. -
isSelfIncremented
public boolean isSelfIncremented()Gets whether this column is a self incremented update column. SQL update example: UPDATE table SET version = version + 1 -
validateSelfIncrementedColumnName
Validates that the self incremented column name is the same as the column name.- Throws:
SQLException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classSelectColumn- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classSelectColumn- Throws:
IOExceptionClassNotFoundException
-