Package ru.curs.celesta.syscursors
Interface ISchemaCursor
- All Known Implementing Classes:
GrainsCursor
public interface ISchemaCursor
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns checksum of the schema cursor.getId()Returns ID of the schema cursor.Returns 'last modified' date of the schema cursor.Returns length of the schema cursor.getState()Returns state of the schema cursor.Returns version of the schema cursor.voidinit()voidinsert()booleansetChecksum(String checksum) Sets checksum to the schema cursor.Sets ID to the schema cursor.setLastmodified(Date lastmodified) Sets 'last modified' date to the schema cursor.Sets length to the schema cursor.setMessage(String message) Sets message to the schema cursor.Sets state to the schema cursor.setVersion(String version) Sets version to the schema cursor.voidupdate()
-
Field Details
-
READY
static final int READYStatus "ready".- See Also:
-
UPGRADING
static final int UPGRADINGStatus "in process of upgrading".- See Also:
-
ERROR
static final int ERRORStatus "error".- See Also:
-
RECOVER
static final int RECOVERStatus "do update!".- See Also:
-
LOCK
static final int LOCKStatus "do not update!".- See Also:
-
-
Method Details
-
callContext
ICallContext callContext() -
setState
Sets state to the schema cursor.- Parameters:
state- state
-
setChecksum
Sets checksum to the schema cursor.- Parameters:
checksum- checksum
-
setLength
Sets length to the schema cursor.- Parameters:
length- length
-
getLastmodified
Date getLastmodified()Returns 'last modified' date of the schema cursor.- Returns:
-
setLastmodified
Sets 'last modified' date to the schema cursor.- Parameters:
lastmodified- 'last modified' date
-
setMessage
Sets message to the schema cursor.- Parameters:
message- message
-
setVersion
Sets version to the schema cursor.- Parameters:
version- version
-
update
void update() -
get
-
init
void init() -
setId
Sets ID to the schema cursor.- Parameters:
id- ID
-
getId
String getId()Returns ID of the schema cursor.- Returns:
-
getState
Integer getState()Returns state of the schema cursor.- Returns:
-
getVersion
String getVersion()Returns version of the schema cursor.- Returns:
-
getLength
Integer getLength()Returns length of the schema cursor.- Returns:
-
getChecksum
String getChecksum()Returns checksum of the schema cursor.- Returns:
-
nextInSet
boolean nextInSet() -
insert
void insert()
-