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="2024-10-04T10:14:01.067876") public class GrainsCursor extends Cursor implements Iterable<GrainsCursor>, ISchemaCursor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GrainsCursor.Columns
static class
GrainsCursor.State
-
Field Summary
Fields Modifier and Type Field Description GrainsCursor.Columns
COLUMNS
static String
TABLE_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)
void
copyFieldsFrom(BasicCursor c)
Copy field values from a cursor of the same type.void
get(String id)
String
getChecksum()
Returns checksum of the schema cursor.String
getId()
Returns ID of the schema cursor.Date
getLastmodified()
Returns 'last modified' date of the schema cursor.Integer
getLength()
Returns length of the schema cursor.String
getMessage()
Integer
getState()
Returns state of the schema cursor.String
getVersion()
Returns version of the schema cursor.Iterator<GrainsCursor>
iterator()
static void
onPostDelete(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
static void
onPostInsert(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
static void
onPostUpdate(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
static void
onPreDelete(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
static void
onPreInsert(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
static void
onPreUpdate(ICelesta celesta, Consumer<? super GrainsCursor> cursorConsumer)
GrainsCursor
setChecksum(String checksum)
Sets checksum to the schema cursor.GrainsCursor
setId(String id)
Sets ID to the schema cursor.GrainsCursor
setLastmodified(Date lastmodified)
Sets 'last modified' date to the schema cursor.GrainsCursor
setLength(Integer length)
Sets length to the schema cursor.GrainsCursor
setMessage(String message)
Sets message to the schema cursor.GrainsCursor
setState(Integer state)
Sets state to the schema cursor.GrainsCursor
setVersion(String version)
Sets version to the schema cursor.boolean
tryGet(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:ISchemaCursor
Returns ID of the schema cursor.- Specified by:
getId
in interfaceISchemaCursor
- Returns:
-
setId
public GrainsCursor setId(String id)
Description copied from interface:ISchemaCursor
Sets ID to the schema cursor.- Specified by:
setId
in interfaceISchemaCursor
- Parameters:
id
- ID
-
getVersion
public String getVersion()
Description copied from interface:ISchemaCursor
Returns version of the schema cursor.- Specified by:
getVersion
in interfaceISchemaCursor
- Returns:
-
setVersion
public GrainsCursor setVersion(String version)
Description copied from interface:ISchemaCursor
Sets version to the schema cursor.- Specified by:
setVersion
in interfaceISchemaCursor
- Parameters:
version
- version
-
getLength
public Integer getLength()
Description copied from interface:ISchemaCursor
Returns length of the schema cursor.- Specified by:
getLength
in interfaceISchemaCursor
- Returns:
-
setLength
public GrainsCursor setLength(Integer length)
Description copied from interface:ISchemaCursor
Sets length to the schema cursor.- Specified by:
setLength
in interfaceISchemaCursor
- Parameters:
length
- length
-
getChecksum
public String getChecksum()
Description copied from interface:ISchemaCursor
Returns checksum of the schema cursor.- Specified by:
getChecksum
in interfaceISchemaCursor
- Returns:
-
setChecksum
public GrainsCursor setChecksum(String checksum)
Description copied from interface:ISchemaCursor
Sets checksum to the schema cursor.- Specified by:
setChecksum
in interfaceISchemaCursor
- Parameters:
checksum
- checksum
-
getState
public Integer getState()
Description copied from interface:ISchemaCursor
Returns state of the schema cursor.- Specified by:
getState
in interfaceISchemaCursor
- Returns:
-
setState
public GrainsCursor setState(Integer state)
Description copied from interface:ISchemaCursor
Sets state to the schema cursor.- Specified by:
setState
in interfaceISchemaCursor
- Parameters:
state
- state
-
getLastmodified
public Date getLastmodified()
Description copied from interface:ISchemaCursor
Returns 'last modified' date of the schema cursor.- Specified by:
getLastmodified
in interfaceISchemaCursor
- Returns:
-
setLastmodified
public GrainsCursor setLastmodified(Date lastmodified)
Description copied from interface:ISchemaCursor
Sets 'last modified' date to the schema cursor.- Specified by:
setLastmodified
in interfaceISchemaCursor
- Parameters:
lastmodified
- 'last modified' date
-
getMessage
public String getMessage()
-
setMessage
public GrainsCursor setMessage(String message)
Description copied from interface:ISchemaCursor
Sets message to the schema cursor.- Specified by:
setMessage
in interfaceISchemaCursor
- Parameters:
message
- message
-
tryGet
public boolean tryGet(String id)
-
get
public void get(String id)
- Specified by:
get
in 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:BasicCursor
Copy field values from a cursor of the same type.- Specified by:
copyFieldsFrom
in classBasicCursor
- Parameters:
c
- cursor that field values have to be copied from
-
iterator
public Iterator<GrainsCursor> iterator()
- Specified by:
iterator
in interfaceIterable<GrainsCursor>
-
-