Exit.java

src/net/sourceforge/pain/data/type/Exit.java · 852 B

From the archive pain_0_41.zip

Download the archive   « Back to the archive contents

package net.sourceforge.pain.data.type;


import net.sourceforge.pain.data.*;
import net.sourceforge.pain.db.*;


/**
 Exit.
 */
public final class Exit extends Role {

	public static final int TARGET_SPACE = 1 + LAST_BASE_FIELD_INDEX;
	public static final int NFIELDS = 2 + LAST_BASE_FIELD_INDEX;

	public Exit(PainDB db) {
		super(db);
	}

	public Exit() {
	}

	public DbClassSchema provideSchema() {
		byte types[] = new byte[NFIELDS];
		String names[] = new String[NFIELDS];

		fillSuperSchema(types, names);

		types[TARGET_SPACE] = DbType.REFERENCE;
		names[TARGET_SPACE] = "target_space";

		return new DbClassSchema(types, names);
	}

	public Space getTargetSpace() {
		return (Space) getReference(TARGET_SPACE);
	}

	public void setTargetSpace(Space value) {
		setReference(TARGET_SPACE, value);
	}
}

Site Stats

Snippets: 1791
Codebases: 571