LocatedPrototype.java

codebase/src/net/sourceforge/pain/data/prototype/LocatedPrototype.java · 843 B

From the archive pain_0_44.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.data.prototype;


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


public final class LocatedPrototype extends Prototype {

	public static final int NFIELDS = LAST_BASE_FIELD_INDEX + 1;

	public final static Class[] superroles = new Class[]{PrototypeInfo.class};

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

	public LocatedPrototype() {
	}

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

		fillSuperSchema(types, names);

		return new DbClassSchema(types, names);
	}

	public Class getPrototypedRoleClass() {
		return Located.class;
	}

	public String toString() {
		return "no fields to show";
	}

	protected Class[] getSuperroles() {
		return superroles;
	}

}

Site Stats

Snippets: 1791
Codebases: 571