ru.curs.celesta.syscursors.ISchemaCursor Maven / Gradle / Ivy
The newest version!
package ru.curs.celesta.syscursors;
import ru.curs.celesta.ICallContext;
import java.util.Date;
public interface ISchemaCursor {
/**
* Status "ready".
*/
int READY = 0;
/**
* Status "in process of upgrading".
*/
int UPGRADING = 1;
/**
* Status "error".
*/
int ERROR = 2;
/**
* Status "do update!".
*/
int RECOVER = 3;
/**
* Status "do not update!".
*/
int LOCK = 4;
ICallContext callContext();
/**
* Sets state to the schema cursor.
*
* @param state state
*/
ISchemaCursor setState(Integer state);
/**
* Sets checksum to the schema cursor.
*
* @param checksum checksum
*/
ISchemaCursor setChecksum(String checksum);
/**
* Sets length to the schema cursor.
*
* @param length length
*/
ISchemaCursor setLength(Integer length);
/**
* Returns 'last modified' date of the schema cursor.
*
* @return
*/
Date getLastmodified();
/**
* Sets 'last modified' date to the schema cursor.
*
* @param lastmodified 'last modified' date
*/
ISchemaCursor setLastmodified(Date lastmodified);
/**
* Sets message to the schema cursor.
*
* @param message message
*/
ISchemaCursor setMessage(String message);
/**
* Sets version to the schema cursor.
*
* @param version version
*/
ISchemaCursor setVersion(String version);
void update();
void get(String name);
void init();
/**
* Sets ID to the schema cursor.
*
* @param id ID
*/
ISchemaCursor setId(String id);
/**
* Returns ID of the schema cursor.
*
* @return
*/
String getId();
/**
* Returns state of the schema cursor.
*
* @return
*/
Integer getState();
/**
* Returns version of the schema cursor.
*
* @return
*/
String getVersion();
/**
* Returns length of the schema cursor.
*
* @return
*/
Integer getLength();
/**
* Returns checksum of the schema cursor.
*
* @return
*/
String getChecksum();
boolean nextInSet();
void insert();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy