Constant Field Values

Contents

me.ahoo.*

  • me.ahoo.cosid.annotation.CosId
    Modifier and Type
    Constant Field
    Value
    public static final String
    "id"
  • me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
    Modifier and Type
    Constant Field
    Value
    public static final String
    "select last_max_id from cosid where name = ?;"
    public static final String
    "update cosid set last_max_id=(last_max_id + ?),last_fetch_time=unix_timestamp() where name = ?;"
  • me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
    Modifier and Type
    Constant Field
    Value
    public static final String
    "create table if not exists cosid\n(\n name varchar(100) not null comment \'{namespace}.{name}\',\n last_max_id bigint unsigned not null default 0,\n last_fetch_time bigint unsigned not null default 0,\n constraint cosid_pk\n primary key (name)\n) engine = InnoDB;"
    public static final String
    "insert into cosid (name, last_max_id,last_fetch_time) value (?, ?,unix_timestamp());"