Package ru.curs.celesta.syscursors
Class GrainsCursor
- java.lang.Object
-
- ru.curs.celesta.dbutils.CsqlBasicDataAccessor<CallContext>
-
- ru.curs.celesta.dbutils.BasicDataAccessor
-
- ru.curs.celesta.dbutils.BasicCursor
-
- ru.curs.celesta.dbutils.Cursor
-
- ru.curs.celesta.syscursors.GrainsCursor
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<GrainsCursor>,InFilterSupport,ISchemaCursor
@Generated(value="ru.curs.celesta.plugin.maven.CursorGenerator", date="2026-03-02T10:12:51.817605") public class GrainsCursor extends Cursor implements Iterable<GrainsCursor>, ISchemaCursor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrainsCursor.Columnsstatic classGrainsCursor.State
-
Field Summary
Fields Modifier and Type Field Description GrainsCursor.ColumnsCOLUMNSstatic StringTABLE_NAME
-
Constructor Summary
Constructors Constructor Description GrainsCursor(CallContext context)GrainsCursor(CallContext context, ColumnMeta<?>... columns)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void_clearBuffer(boolean withKeys)Object[]_currentValues()GrainsCursor_getBufferCopy(CallContext context, Collection<? extends ColumnMeta<?>> fields)voidcopyFieldsFrom(BasicCursor c)Copy field values from a cursor of the same type.voidget(String id)StringgetChecksum()Returns checksum of the schema cursor.StringgetId()Returns ID of the schema cursor.DategetLastmodified()Returns 'last modified' date of the schema cursor.IntegergetLength()Returns length of the schema cursor.StringgetMessage()IntegergetState()Returns state of the schema cursor.StringgetVersion()Returns version of the schema cursor.Iterator<GrainsCursor>iterator()static voidonPostDelete(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)static voidonPostInsert(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)static voidonPostUpdate(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)static voidonPreDelete(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)static voidonPreInsert(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)static voidonPreUpdate(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)GrainsCursorsetChecksum(String checksum)Sets checksum to the schema cursor.GrainsCursorsetId(String id)Sets ID to the schema cursor.GrainsCursorsetLastmodified(Date lastmodified)Sets 'last modified' date to the schema cursor.GrainsCursorsetLength(Integer length)Sets length to the schema cursor.GrainsCursorsetMessage(String message)Sets message to the schema cursor.GrainsCursorsetState(Integer state)Sets state to the schema cursor.GrainsCursorsetVersion(String version)Sets version to the schema cursor.booleantryGet(String id)-
Methods inherited from class ru.curs.celesta.dbutils.Cursor
clear, create, create, delete, deleteAll, getByValuesArray, getCurrentKeyValues, getIn, getMaxStrLen, getMaxStrLen, getRecversion, getXRec, init, insert, meta, setIn, setRecversion, tryGetByValuesArray, tryGetCurrent, tryInsert, tryUpdate, update
-
Methods inherited from class ru.curs.celesta.dbutils.BasicCursor
asCSVLine, canDelete, canInsert, canModify, clearBuffer, copyFiltersFrom, copyOrderFrom, count, descOrders, findSet, first, getBufferCopy, getComplexFilter, getCurrentValues, getOrderBy, getValue, isEquivalent, last, limit, navigate, navigate, next, nextInSet, orderBy, orderBy, orderBy, orderByColumnNames, position, previous, reset, setComplexFilter, setFilter, setFilter, setRange, setRange, setRange, setRange, setRange, setRange, setValue, tryFindSet, tryFirst, tryLast
-
Methods inherited from class ru.curs.celesta.dbutils.BasicDataAccessor
canRead
-
Methods inherited from class ru.curs.celesta.dbutils.CsqlBasicDataAccessor
callContext, close, isClosed
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.curs.celesta.syscursors.ISchemaCursor
callContext, init, insert, nextInSet, update
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
COLUMNS
public final GrainsCursor.Columns COLUMNS
-
-
Constructor Detail
-
GrainsCursor
public GrainsCursor(CallContext context)
-
GrainsCursor
public GrainsCursor(CallContext context, ColumnMeta<?>... columns)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ISchemaCursorReturns ID of the schema cursor.- Specified by:
getIdin interfaceISchemaCursor- Returns:
-
setId
public GrainsCursor setId(String id)
Description copied from interface:ISchemaCursorSets ID to the schema cursor.- Specified by:
setIdin interfaceISchemaCursor- Parameters:
id- ID
-
getVersion
public String getVersion()
Description copied from interface:ISchemaCursorReturns version of the schema cursor.- Specified by:
getVersionin interfaceISchemaCursor- Returns:
-
setVersion
public GrainsCursor setVersion(String version)
Description copied from interface:ISchemaCursorSets version to the schema cursor.- Specified by:
setVersionin interfaceISchemaCursor- Parameters:
version- version
-
getLength
public Integer getLength()
Description copied from interface:ISchemaCursorReturns length of the schema cursor.- Specified by:
getLengthin interfaceISchemaCursor- Returns:
-
setLength
public GrainsCursor setLength(Integer length)
Description copied from interface:ISchemaCursorSets length to the schema cursor.- Specified by:
setLengthin interfaceISchemaCursor- Parameters:
length- length
-
getChecksum
public String getChecksum()
Description copied from interface:ISchemaCursorReturns checksum of the schema cursor.- Specified by:
getChecksumin interfaceISchemaCursor- Returns:
-
setChecksum
public GrainsCursor setChecksum(String checksum)
Description copied from interface:ISchemaCursorSets checksum to the schema cursor.- Specified by:
setChecksumin interfaceISchemaCursor- Parameters:
checksum- checksum
-
getState
public Integer getState()
Description copied from interface:ISchemaCursorReturns state of the schema cursor.- Specified by:
getStatein interfaceISchemaCursor- Returns:
-
setState
public GrainsCursor setState(Integer state)
Description copied from interface:ISchemaCursorSets state to the schema cursor.- Specified by:
setStatein interfaceISchemaCursor- Parameters:
state- state
-
getLastmodified
public Date getLastmodified()
Description copied from interface:ISchemaCursorReturns 'last modified' date of the schema cursor.- Specified by:
getLastmodifiedin interfaceISchemaCursor- Returns:
-
setLastmodified
public GrainsCursor setLastmodified(Date lastmodified)
Description copied from interface:ISchemaCursorSets 'last modified' date to the schema cursor.- Specified by:
setLastmodifiedin interfaceISchemaCursor- Parameters:
lastmodified- 'last modified' date
-
getMessage
public String getMessage()
-
setMessage
public GrainsCursor setMessage(String message)
Description copied from interface:ISchemaCursorSets message to the schema cursor.- Specified by:
setMessagein interfaceISchemaCursor- Parameters:
message- message
-
tryGet
public boolean tryGet(String id)
-
get
public void get(String id)
- Specified by:
getin interfaceISchemaCursor
-
_clearBuffer
public void _clearBuffer(boolean withKeys)
-
_currentValues
public Object[] _currentValues()
-
onPreDelete
public static void onPreDelete(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
-
onPostDelete
public static void onPostDelete(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
-
onPreInsert
public static void onPreInsert(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
-
onPostInsert
public static void onPostInsert(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
-
onPreUpdate
public static void onPreUpdate(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
-
onPostUpdate
public static void onPostUpdate(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
-
_getBufferCopy
public GrainsCursor _getBufferCopy(CallContext context, Collection<? extends ColumnMeta<?>> fields)
-
copyFieldsFrom
public void copyFieldsFrom(BasicCursor c)
Description copied from class:BasicCursorCopy field values from a cursor of the same type.- Specified by:
copyFieldsFromin classBasicCursor- Parameters:
c- cursor that field values have to be copied from
-
iterator
public Iterator<GrainsCursor> iterator()
- Specified by:
iteratorin interfaceIterable<GrainsCursor>
-
-