Package ru.curs.celesta.syscursors
Interface ISchemaCursor
-
- All Known Implementing Classes:
GrainsCursor
public interface ISchemaCursor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICallContext
callContext()
void
get(String name)
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.Integer
getState()
Returns state of the schema cursor.String
getVersion()
Returns version of the schema cursor.void
init()
void
insert()
boolean
nextInSet()
ISchemaCursor
setChecksum(String checksum)
Sets checksum to the schema cursor.ISchemaCursor
setId(String id)
Sets ID to the schema cursor.ISchemaCursor
setLastmodified(Date lastmodified)
Sets 'last modified' date to the schema cursor.ISchemaCursor
setLength(Integer length)
Sets length to the schema cursor.ISchemaCursor
setMessage(String message)
Sets message to the schema cursor.ISchemaCursor
setState(Integer state)
Sets state to the schema cursor.ISchemaCursor
setVersion(String version)
Sets version to the schema cursor.void
update()
-
-
-
Field Detail
-
READY
static final int READY
Status "ready".- See Also:
- Constant Field Values
-
UPGRADING
static final int UPGRADING
Status "in process of upgrading".- See Also:
- Constant Field Values
-
ERROR
static final int ERROR
Status "error".- See Also:
- Constant Field Values
-
RECOVER
static final int RECOVER
Status "do update!".- See Also:
- Constant Field Values
-
LOCK
static final int LOCK
Status "do not update!".- See Also:
- Constant Field Values
-
-
Method Detail
-
callContext
ICallContext callContext()
-
setState
ISchemaCursor setState(Integer state)
Sets state to the schema cursor.- Parameters:
state
- state
-
setChecksum
ISchemaCursor setChecksum(String checksum)
Sets checksum to the schema cursor.- Parameters:
checksum
- checksum
-
setLength
ISchemaCursor setLength(Integer length)
Sets length to the schema cursor.- Parameters:
length
- length
-
getLastmodified
Date getLastmodified()
Returns 'last modified' date of the schema cursor.- Returns:
-
setLastmodified
ISchemaCursor setLastmodified(Date lastmodified)
Sets 'last modified' date to the schema cursor.- Parameters:
lastmodified
- 'last modified' date
-
setMessage
ISchemaCursor setMessage(String message)
Sets message to the schema cursor.- Parameters:
message
- message
-
setVersion
ISchemaCursor setVersion(String version)
Sets version to the schema cursor.- Parameters:
version
- version
-
update
void update()
-
get
void get(String name)
-
init
void init()
-
setId
ISchemaCursor setId(String id)
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()
-
-